msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592
  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_DOUBLE_DECL(mm1_ch1_enum,
  3080. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3081. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3082. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3083. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3084. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3085. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3086. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3087. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3088. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3089. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3090. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3091. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3092. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3093. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3094. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3095. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3096. unsigned int channels,
  3097. unsigned int items, const char *const names[])
  3098. {
  3099. if (uinfo->value.enumerated.item >= items)
  3100. uinfo->value.enumerated.item = items - 1;
  3101. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3102. sizeof(uinfo->value.enumerated.name),
  3103. "ALSA: too long item name '%s'\n",
  3104. names[uinfo->value.enumerated.item]);
  3105. strlcpy(uinfo->value.enumerated.name,
  3106. names[uinfo->value.enumerated.item],
  3107. sizeof(uinfo->value.enumerated.name));
  3108. return 0;
  3109. }
  3110. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3111. struct snd_ctl_elem_info *uinfo)
  3112. {
  3113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3114. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3115. uinfo->count = 1;
  3116. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3117. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3118. return 0;
  3119. }
  3120. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3121. struct snd_ctl_elem_value *ucontrol)
  3122. {
  3123. u16 fe_id = 0;
  3124. fe_id = ((struct soc_enum *)
  3125. kcontrol->private_value)->shift_l;
  3126. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3127. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3128. return -EINVAL;
  3129. }
  3130. pr_debug("%s: FE %d %s\n", __func__,
  3131. fe_id,
  3132. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3133. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3134. return 0;
  3135. }
  3136. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3137. struct snd_ctl_elem_value *ucontrol)
  3138. {
  3139. u16 fe_id = 0;
  3140. fe_id = ((struct soc_enum *)
  3141. kcontrol->private_value)->shift_l;
  3142. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3143. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3144. return -EINVAL;
  3145. }
  3146. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3147. pr_debug("%s: %s FE %d\n", __func__,
  3148. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3149. fe_id);
  3150. return 0;
  3151. }
  3152. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3153. struct snd_ctl_elem_info *uinfo)
  3154. {
  3155. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3156. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3157. uinfo->count = 1;
  3158. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3159. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3160. return 0;
  3161. }
  3162. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3163. struct snd_ctl_elem_value *ucontrol)
  3164. {
  3165. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3166. u16 fe_id = 0, in_ch = 0;
  3167. fe_id = e->shift_l;
  3168. in_ch = e->shift_r;
  3169. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3170. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3171. return -EINVAL;
  3172. }
  3173. if (in_ch >= ADM_MAX_CHANNELS) {
  3174. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3175. return -EINVAL;
  3176. }
  3177. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3178. return 1;
  3179. }
  3180. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3181. struct snd_ctl_elem_value *ucontrol)
  3182. {
  3183. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3184. u16 fe_id = 0, in_ch = 0;
  3185. fe_id = e->shift_l;
  3186. in_ch = e->shift_r;
  3187. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3188. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3189. return -EINVAL;
  3190. }
  3191. if (in_ch >= ADM_MAX_CHANNELS) {
  3192. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3193. return -EINVAL;
  3194. }
  3195. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3196. return 1;
  3197. }
  3198. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3199. struct snd_ctl_elem_info *uinfo)
  3200. {
  3201. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3202. uinfo->count = ADM_MAX_CHANNELS;
  3203. uinfo->value.integer.min = 0;
  3204. uinfo->value.integer.max = WEIGHT_0_DB;
  3205. return 0;
  3206. }
  3207. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. u16 fe_id = 0, out_ch = 0;
  3211. int i, weight;
  3212. fe_id = ((struct soc_multi_mixer_control *)
  3213. kcontrol->private_value)->shift;
  3214. out_ch = ((struct soc_multi_mixer_control *)
  3215. kcontrol->private_value)->rshift;
  3216. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3217. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3218. return -EINVAL;
  3219. }
  3220. if (out_ch >= ADM_MAX_CHANNELS) {
  3221. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3222. return -EINVAL;
  3223. }
  3224. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3225. __func__, fe_id,
  3226. ucontrol->value.integer.value[0],
  3227. ucontrol->value.integer.value[1],
  3228. ucontrol->value.integer.value[2],
  3229. ucontrol->value.integer.value[3],
  3230. ucontrol->value.integer.value[4],
  3231. ucontrol->value.integer.value[5],
  3232. ucontrol->value.integer.value[6],
  3233. ucontrol->value.integer.value[7]);
  3234. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3235. weight = ucontrol->value.integer.value[i];
  3236. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3237. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3238. __func__, fe_id, out_ch, i,
  3239. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3240. }
  3241. return 0;
  3242. }
  3243. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. u16 fe_id = 0, out_ch = 0;
  3247. int i;
  3248. fe_id = ((struct soc_multi_mixer_control *)
  3249. kcontrol->private_value)->shift;
  3250. out_ch = ((struct soc_multi_mixer_control *)
  3251. kcontrol->private_value)->rshift;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. if (out_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3258. return -EINVAL;
  3259. }
  3260. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3261. ucontrol->value.integer.value[i] =
  3262. channel_mixer[fe_id].channel_weight[out_ch][i];
  3263. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3264. __func__, fe_id,
  3265. ucontrol->value.integer.value[0],
  3266. ucontrol->value.integer.value[1],
  3267. ucontrol->value.integer.value[2],
  3268. ucontrol->value.integer.value[3],
  3269. ucontrol->value.integer.value[4],
  3270. ucontrol->value.integer.value[5],
  3271. ucontrol->value.integer.value[6],
  3272. ucontrol->value.integer.value[7]);
  3273. return 0;
  3274. }
  3275. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3276. struct snd_ctl_elem_info *uinfo)
  3277. {
  3278. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3279. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3280. /* Valid channel map value ranges from 1 to 64 */
  3281. uinfo->value.integer.min = 0;
  3282. uinfo->value.integer.max = 64;
  3283. return 0;
  3284. }
  3285. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. u16 fe_id = 0;
  3289. int i, ch_map;
  3290. fe_id = ((struct soc_multi_mixer_control *)
  3291. kcontrol->private_value)->shift;
  3292. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3293. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3294. return -EINVAL;
  3295. }
  3296. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3297. ch_map = ucontrol->value.integer.value[i];
  3298. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3299. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3300. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3301. }
  3302. /* Make override_out_ch_map false if ch map is reset */
  3303. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3304. channel_mixer[fe_id].override_out_ch_map = false;
  3305. else
  3306. channel_mixer[fe_id].override_out_ch_map = true;
  3307. return 0;
  3308. }
  3309. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3310. struct snd_ctl_elem_value *ucontrol)
  3311. {
  3312. u16 fe_id = 0;
  3313. int i;
  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. ucontrol->value.integer.value[i] =
  3322. channel_mixer[fe_id].out_ch_map[i];
  3323. return 0;
  3324. }
  3325. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3326. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3327. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3328. msm_pcm_get_channel_rule_index,
  3329. msm_pcm_put_channel_rule_index),
  3330. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3331. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3332. msm_pcm_get_channel_rule_index,
  3333. msm_pcm_put_channel_rule_index),
  3334. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3335. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3336. msm_pcm_get_channel_rule_index,
  3337. msm_pcm_put_channel_rule_index),
  3338. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3339. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3340. msm_pcm_get_channel_rule_index,
  3341. msm_pcm_put_channel_rule_index),
  3342. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3343. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3344. msm_pcm_get_channel_rule_index,
  3345. msm_pcm_put_channel_rule_index),
  3346. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3347. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3348. msm_pcm_get_channel_rule_index,
  3349. msm_pcm_put_channel_rule_index),
  3350. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3351. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3352. msm_pcm_get_out_chs,
  3353. msm_pcm_put_out_chs),
  3354. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3355. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3356. msm_pcm_get_out_chs,
  3357. msm_pcm_put_out_chs),
  3358. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3359. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3360. msm_pcm_get_out_chs,
  3361. msm_pcm_put_out_chs),
  3362. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3363. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3364. msm_pcm_get_out_chs,
  3365. msm_pcm_put_out_chs),
  3366. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3367. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3368. msm_pcm_get_out_chs,
  3369. msm_pcm_put_out_chs),
  3370. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3371. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3372. msm_pcm_get_out_chs,
  3373. msm_pcm_put_out_chs),
  3374. {
  3375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3377. .name = "MultiMedia1 Channel Mixer",
  3378. .info = msm_pcm_channel_mixer_info,
  3379. .get = msm_pcm_channel_mixer_get,
  3380. .put = msm_pcm_channel_mixer_put,
  3381. .private_value = (unsigned long)&(mm1_channel_mux)
  3382. },
  3383. {
  3384. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3385. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3386. .name = "MultiMedia2 Channel Mixer",
  3387. .info = msm_pcm_channel_mixer_info,
  3388. .get = msm_pcm_channel_mixer_get,
  3389. .put = msm_pcm_channel_mixer_put,
  3390. .private_value = (unsigned long)&(mm2_channel_mux)
  3391. },
  3392. {
  3393. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3394. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3395. .name = "MultiMedia3 Channel Mixer",
  3396. .info = msm_pcm_channel_mixer_info,
  3397. .get = msm_pcm_channel_mixer_get,
  3398. .put = msm_pcm_channel_mixer_put,
  3399. .private_value = (unsigned long)&(mm3_channel_mux)
  3400. },
  3401. {
  3402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3403. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3404. .name = "MultiMedia4 Channel Mixer",
  3405. .info = msm_pcm_channel_mixer_info,
  3406. .get = msm_pcm_channel_mixer_get,
  3407. .put = msm_pcm_channel_mixer_put,
  3408. .private_value = (unsigned long)&(mm4_channel_mux)
  3409. },
  3410. {
  3411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3412. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3413. .name = "MultiMedia1 Output Channel1",
  3414. .info = msm_pcm_channel_weight_info,
  3415. .get = msm_pcm_channel_weight_get,
  3416. .put = msm_pcm_channel_weight_put,
  3417. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3418. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3419. },
  3420. {
  3421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3423. .name = "MultiMedia1 Output Channel2",
  3424. .info = msm_pcm_channel_weight_info,
  3425. .get = msm_pcm_channel_weight_get,
  3426. .put = msm_pcm_channel_weight_put,
  3427. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3428. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3429. },
  3430. {
  3431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3433. .name = "MultiMedia1 Output Channel3",
  3434. .info = msm_pcm_channel_weight_info,
  3435. .get = msm_pcm_channel_weight_get,
  3436. .put = msm_pcm_channel_weight_put,
  3437. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3438. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3439. },
  3440. {
  3441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3442. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3443. .name = "MultiMedia1 Output Channel4",
  3444. .info = msm_pcm_channel_weight_info,
  3445. .get = msm_pcm_channel_weight_get,
  3446. .put = msm_pcm_channel_weight_put,
  3447. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3448. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3449. },
  3450. {
  3451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3453. .name = "MultiMedia1 Output Channel5",
  3454. .info = msm_pcm_channel_weight_info,
  3455. .get = msm_pcm_channel_weight_get,
  3456. .put = msm_pcm_channel_weight_put,
  3457. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3458. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3459. },
  3460. {
  3461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3462. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3463. .name = "MultiMedia1 Output Channel6",
  3464. .info = msm_pcm_channel_weight_info,
  3465. .get = msm_pcm_channel_weight_get,
  3466. .put = msm_pcm_channel_weight_put,
  3467. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3468. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3469. },
  3470. {
  3471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3472. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3473. .name = "MultiMedia1 Output Channel7",
  3474. .info = msm_pcm_channel_weight_info,
  3475. .get = msm_pcm_channel_weight_get,
  3476. .put = msm_pcm_channel_weight_put,
  3477. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3478. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3479. },
  3480. {
  3481. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3483. .name = "MultiMedia1 Output Channel8",
  3484. .info = msm_pcm_channel_weight_info,
  3485. .get = msm_pcm_channel_weight_get,
  3486. .put = msm_pcm_channel_weight_put,
  3487. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3488. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3489. },
  3490. {
  3491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3493. .name = "MultiMedia1 Output Channel9",
  3494. .info = msm_pcm_channel_weight_info,
  3495. .get = msm_pcm_channel_weight_get,
  3496. .put = msm_pcm_channel_weight_put,
  3497. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3498. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3499. },
  3500. {
  3501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3502. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3503. .name = "MultiMedia1 Output Channel10",
  3504. .info = msm_pcm_channel_weight_info,
  3505. .get = msm_pcm_channel_weight_get,
  3506. .put = msm_pcm_channel_weight_put,
  3507. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3508. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia1 Output Channel11",
  3514. .info = msm_pcm_channel_weight_info,
  3515. .get = msm_pcm_channel_weight_get,
  3516. .put = msm_pcm_channel_weight_put,
  3517. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3518. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3519. },
  3520. {
  3521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3523. .name = "MultiMedia1 Output Channel12",
  3524. .info = msm_pcm_channel_weight_info,
  3525. .get = msm_pcm_channel_weight_get,
  3526. .put = msm_pcm_channel_weight_put,
  3527. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3528. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3529. },
  3530. {
  3531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3533. .name = "MultiMedia1 Output Channel13",
  3534. .info = msm_pcm_channel_weight_info,
  3535. .get = msm_pcm_channel_weight_get,
  3536. .put = msm_pcm_channel_weight_put,
  3537. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3538. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia1 Output Channel14",
  3544. .info = msm_pcm_channel_weight_info,
  3545. .get = msm_pcm_channel_weight_get,
  3546. .put = msm_pcm_channel_weight_put,
  3547. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3548. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3549. },
  3550. {
  3551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3553. .name = "MultiMedia2 Output Channel1",
  3554. .info = msm_pcm_channel_weight_info,
  3555. .get = msm_pcm_channel_weight_get,
  3556. .put = msm_pcm_channel_weight_put,
  3557. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3558. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3559. },
  3560. {
  3561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3563. .name = "MultiMedia2 Output Channel2",
  3564. .info = msm_pcm_channel_weight_info,
  3565. .get = msm_pcm_channel_weight_get,
  3566. .put = msm_pcm_channel_weight_put,
  3567. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3568. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3569. },
  3570. {
  3571. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3572. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3573. .name = "MultiMedia2 Output Channel3",
  3574. .info = msm_pcm_channel_weight_info,
  3575. .get = msm_pcm_channel_weight_get,
  3576. .put = msm_pcm_channel_weight_put,
  3577. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3578. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3579. },
  3580. {
  3581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3583. .name = "MultiMedia3 Output Channel1",
  3584. .info = msm_pcm_channel_weight_info,
  3585. .get = msm_pcm_channel_weight_get,
  3586. .put = msm_pcm_channel_weight_put,
  3587. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3588. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3589. },
  3590. {
  3591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3592. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3593. .name = "MultiMedia3 Output Channel2",
  3594. .info = msm_pcm_channel_weight_info,
  3595. .get = msm_pcm_channel_weight_get,
  3596. .put = msm_pcm_channel_weight_put,
  3597. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3598. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3599. },
  3600. {
  3601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3603. .name = "MultiMedia1 Channel1",
  3604. .info = msm_pcm_channel_input_be_info,
  3605. .get = msm_pcm_channel_input_be_get,
  3606. .put = msm_pcm_channel_input_be_put,
  3607. .private_value = (unsigned long)&(mm1_ch1_enum)
  3608. },
  3609. {
  3610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3612. .name = "MultiMedia1 Channel2",
  3613. .info = msm_pcm_channel_input_be_info,
  3614. .get = msm_pcm_channel_input_be_get,
  3615. .put = msm_pcm_channel_input_be_put,
  3616. .private_value = (unsigned long)&(mm1_ch2_enum)
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Channel3",
  3622. .info = msm_pcm_channel_input_be_info,
  3623. .get = msm_pcm_channel_input_be_get,
  3624. .put = msm_pcm_channel_input_be_put,
  3625. .private_value = (unsigned long)&(mm1_ch3_enum)
  3626. },
  3627. {
  3628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3629. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3630. .name = "MultiMedia1 Channel4",
  3631. .info = msm_pcm_channel_input_be_info,
  3632. .get = msm_pcm_channel_input_be_get,
  3633. .put = msm_pcm_channel_input_be_put,
  3634. .private_value = (unsigned long)&(mm1_ch4_enum)
  3635. },
  3636. {
  3637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3639. .name = "MultiMedia1 Channel5",
  3640. .info = msm_pcm_channel_input_be_info,
  3641. .get = msm_pcm_channel_input_be_get,
  3642. .put = msm_pcm_channel_input_be_put,
  3643. .private_value = (unsigned long)&(mm1_ch5_enum)
  3644. },
  3645. {
  3646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3647. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3648. .name = "MultiMedia1 Channel6",
  3649. .info = msm_pcm_channel_input_be_info,
  3650. .get = msm_pcm_channel_input_be_get,
  3651. .put = msm_pcm_channel_input_be_put,
  3652. .private_value = (unsigned long)&(mm1_ch6_enum)
  3653. },
  3654. {
  3655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3657. .name = "MultiMedia1 Channel7",
  3658. .info = msm_pcm_channel_input_be_info,
  3659. .get = msm_pcm_channel_input_be_get,
  3660. .put = msm_pcm_channel_input_be_put,
  3661. .private_value = (unsigned long)&(mm1_ch7_enum)
  3662. },
  3663. {
  3664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3665. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3666. .name = "MultiMedia1 Channel8",
  3667. .info = msm_pcm_channel_input_be_info,
  3668. .get = msm_pcm_channel_input_be_get,
  3669. .put = msm_pcm_channel_input_be_put,
  3670. .private_value = (unsigned long)&(mm1_ch8_enum)
  3671. },
  3672. {
  3673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3675. .name = "MultiMedia1 Output Channel Map",
  3676. .info = msm_pcm_channel_output_map_info,
  3677. .get = msm_pcm_channel_output_map_get,
  3678. .put = msm_pcm_channel_output_map_put,
  3679. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3680. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  3681. },
  3682. {
  3683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3684. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3685. .name = "MultiMedia2 Output Channel Map",
  3686. .info = msm_pcm_channel_output_map_info,
  3687. .get = msm_pcm_channel_output_map_get,
  3688. .put = msm_pcm_channel_output_map_put,
  3689. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3690. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  3691. },
  3692. {
  3693. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3695. .name = "MultiMedia3 Output Channel Map",
  3696. .info = msm_pcm_channel_output_map_info,
  3697. .get = msm_pcm_channel_output_map_get,
  3698. .put = msm_pcm_channel_output_map_put,
  3699. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3700. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  3701. },
  3702. {
  3703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3705. .name = "MultiMedia4 Output Channel Map",
  3706. .info = msm_pcm_channel_output_map_info,
  3707. .get = msm_pcm_channel_output_map_get,
  3708. .put = msm_pcm_channel_output_map_put,
  3709. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3710. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  3711. },
  3712. {
  3713. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3714. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3715. .name = "MultiMedia5 Output Channel Map",
  3716. .info = msm_pcm_channel_output_map_info,
  3717. .get = msm_pcm_channel_output_map_get,
  3718. .put = msm_pcm_channel_output_map_put,
  3719. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3720. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  3721. },
  3722. {
  3723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3725. .name = "MultiMedia6 Output Channel Map",
  3726. .info = msm_pcm_channel_output_map_info,
  3727. .get = msm_pcm_channel_output_map_get,
  3728. .put = msm_pcm_channel_output_map_put,
  3729. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3730. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  3731. },
  3732. };
  3733. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3734. struct snd_ctl_elem_value *ucontrol)
  3735. {
  3736. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3737. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3738. ucontrol->value.integer.value[0]);
  3739. return 0;
  3740. }
  3741. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3742. struct snd_ctl_elem_value *ucontrol)
  3743. {
  3744. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3745. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3746. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3747. return 0;
  3748. }
  3749. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3750. struct snd_ctl_elem_value *ucontrol)
  3751. {
  3752. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3753. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3754. ucontrol->value.integer.value[0]);
  3755. return 0;
  3756. }
  3757. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3758. struct snd_ctl_elem_value *ucontrol)
  3759. {
  3760. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3761. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3762. __func__, msm_ec_ref_ch_downmixed);
  3763. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3764. return 0;
  3765. }
  3766. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3767. struct snd_ctl_elem_value *ucontrol)
  3768. {
  3769. int i = 0, ret = 0;
  3770. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3771. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3772. kcontrol->private_value)->shift;
  3773. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3774. weights[i] = ucontrol->value.integer.value[i];
  3775. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3776. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3777. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3778. return ret;
  3779. }
  3780. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3781. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3782. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3783. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3784. struct snd_ctl_elem_value *ucontrol)
  3785. {
  3786. switch (msm_ec_ref_bit_format) {
  3787. case SNDRV_PCM_FORMAT_S24_LE:
  3788. ucontrol->value.integer.value[0] = 2;
  3789. break;
  3790. case SNDRV_PCM_FORMAT_S16_LE:
  3791. ucontrol->value.integer.value[0] = 1;
  3792. break;
  3793. default:
  3794. ucontrol->value.integer.value[0] = 0;
  3795. break;
  3796. }
  3797. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3798. __func__, ucontrol->value.integer.value[0]);
  3799. return 0;
  3800. }
  3801. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3802. struct snd_ctl_elem_value *ucontrol)
  3803. {
  3804. u16 bit_width = 0;
  3805. switch (ucontrol->value.integer.value[0]) {
  3806. case 2:
  3807. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3808. break;
  3809. case 1:
  3810. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3811. break;
  3812. default:
  3813. msm_ec_ref_bit_format = 0;
  3814. break;
  3815. }
  3816. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3817. bit_width = 16;
  3818. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3819. bit_width = 24;
  3820. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3821. __func__, msm_ec_ref_bit_format);
  3822. adm_ec_ref_rx_bit_width(bit_width);
  3823. return 0;
  3824. }
  3825. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3826. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3827. struct snd_ctl_elem_value *ucontrol)
  3828. {
  3829. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3830. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3831. __func__, ucontrol->value.integer.value[0]);
  3832. return 0;
  3833. }
  3834. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3835. struct snd_ctl_elem_value *ucontrol)
  3836. {
  3837. switch (ucontrol->value.integer.value[0]) {
  3838. case 0:
  3839. msm_ec_ref_sampling_rate = 0;
  3840. break;
  3841. case 1:
  3842. msm_ec_ref_sampling_rate = 8000;
  3843. break;
  3844. case 2:
  3845. msm_ec_ref_sampling_rate = 16000;
  3846. break;
  3847. case 3:
  3848. msm_ec_ref_sampling_rate = 32000;
  3849. break;
  3850. case 4:
  3851. msm_ec_ref_sampling_rate = 44100;
  3852. break;
  3853. case 5:
  3854. msm_ec_ref_sampling_rate = 48000;
  3855. break;
  3856. case 6:
  3857. msm_ec_ref_sampling_rate = 96000;
  3858. break;
  3859. case 7:
  3860. msm_ec_ref_sampling_rate = 192000;
  3861. break;
  3862. case 8:
  3863. msm_ec_ref_sampling_rate = 384000;
  3864. break;
  3865. default:
  3866. msm_ec_ref_sampling_rate = 48000;
  3867. break;
  3868. }
  3869. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3870. __func__, msm_ec_ref_sampling_rate);
  3871. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3872. return 0;
  3873. }
  3874. static int get_ec_ref_port_id(int value, int *index)
  3875. {
  3876. int port_id;
  3877. switch (value) {
  3878. case 0:
  3879. *index = 0;
  3880. port_id = AFE_PORT_INVALID;
  3881. break;
  3882. case 1:
  3883. *index = 1;
  3884. port_id = SLIMBUS_0_RX;
  3885. break;
  3886. case 2:
  3887. *index = 2;
  3888. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3889. break;
  3890. case 3:
  3891. *index = 3;
  3892. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3893. break;
  3894. case 4:
  3895. *index = 4;
  3896. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3897. break;
  3898. case 5:
  3899. *index = 5;
  3900. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3901. break;
  3902. case 6:
  3903. *index = 6;
  3904. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3905. break;
  3906. case 7:
  3907. *index = 7;
  3908. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3909. break;
  3910. case 9:
  3911. *index = 9;
  3912. port_id = SLIMBUS_5_RX;
  3913. break;
  3914. case 10:
  3915. *index = 10;
  3916. port_id = SLIMBUS_1_TX;
  3917. break;
  3918. case 11:
  3919. *index = 11;
  3920. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3921. break;
  3922. case 12:
  3923. *index = 12;
  3924. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3925. break;
  3926. case 13:
  3927. *index = 13;
  3928. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3929. break;
  3930. case 14:
  3931. *index = 14;
  3932. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3933. break;
  3934. case 15:
  3935. *index = 15;
  3936. port_id = SLIMBUS_6_RX;
  3937. break;
  3938. case 16:
  3939. *index = 16;
  3940. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3941. break;
  3942. case 17:
  3943. *index = 17;
  3944. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3945. break;
  3946. case 18:
  3947. *index = 18;
  3948. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3949. break;
  3950. case 19:
  3951. *index = 19;
  3952. port_id = AFE_PORT_ID_USB_RX;
  3953. break;
  3954. case 20:
  3955. *index = 20;
  3956. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3957. break;
  3958. case 21:
  3959. *index = 21;
  3960. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3961. break;
  3962. case 22:
  3963. *index = 22;
  3964. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3965. break;
  3966. case 23:
  3967. *index = 23;
  3968. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3969. break;
  3970. case 24:
  3971. *index = 24;
  3972. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3973. break;
  3974. case 25:
  3975. *index = 25;
  3976. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3977. break;
  3978. case 26:
  3979. *index = 26;
  3980. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3981. break;
  3982. case 27:
  3983. *index = 27;
  3984. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3985. break;
  3986. case 28:
  3987. *index = 28;
  3988. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3989. break;
  3990. case 29:
  3991. *index = 29;
  3992. port_id = SLIMBUS_7_RX;
  3993. break;
  3994. case 30:
  3995. *index = 30;
  3996. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3997. break;
  3998. case 31:
  3999. *index = 31;
  4000. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4001. break;
  4002. case 32:
  4003. *index = 32;
  4004. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4005. break;
  4006. case 33:
  4007. *index = 33;
  4008. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4009. break;
  4010. case 34:
  4011. *index = 34;
  4012. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  4013. break;
  4014. case 35:
  4015. *index = 35;
  4016. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  4017. break;
  4018. case 36:
  4019. *index = 36;
  4020. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4021. break;
  4022. default:
  4023. *index = 0; /* NONE */
  4024. pr_err("%s: Invalid value %d\n", __func__, value);
  4025. port_id = AFE_PORT_INVALID;
  4026. break;
  4027. }
  4028. return port_id;
  4029. }
  4030. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  4031. struct snd_ctl_elem_value *ucontrol)
  4032. {
  4033. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  4034. mutex_lock(&routing_lock);
  4035. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  4036. mutex_unlock(&routing_lock);
  4037. return 0;
  4038. }
  4039. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  4040. struct snd_ctl_elem_value *ucontrol)
  4041. {
  4042. int value = ucontrol->value.integer.value[0];
  4043. mutex_lock(&routing_lock);
  4044. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  4045. &afe_loopback_tx_port_index);
  4046. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  4047. __func__, afe_loopback_tx_port_index);
  4048. mutex_unlock(&routing_lock);
  4049. return 0;
  4050. }
  4051. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  4052. "32000", "44100", "48000", "96000", "192000", "384000"};
  4053. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  4054. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  4055. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  4056. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  4057. };
  4058. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  4059. "PRI_MI2S_TX", "SEC_MI2S_TX",
  4060. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  4061. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  4062. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  4063. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  4064. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  4065. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  4066. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  4067. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  4068. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  4069. };
  4070. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  4071. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  4072. };
  4073. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  4074. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  4075. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  4076. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  4077. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  4078. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  4079. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  4080. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  4081. msm_route_ec_ref_params_enum[0],
  4082. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  4083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  4084. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4085. msm_ec_ref_chmixer_weights_put),
  4086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  4087. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4088. msm_ec_ref_chmixer_weights_put),
  4089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  4090. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4091. msm_ec_ref_chmixer_weights_put),
  4092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  4093. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4094. msm_ec_ref_chmixer_weights_put),
  4095. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  4096. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4097. msm_ec_ref_chmixer_weights_put),
  4098. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  4099. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4100. msm_ec_ref_chmixer_weights_put),
  4101. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  4102. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  4103. };
  4104. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  4105. struct snd_ctl_elem_value *ucontrol)
  4106. {
  4107. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  4108. mutex_lock(&routing_lock);
  4109. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  4110. mutex_unlock(&routing_lock);
  4111. return 0;
  4112. }
  4113. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  4114. struct snd_ctl_elem_value *ucontrol)
  4115. {
  4116. int value = ucontrol->value.integer.value[0];
  4117. struct snd_soc_dapm_widget *widget =
  4118. snd_soc_dapm_kcontrol_widget(kcontrol);
  4119. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4120. struct snd_soc_dapm_update *update = NULL;
  4121. mutex_lock(&routing_lock);
  4122. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  4123. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  4124. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  4125. __func__, msm_route_ec_ref_rx);
  4126. mutex_unlock(&routing_lock);
  4127. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  4128. msm_route_ec_ref_rx, e, update);
  4129. return 0;
  4130. }
  4131. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  4132. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  4133. msm_route_ec_ref_rx_enum[0],
  4134. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4135. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  4136. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  4137. msm_route_ec_ref_rx_enum[0],
  4138. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4139. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  4140. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  4141. msm_route_ec_ref_rx_enum[0],
  4142. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4143. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  4144. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  4145. msm_route_ec_ref_rx_enum[0],
  4146. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4147. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  4148. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  4149. msm_route_ec_ref_rx_enum[0],
  4150. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4151. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  4152. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  4153. msm_route_ec_ref_rx_enum[0],
  4154. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4155. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  4156. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  4157. msm_route_ec_ref_rx_enum[0],
  4158. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4159. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  4160. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  4161. msm_route_ec_ref_rx_enum[0],
  4162. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4163. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  4164. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  4165. msm_route_ec_ref_rx_enum[0],
  4166. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4167. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  4168. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  4169. msm_route_ec_ref_rx_enum[0],
  4170. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4171. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  4172. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  4173. msm_route_ec_ref_rx_enum[0],
  4174. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4175. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  4176. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  4177. msm_route_ec_ref_rx_enum[0],
  4178. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4179. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  4180. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  4181. msm_route_ec_ref_rx_enum[0],
  4182. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4183. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  4184. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  4185. msm_route_ec_ref_rx_enum[0],
  4186. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4187. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  4188. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  4189. msm_route_ec_ref_rx_enum[0],
  4190. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4191. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  4192. struct snd_ctl_elem_value *ucontrol)
  4193. {
  4194. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  4195. mutex_lock(&routing_lock);
  4196. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  4197. mutex_unlock(&routing_lock);
  4198. return 0;
  4199. }
  4200. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  4201. struct snd_ctl_elem_value *ucontrol)
  4202. {
  4203. struct snd_soc_dapm_widget *widget =
  4204. snd_soc_dapm_kcontrol_widget(kcontrol);
  4205. int mux = ucontrol->value.enumerated.item[0];
  4206. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4207. int ret = 1;
  4208. bool state = true;
  4209. uint16_t ext_ec_ref_port_id;
  4210. struct snd_soc_dapm_update *update = NULL;
  4211. if (mux >= e->items) {
  4212. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  4213. return -EINVAL;
  4214. }
  4215. mutex_lock(&routing_lock);
  4216. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  4217. switch (msm_route_ext_ec_ref) {
  4218. case EXT_EC_REF_PRI_MI2S_TX:
  4219. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4220. break;
  4221. case EXT_EC_REF_SEC_MI2S_TX:
  4222. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4223. break;
  4224. case EXT_EC_REF_TERT_MI2S_TX:
  4225. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4226. break;
  4227. case EXT_EC_REF_QUAT_MI2S_TX:
  4228. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4229. break;
  4230. case EXT_EC_REF_QUIN_MI2S_TX:
  4231. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  4232. break;
  4233. case EXT_EC_REF_SLIM_1_TX:
  4234. ext_ec_ref_port_id = SLIMBUS_1_TX;
  4235. break;
  4236. case EXT_EC_REF_SEC_TDM_TX:
  4237. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4238. break;
  4239. case EXT_EC_REF_NONE:
  4240. default:
  4241. ext_ec_ref_port_id = AFE_PORT_INVALID;
  4242. state = false;
  4243. break;
  4244. }
  4245. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  4246. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  4247. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  4248. mutex_unlock(&routing_lock);
  4249. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  4250. update);
  4251. } else {
  4252. ret = -EINVAL;
  4253. mutex_unlock(&routing_lock);
  4254. }
  4255. return ret;
  4256. }
  4257. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  4258. "SEC_MI2S_TX", "TERT_MI2S_TX",
  4259. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  4260. "SLIM_1_TX", "SEC_TDM_TX"};
  4261. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  4262. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  4263. };
  4264. static const struct snd_kcontrol_new voc_ext_ec_mux =
  4265. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  4266. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  4267. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  4268. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_PRI_I2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_PRI_I2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_PRI_I2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_PRI_I2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_PRI_I2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_PRI_I2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_PRI_I2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_PRI_I2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_PRI_I2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_PRI_I2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_PRI_I2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_PRI_I2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_PRI_I2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_PRI_I2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_PRI_I2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_PRI_I2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_PRI_I2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_PRI_I2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_PRI_I2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_PRI_I2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_PRI_I2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_PRI_I2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. };
  4357. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4358. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_SEC_I2S_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_SEC_I2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_SEC_I2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_SEC_I2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_SEC_I2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_SEC_I2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_SEC_I2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_SEC_I2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_SEC_I2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_SEC_I2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_SEC_I2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_SEC_I2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_SEC_I2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_SEC_I2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_SEC_I2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_SEC_I2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_SEC_I2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_SEC_I2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_SEC_I2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_SEC_I2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_SEC_I2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_SEC_I2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. };
  4447. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4448. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4477. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4481. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4485. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4489. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4493. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4497. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4501. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4505. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4533. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. };
  4537. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4538. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. };
  4627. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4641. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4645. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4657. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4661. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4665. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4669. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4673. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4677. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4681. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4685. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. };
  4697. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4707. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4711. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4727. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4747. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4751. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4755. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. };
  4787. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4788. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4841. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4845. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. };
  4877. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_MI2S_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_MI2S_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_MI2S_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_MI2S_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_MI2S_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_MI2S_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_MI2S_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_MI2S_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_MI2S_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_MI2S_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_MI2S_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_MI2S_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_MI2S_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_MI2S_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_MI2S_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_MI2S_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_MI2S_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_MI2S_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_MI2S_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_MI2S_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_MI2S_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. };
  4967. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4968. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. };
  5057. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  5058. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5103. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5107. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. };
  5147. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  5148. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5149. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5169. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5173. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5174. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5175. msm_routing_put_audio_mixer),
  5176. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. };
  5237. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  5238. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. };
  5319. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  5320. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. };
  5325. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  5326. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. };
  5415. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5416. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. };
  5505. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. };
  5571. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5572. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. };
  5637. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5638. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_HDMI_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_HDMI_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_HDMI_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_HDMI_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_HDMI_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_HDMI_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_HDMI_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_HDMI_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_HDMI_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_HDMI_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_HDMI_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_HDMI_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_HDMI_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_HDMI_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_HDMI_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_HDMI_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_HDMI_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_HDMI_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_HDMI_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_HDMI_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_HDMI_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_HDMI_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. };
  5727. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. };
  5797. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5798. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. };
  5867. /* incall music delivery mixer */
  5868. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5869. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. };
  5886. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. };
  5904. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5905. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. };
  5922. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. };
  5992. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. };
  6062. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  6063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. };
  6132. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  6133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. };
  6202. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  6203. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. };
  6272. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  6273. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. };
  6342. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  6343. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. };
  6412. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6413. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. };
  6482. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6483. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. };
  6552. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6553. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. };
  6622. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. };
  6692. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. };
  6762. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6763. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. };
  6832. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6833. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_USB_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_USB_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_USB_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_USB_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_USB_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_USB_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_USB_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_USB_RX,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_USB_RX,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_USB_RX,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_USB_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_USB_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_USB_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_USB_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_USB_RX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_USB_RX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_USB_RX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. };
  6902. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. };
  6992. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. };
  7062. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  7063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_INT_FM_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_INT_FM_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_INT_FM_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_INT_FM_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_INT_FM_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_INT_FM_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_INT_FM_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_INT_FM_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_INT_FM_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_INT_FM_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_INT_FM_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_INT_FM_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_INT_FM_RX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_INT_FM_RX,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_INT_FM_RX,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_INT_FM_RX,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_INT_FM_RX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_INT_FM_RX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_INT_FM_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_INT_FM_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_INT_FM_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_INT_FM_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_AFE_PCM_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_AFE_PCM_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_AFE_PCM_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_AFE_PCM_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_AFE_PCM_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_AFE_PCM_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_AFE_PCM_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_AFE_PCM_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_AFE_PCM_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_AFE_PCM_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_AFE_PCM_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_AFE_PCM_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_AFE_PCM_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_AFE_PCM_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_AFE_PCM_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_AFE_PCM_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_AFE_PCM_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_AFE_PCM_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_AFE_PCM_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_AFE_PCM_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_AFE_PCM_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_AFE_PCM_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. };
  7242. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  7243. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_AUXPCM_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_AUXPCM_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_AUXPCM_RX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_AUXPCM_RX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_AUXPCM_RX,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_AUXPCM_RX,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_AUXPCM_RX,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_AUXPCM_RX,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_AUXPCM_RX,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_AUXPCM_RX,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_AUXPCM_RX,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_AUXPCM_RX,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_AUXPCM_RX,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_AUXPCM_RX,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_AUXPCM_RX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_AUXPCM_RX,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_AUXPCM_RX,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_AUXPCM_RX,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_AUXPCM_RX,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_AUXPCM_RX,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_AUXPCM_RX,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_AUXPCM_RX,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_AUXPCM_RX,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. };
  7336. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  7337. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. };
  7430. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7431. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. };
  7500. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7501. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. };
  7570. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7571. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. };
  7640. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  7641. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. };
  7710. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7711. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. };
  7780. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7781. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. };
  7850. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. };
  7920. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. };
  7990. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7991. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. };
  8056. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  8057. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. };
  8126. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  8127. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. };
  8196. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  8197. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. };
  8266. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  8267. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. };
  8336. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  8337. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. };
  8402. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  8403. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. };
  8472. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8473. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. };
  8538. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8539. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. };
  8608. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8609. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. };
  8678. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8679. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. };
  8748. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8749. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. };
  8818. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8819. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. };
  8892. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8893. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. };
  8958. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8959. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. };
  9032. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  9033. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. };
  9106. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  9107. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. };
  9180. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  9181. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. };
  9254. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  9255. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. };
  9320. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  9321. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. };
  9394. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  9395. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. };
  9468. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  9469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. };
  9542. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  9543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. };
  9616. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  9617. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. };
  9682. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  9683. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. };
  9756. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  9757. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. };
  9830. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  9831. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. };
  9904. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9905. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_PRI_I2S_TX,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_MI2S_TX,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_AUXPCM_TX,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_INT_FM_TX,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_AFE_PCM_TX,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_USB_TX,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. };
  10178. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  10179. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_INT_FM_TX,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_MI2S_TX,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_USB_TX,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. };
  10400. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  10401. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_INT_FM_TX,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_MI2S_TX,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_AFE_PCM_TX,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_AUXPCM_TX,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. };
  10622. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  10623. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_INT_FM_TX,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_AFE_PCM_TX,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_USB_TX,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. };
  10836. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  10837. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_INT_FM_TX,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_MI2S_TX,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_AFE_PCM_TX,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_AUXPCM_TX,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_USB_TX,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. };
  11082. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  11083. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_INT_FM_TX,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_AUXPCM_TX,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_USB_TX,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. };
  11304. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  11305. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_INT_FM_TX,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_AFE_PCM_TX,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_USB_TX,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. };
  11530. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  11531. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_INT_FM_TX,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_AFE_PCM_TX,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_USB_TX,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_MI2S_TX,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_AUXPCM_TX,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11702. msm_routing_get_audio_mixer,
  11703. msm_routing_put_audio_mixer),
  11704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11707. msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11712. msm_routing_get_audio_mixer,
  11713. msm_routing_put_audio_mixer),
  11714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11717. msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11722. msm_routing_get_audio_mixer,
  11723. msm_routing_put_audio_mixer),
  11724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11727. msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. };
  11746. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  11747. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_INT_FM_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_AFE_PCM_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. };
  11908. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  11909. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_INT_FM_TX,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_AFE_PCM_TX,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_USB_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_MI2S_TX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_AUXPCM_TX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12044. msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12049. msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12054. msm_routing_get_audio_mixer,
  12055. msm_routing_put_audio_mixer),
  12056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12058. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12059. msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12064. msm_routing_get_audio_mixer,
  12065. msm_routing_put_audio_mixer),
  12066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12068. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12069. msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. };
  12088. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  12089. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_INT_FM_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_AFE_PCM_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12160. msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12165. msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12170. msm_routing_get_audio_mixer,
  12171. msm_routing_put_audio_mixer),
  12172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12174. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12175. msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12180. msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12185. msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. };
  12200. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  12201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_INT_FM_TX,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_AFE_PCM_TX,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12276. msm_routing_get_audio_mixer,
  12277. msm_routing_put_audio_mixer),
  12278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12281. msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12286. msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12291. msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12296. msm_routing_get_audio_mixer,
  12297. msm_routing_put_audio_mixer),
  12298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12300. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12301. msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. };
  12316. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  12317. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_INT_FM_TX,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_AFE_PCM_TX,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12392. msm_routing_get_audio_mixer,
  12393. msm_routing_put_audio_mixer),
  12394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12396. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12397. msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12402. msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12407. msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12412. msm_routing_get_audio_mixer,
  12413. msm_routing_put_audio_mixer),
  12414. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12416. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12417. msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. };
  12432. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  12433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. };
  12614. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  12615. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_AUXPCM_TX,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. };
  12780. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  12781. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. };
  12838. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  12839. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_INT_FM_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_AFE_PCM_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12914. msm_routing_get_audio_mixer,
  12915. msm_routing_put_audio_mixer),
  12916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12918. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12919. msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12924. msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12929. msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12934. msm_routing_get_audio_mixer,
  12935. msm_routing_put_audio_mixer),
  12936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12938. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12939. msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. };
  12954. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  12955. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_INT_FM_TX,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_AFE_PCM_TX,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13030. msm_routing_get_audio_mixer,
  13031. msm_routing_put_audio_mixer),
  13032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13034. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13035. msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13040. msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13045. msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13050. msm_routing_get_audio_mixer,
  13051. msm_routing_put_audio_mixer),
  13052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13054. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13055. msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13067. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13068. msm_routing_put_audio_mixer),
  13069. };
  13070. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  13071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_PRI_I2S_RX,
  13073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13074. msm_routing_put_voice_mixer),
  13075. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_PRI_I2S_RX,
  13077. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13078. msm_routing_put_voice_mixer),
  13079. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_PRI_I2S_RX,
  13081. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13082. msm_routing_put_voice_mixer),
  13083. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_PRI_I2S_RX,
  13085. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13086. msm_routing_put_voice_mixer),
  13087. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_PRI_I2S_RX,
  13089. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13090. msm_routing_put_voice_mixer),
  13091. };
  13092. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  13093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_SEC_I2S_RX,
  13095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13096. msm_routing_put_voice_mixer),
  13097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_SEC_I2S_RX,
  13099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13100. msm_routing_put_voice_mixer),
  13101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_SEC_I2S_RX,
  13103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13104. msm_routing_put_voice_mixer),
  13105. };
  13106. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  13107. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13109. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13110. msm_routing_put_voice_mixer),
  13111. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13113. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13114. msm_routing_put_voice_mixer),
  13115. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13117. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13118. msm_routing_put_voice_mixer),
  13119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13122. msm_routing_put_voice_mixer),
  13123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13126. msm_routing_put_voice_mixer),
  13127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13130. msm_routing_put_voice_mixer),
  13131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13134. msm_routing_put_voice_mixer),
  13135. };
  13136. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  13137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13140. msm_routing_put_voice_mixer),
  13141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13144. msm_routing_put_voice_mixer),
  13145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13148. msm_routing_put_voice_mixer),
  13149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13152. msm_routing_put_voice_mixer),
  13153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13156. msm_routing_put_voice_mixer),
  13157. };
  13158. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  13159. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13161. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13162. msm_routing_put_voice_mixer),
  13163. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13165. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13166. msm_routing_put_voice_mixer),
  13167. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13170. msm_routing_put_voice_mixer),
  13171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13174. msm_routing_put_voice_mixer),
  13175. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13177. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13178. msm_routing_put_voice_mixer),
  13179. };
  13180. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  13181. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_USB_RX,
  13183. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13184. msm_routing_put_voice_mixer),
  13185. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_USB_RX,
  13187. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13188. msm_routing_put_voice_mixer),
  13189. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_USB_RX,
  13191. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13192. msm_routing_put_voice_mixer),
  13193. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_USB_RX,
  13195. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13196. msm_routing_put_voice_mixer),
  13197. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_USB_RX,
  13199. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13200. msm_routing_put_voice_mixer),
  13201. };
  13202. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  13203. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13206. msm_routing_put_voice_mixer),
  13207. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13209. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13210. msm_routing_put_voice_mixer),
  13211. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13214. msm_routing_put_voice_mixer),
  13215. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13217. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13218. msm_routing_put_voice_mixer),
  13219. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13221. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13222. msm_routing_put_voice_mixer),
  13223. };
  13224. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  13225. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13227. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13228. msm_routing_put_voice_mixer),
  13229. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13231. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13232. msm_routing_put_voice_mixer),
  13233. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13235. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13236. msm_routing_put_voice_mixer),
  13237. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13239. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13240. msm_routing_put_voice_mixer),
  13241. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13243. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13244. msm_routing_put_voice_mixer),
  13245. };
  13246. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  13247. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13249. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13250. msm_routing_put_voice_mixer),
  13251. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13253. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13254. msm_routing_put_voice_mixer),
  13255. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13257. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13258. msm_routing_put_voice_mixer),
  13259. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13261. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13262. msm_routing_put_voice_mixer),
  13263. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13265. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13266. msm_routing_put_voice_mixer),
  13267. };
  13268. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  13269. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_MI2S_RX,
  13271. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13272. msm_routing_put_voice_mixer),
  13273. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_MI2S_RX,
  13275. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13276. msm_routing_put_voice_mixer),
  13277. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_MI2S_RX,
  13279. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13280. msm_routing_put_voice_mixer),
  13281. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_MI2S_RX,
  13283. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13284. msm_routing_put_voice_mixer),
  13285. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_MI2S_RX,
  13287. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13288. msm_routing_put_voice_mixer),
  13289. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_MI2S_RX,
  13291. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13292. msm_routing_put_voice_mixer),
  13293. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_MI2S_RX,
  13295. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13296. msm_routing_put_voice_mixer),
  13297. };
  13298. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  13299. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13301. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13302. msm_routing_put_voice_mixer),
  13303. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13305. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13306. msm_routing_put_voice_mixer),
  13307. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13309. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13310. msm_routing_put_voice_mixer),
  13311. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13313. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13314. msm_routing_put_voice_mixer),
  13315. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13317. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13318. msm_routing_put_voice_mixer),
  13319. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13321. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13322. msm_routing_put_voice_mixer),
  13323. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13325. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13326. msm_routing_put_voice_mixer),
  13327. };
  13328. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  13329. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13331. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13332. msm_routing_put_voice_mixer),
  13333. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13335. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13336. msm_routing_put_voice_mixer),
  13337. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13339. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13340. msm_routing_put_voice_mixer),
  13341. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13343. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13344. msm_routing_put_voice_mixer),
  13345. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13347. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13348. msm_routing_put_voice_mixer),
  13349. };
  13350. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  13351. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13353. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13354. msm_routing_put_voice_mixer),
  13355. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13357. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13358. msm_routing_put_voice_mixer),
  13359. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13361. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13362. msm_routing_put_voice_mixer),
  13363. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13365. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13366. msm_routing_put_voice_mixer),
  13367. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13369. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13370. msm_routing_put_voice_mixer),
  13371. };
  13372. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  13373. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13375. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13376. msm_routing_put_voice_mixer),
  13377. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13379. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13380. msm_routing_put_voice_mixer),
  13381. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13383. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13384. msm_routing_put_voice_mixer),
  13385. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13387. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13388. msm_routing_put_voice_mixer),
  13389. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13392. msm_routing_put_voice_mixer),
  13393. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13396. msm_routing_put_voice_mixer),
  13397. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13399. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13400. msm_routing_put_voice_mixer),
  13401. };
  13402. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  13403. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13405. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13406. msm_routing_put_voice_mixer),
  13407. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13409. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13410. msm_routing_put_voice_mixer),
  13411. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13413. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13414. msm_routing_put_voice_mixer),
  13415. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13417. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13418. msm_routing_put_voice_mixer),
  13419. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13421. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13422. msm_routing_put_voice_mixer),
  13423. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13425. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13426. msm_routing_put_voice_mixer),
  13427. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13429. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13430. msm_routing_put_voice_mixer),
  13431. };
  13432. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  13433. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13435. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13436. msm_routing_put_voice_mixer),
  13437. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13439. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13440. msm_routing_put_voice_stub_mixer),
  13441. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13443. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13444. msm_routing_put_voice_stub_mixer),
  13445. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13447. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13448. msm_routing_put_voice_mixer),
  13449. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13451. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13452. msm_routing_put_voice_mixer),
  13453. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13455. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13456. msm_routing_put_voice_mixer),
  13457. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13459. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13460. msm_routing_put_voice_mixer),
  13461. };
  13462. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  13463. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13465. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13466. msm_routing_put_voice_mixer),
  13467. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13469. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13470. msm_routing_put_voice_mixer),
  13471. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13473. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13474. msm_routing_put_voice_mixer),
  13475. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13477. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13478. msm_routing_put_voice_mixer),
  13479. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13481. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13482. msm_routing_put_voice_mixer),
  13483. };
  13484. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  13485. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_AFE_PCM_RX,
  13487. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13488. msm_routing_put_voice_mixer),
  13489. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_AFE_PCM_RX,
  13491. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13492. msm_routing_put_voice_mixer),
  13493. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_AFE_PCM_RX,
  13495. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13496. msm_routing_put_voice_mixer),
  13497. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_AFE_PCM_RX,
  13499. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13500. msm_routing_put_voice_mixer),
  13501. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_AFE_PCM_RX,
  13503. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13504. msm_routing_put_voice_mixer),
  13505. };
  13506. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  13507. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_AUXPCM_RX,
  13509. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13510. msm_routing_put_voice_mixer),
  13511. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_AUXPCM_RX,
  13513. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13514. msm_routing_put_voice_mixer),
  13515. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_AUXPCM_RX,
  13517. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13518. msm_routing_put_voice_mixer),
  13519. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_AUXPCM_RX,
  13521. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13522. msm_routing_put_voice_mixer),
  13523. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_AUXPCM_RX,
  13525. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13526. msm_routing_put_voice_mixer),
  13527. };
  13528. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  13529. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13531. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13532. msm_routing_put_voice_mixer),
  13533. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13535. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13536. msm_routing_put_voice_mixer),
  13537. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13540. msm_routing_put_voice_mixer),
  13541. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13543. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13544. msm_routing_put_voice_mixer),
  13545. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13547. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13548. msm_routing_put_voice_mixer),
  13549. };
  13550. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  13551. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13553. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13554. msm_routing_put_voice_mixer),
  13555. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13557. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13558. msm_routing_put_voice_mixer),
  13559. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13561. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13562. msm_routing_put_voice_mixer),
  13563. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13565. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13566. msm_routing_put_voice_mixer),
  13567. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13569. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13570. msm_routing_put_voice_mixer),
  13571. };
  13572. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  13573. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13576. msm_routing_put_voice_mixer),
  13577. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13579. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13580. msm_routing_put_voice_mixer),
  13581. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13583. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13584. msm_routing_put_voice_mixer),
  13585. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13587. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13588. msm_routing_put_voice_mixer),
  13589. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13591. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13592. msm_routing_put_voice_mixer),
  13593. };
  13594. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  13595. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13597. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13598. msm_routing_put_voice_mixer),
  13599. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13601. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13602. msm_routing_put_voice_mixer),
  13603. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13606. msm_routing_put_voice_mixer),
  13607. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13609. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13610. msm_routing_put_voice_mixer),
  13611. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13614. msm_routing_put_voice_mixer),
  13615. };
  13616. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  13617. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13618. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13619. msm_routing_put_voice_mixer),
  13620. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13621. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13622. msm_routing_put_voice_mixer),
  13623. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13624. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13625. msm_routing_put_voice_mixer),
  13626. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13628. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13629. msm_routing_put_voice_mixer),
  13630. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13632. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13633. msm_routing_put_voice_mixer),
  13634. };
  13635. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  13636. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_HDMI_RX,
  13638. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13639. msm_routing_put_voice_mixer),
  13640. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_HDMI_RX,
  13642. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13643. msm_routing_put_voice_mixer),
  13644. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_HDMI_RX,
  13646. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13647. msm_routing_put_voice_mixer),
  13648. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_HDMI_RX,
  13650. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13651. msm_routing_put_voice_mixer),
  13652. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_HDMI_RX,
  13654. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13655. msm_routing_put_voice_mixer),
  13656. };
  13657. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  13658. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13660. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13661. msm_routing_put_voice_mixer),
  13662. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13664. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13665. msm_routing_put_voice_mixer),
  13666. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13668. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13669. msm_routing_put_voice_mixer),
  13670. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13672. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13673. msm_routing_put_voice_mixer),
  13674. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13676. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13677. msm_routing_put_voice_mixer),
  13678. };
  13679. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  13680. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13682. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13683. msm_routing_put_voice_mixer),
  13684. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13686. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13687. msm_routing_put_voice_mixer),
  13688. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13690. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13691. msm_routing_put_voice_mixer),
  13692. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13694. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13695. msm_routing_put_voice_mixer),
  13696. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13698. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13699. msm_routing_put_voice_mixer),
  13700. };
  13701. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  13702. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13704. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13705. msm_routing_put_voice_mixer),
  13706. };
  13707. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  13708. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13710. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13711. msm_routing_put_voice_mixer),
  13712. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13714. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13715. msm_routing_put_voice_mixer),
  13716. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13718. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13719. msm_routing_put_voice_mixer),
  13720. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13722. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13723. msm_routing_put_voice_mixer),
  13724. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13726. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13727. msm_routing_put_voice_mixer),
  13728. };
  13729. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  13730. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13732. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13733. msm_routing_put_voice_mixer),
  13734. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13736. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13737. msm_routing_put_voice_mixer),
  13738. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13740. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13741. msm_routing_put_voice_mixer),
  13742. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13744. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13745. msm_routing_put_voice_mixer),
  13746. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13748. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13749. msm_routing_put_voice_mixer),
  13750. };
  13751. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  13752. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13754. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13755. msm_routing_put_voice_mixer),
  13756. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13758. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13759. msm_routing_put_voice_mixer),
  13760. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13762. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13763. msm_routing_put_voice_mixer),
  13764. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13766. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13767. msm_routing_put_voice_mixer),
  13768. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13770. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13771. msm_routing_put_voice_mixer),
  13772. };
  13773. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  13774. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13776. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13777. msm_routing_put_voice_mixer),
  13778. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13780. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13781. msm_routing_put_voice_mixer),
  13782. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13784. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13785. msm_routing_put_voice_mixer),
  13786. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13788. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13789. msm_routing_put_voice_mixer),
  13790. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13792. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13793. msm_routing_put_voice_mixer),
  13794. };
  13795. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  13796. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13798. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13799. msm_routing_put_voice_mixer),
  13800. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13802. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13803. msm_routing_put_voice_mixer),
  13804. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13806. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13807. msm_routing_put_voice_mixer),
  13808. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13810. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13811. msm_routing_put_voice_mixer),
  13812. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13814. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13815. msm_routing_put_voice_mixer),
  13816. };
  13817. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  13818. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13821. msm_routing_put_voice_mixer),
  13822. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13824. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13825. msm_routing_put_voice_mixer),
  13826. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13828. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13829. msm_routing_put_voice_mixer),
  13830. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13832. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13833. msm_routing_put_voice_mixer),
  13834. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13836. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13837. msm_routing_put_voice_mixer),
  13838. };
  13839. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  13840. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13842. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13843. msm_routing_put_voice_mixer),
  13844. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13846. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13847. msm_routing_put_voice_mixer),
  13848. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13850. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13851. msm_routing_put_voice_mixer),
  13852. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13854. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13855. msm_routing_put_voice_mixer),
  13856. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13858. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13859. msm_routing_put_voice_mixer),
  13860. };
  13861. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  13862. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13865. msm_routing_put_voice_mixer),
  13866. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13868. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13869. msm_routing_put_voice_mixer),
  13870. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13872. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13873. msm_routing_put_voice_mixer),
  13874. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13876. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13877. msm_routing_put_voice_mixer),
  13878. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13880. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13881. msm_routing_put_voice_mixer),
  13882. };
  13883. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  13884. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13886. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13887. msm_routing_put_voice_mixer),
  13888. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13890. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13891. msm_routing_put_voice_mixer),
  13892. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13894. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13895. msm_routing_put_voice_mixer),
  13896. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13898. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13899. msm_routing_put_voice_mixer),
  13900. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13902. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13903. msm_routing_put_voice_mixer),
  13904. };
  13905. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  13906. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13908. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13909. msm_routing_put_voice_mixer),
  13910. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13912. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13913. msm_routing_put_voice_mixer),
  13914. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13916. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13917. msm_routing_put_voice_mixer),
  13918. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13920. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13921. msm_routing_put_voice_mixer),
  13922. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13924. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13925. msm_routing_put_voice_mixer),
  13926. };
  13927. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  13928. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13929. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13930. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13931. msm_routing_put_voice_mixer),
  13932. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13934. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13935. msm_routing_put_voice_stub_mixer),
  13936. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13937. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13938. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13939. msm_routing_put_voice_stub_mixer),
  13940. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13941. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13942. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13943. msm_routing_put_voice_mixer),
  13944. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13945. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13946. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13947. msm_routing_put_voice_mixer),
  13948. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13950. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13951. msm_routing_put_voice_mixer),
  13952. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13954. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13955. msm_routing_put_voice_mixer),
  13956. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13958. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13959. msm_routing_put_voice_mixer),
  13960. };
  13961. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  13962. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13964. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13965. msm_routing_put_voice_mixer),
  13966. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13969. msm_routing_put_voice_stub_mixer),
  13970. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13972. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13973. msm_routing_put_voice_stub_mixer),
  13974. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13976. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13977. msm_routing_put_voice_mixer),
  13978. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13980. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13981. msm_routing_put_voice_mixer),
  13982. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13985. msm_routing_put_voice_mixer),
  13986. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13988. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13989. msm_routing_put_voice_mixer),
  13990. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13992. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13993. msm_routing_put_voice_mixer),
  13994. };
  13995. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  13996. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13997. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13998. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13999. msm_routing_put_voice_mixer),
  14000. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14001. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14002. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14003. msm_routing_put_voice_stub_mixer),
  14004. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14005. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14006. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14007. msm_routing_put_voice_stub_mixer),
  14008. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14010. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14011. msm_routing_put_voice_mixer),
  14012. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14014. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14015. msm_routing_put_voice_mixer),
  14016. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14017. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14018. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14019. msm_routing_put_voice_mixer),
  14020. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14021. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14022. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14023. msm_routing_put_voice_mixer),
  14024. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14026. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14027. msm_routing_put_voice_mixer),
  14028. };
  14029. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  14030. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14032. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14033. msm_routing_put_voice_mixer),
  14034. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14036. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14037. msm_routing_put_voice_stub_mixer),
  14038. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14040. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14041. msm_routing_put_voice_stub_mixer),
  14042. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14044. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14045. msm_routing_put_voice_mixer),
  14046. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14048. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14049. msm_routing_put_voice_mixer),
  14050. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14053. msm_routing_put_voice_mixer),
  14054. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14057. msm_routing_put_voice_mixer),
  14058. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14060. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14061. msm_routing_put_voice_mixer),
  14062. };
  14063. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  14064. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_EXTPROC_RX,
  14066. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14067. msm_routing_put_voice_mixer),
  14068. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_EXTPROC_RX,
  14070. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14071. msm_routing_put_voice_mixer),
  14072. };
  14073. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  14074. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14077. msm_routing_put_voice_mixer),
  14078. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14080. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14081. msm_routing_put_voice_mixer),
  14082. };
  14083. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  14084. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14086. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14087. msm_routing_put_voice_mixer),
  14088. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14090. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14091. msm_routing_put_voice_mixer),
  14092. };
  14093. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  14094. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_PRI_I2S_TX,
  14096. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14097. msm_routing_put_voice_mixer),
  14098. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_MI2S_TX,
  14100. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14101. msm_routing_put_voice_mixer),
  14102. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14104. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14105. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14107. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14108. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14110. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14111. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14113. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14114. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14116. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14117. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14119. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14120. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14121. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14122. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14123. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14125. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14126. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14128. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14129. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14131. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14132. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14133. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14134. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14135. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14137. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14138. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14140. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14141. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14143. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14144. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  14145. MSM_BACKEND_DAI_USB_TX,
  14146. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14147. msm_routing_put_voice_mixer),
  14148. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  14149. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14150. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14151. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14153. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14154. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14156. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14159. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14160. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14162. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14165. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14168. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14171. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  14174. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  14177. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14178. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14180. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14181. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14183. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14184. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14186. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14187. };
  14188. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  14189. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_PRI_I2S_TX,
  14191. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14192. msm_routing_put_voice_mixer),
  14193. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_MI2S_TX,
  14195. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14196. msm_routing_put_voice_mixer),
  14197. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14199. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14200. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14202. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14203. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14205. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14206. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14208. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14209. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14211. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14212. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14214. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14215. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14217. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14218. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14220. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14221. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14223. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14224. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14226. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14227. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14229. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14230. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14232. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14233. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14235. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14236. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14238. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14239. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14241. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14242. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14244. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14247. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14248. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14250. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14251. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14253. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14256. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14259. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14262. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  14265. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  14268. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14269. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14271. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14272. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14274. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14275. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14277. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14278. };
  14279. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  14280. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_PRI_I2S_TX,
  14282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14283. msm_routing_put_voice_mixer),
  14284. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_MI2S_TX,
  14286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14287. msm_routing_put_voice_mixer),
  14288. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14291. msm_routing_put_voice_mixer),
  14292. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14295. msm_routing_put_voice_mixer),
  14296. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_AFE_PCM_TX,
  14298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14299. msm_routing_put_voice_mixer),
  14300. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_AUXPCM_TX,
  14302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14303. msm_routing_put_voice_mixer),
  14304. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14307. msm_routing_put_voice_mixer),
  14308. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14310. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14311. msm_routing_put_voice_mixer),
  14312. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14315. msm_routing_put_voice_mixer),
  14316. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14318. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14319. msm_routing_put_voice_mixer),
  14320. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14322. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14323. msm_routing_put_voice_mixer),
  14324. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14326. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14327. msm_routing_put_voice_mixer),
  14328. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14331. msm_routing_put_voice_mixer),
  14332. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14334. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14335. msm_routing_put_voice_mixer),
  14336. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14338. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14339. msm_routing_put_voice_mixer),
  14340. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14342. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14343. msm_routing_put_voice_mixer),
  14344. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_USB_TX,
  14346. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14347. msm_routing_put_voice_mixer),
  14348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14350. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14351. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14353. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14354. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14356. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14359. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14362. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14363. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14365. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14366. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  14368. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  14371. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  14374. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14375. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14376. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14377. msm_routing_put_voice_mixer),
  14378. };
  14379. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  14380. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_EXTPROC_TX,
  14382. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14383. msm_routing_put_voice_stub_mixer),
  14384. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14386. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14387. msm_routing_put_voice_stub_mixer),
  14388. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14390. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14391. msm_routing_put_voice_stub_mixer),
  14392. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14394. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14395. msm_routing_put_voice_stub_mixer),
  14396. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_MI2S_TX,
  14398. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14399. msm_routing_put_voice_stub_mixer),
  14400. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14402. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14403. msm_routing_put_voice_stub_mixer),
  14404. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14406. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14407. msm_routing_put_voice_stub_mixer),
  14408. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14410. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14411. msm_routing_put_voice_stub_mixer),
  14412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14414. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14415. msm_routing_put_voice_stub_mixer),
  14416. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_AUXPCM_TX,
  14418. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14419. msm_routing_put_voice_stub_mixer),
  14420. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14422. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14423. msm_routing_put_voice_stub_mixer),
  14424. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14426. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14427. msm_routing_put_voice_stub_mixer),
  14428. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14430. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14431. msm_routing_put_voice_stub_mixer),
  14432. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14434. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14435. msm_routing_put_voice_stub_mixer),
  14436. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14438. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14439. msm_routing_put_voice_stub_mixer),
  14440. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14442. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14443. msm_routing_put_voice_stub_mixer),
  14444. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14446. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14447. msm_routing_put_voice_stub_mixer),
  14448. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_AFE_PCM_TX,
  14450. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14451. msm_routing_put_voice_stub_mixer),
  14452. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14454. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14455. msm_routing_put_voice_stub_mixer),
  14456. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14458. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14459. msm_routing_put_voice_stub_mixer),
  14460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14462. 1, 0, msm_routing_get_voice_stub_mixer,
  14463. msm_routing_put_voice_stub_mixer),
  14464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14466. 1, 0, msm_routing_get_voice_stub_mixer,
  14467. msm_routing_put_voice_stub_mixer),
  14468. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14469. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14470. 1, 0, msm_routing_get_voice_stub_mixer,
  14471. msm_routing_put_voice_stub_mixer),
  14472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14474. 1, 0, msm_routing_get_voice_stub_mixer,
  14475. msm_routing_put_voice_stub_mixer),
  14476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14478. 1, 0, msm_routing_get_voice_stub_mixer,
  14479. msm_routing_put_voice_stub_mixer),
  14480. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14482. 1, 0, msm_routing_get_voice_stub_mixer,
  14483. msm_routing_put_voice_stub_mixer),
  14484. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  14486. 1, 0, msm_routing_get_voice_stub_mixer,
  14487. msm_routing_put_voice_stub_mixer),
  14488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  14490. 1, 0, msm_routing_get_voice_stub_mixer,
  14491. msm_routing_put_voice_stub_mixer),
  14492. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  14494. 1, 0, msm_routing_get_voice_stub_mixer,
  14495. msm_routing_put_voice_stub_mixer),
  14496. };
  14497. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  14498. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_EXTPROC_TX,
  14500. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14501. msm_routing_put_voice_stub_mixer),
  14502. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14505. msm_routing_put_voice_stub_mixer),
  14506. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14508. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14509. msm_routing_put_voice_stub_mixer),
  14510. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_AUXPCM_TX,
  14512. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14513. msm_routing_put_voice_stub_mixer),
  14514. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14516. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14517. msm_routing_put_voice_stub_mixer),
  14518. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14520. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14521. msm_routing_put_voice_stub_mixer),
  14522. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14524. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14525. msm_routing_put_voice_stub_mixer),
  14526. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14528. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14529. msm_routing_put_voice_stub_mixer),
  14530. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14532. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14533. msm_routing_put_voice_stub_mixer),
  14534. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14536. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14537. msm_routing_put_voice_stub_mixer),
  14538. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14540. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14541. msm_routing_put_voice_stub_mixer),
  14542. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_AFE_PCM_TX,
  14544. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14545. msm_routing_put_voice_stub_mixer),
  14546. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14548. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14549. msm_routing_put_voice_stub_mixer),
  14550. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14552. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14553. msm_routing_put_voice_stub_mixer),
  14554. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14556. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14557. msm_routing_put_voice_stub_mixer),
  14558. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14560. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14561. msm_routing_put_voice_stub_mixer),
  14562. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14564. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14565. msm_routing_put_voice_stub_mixer),
  14566. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14568. 1, 0, msm_routing_get_voice_stub_mixer,
  14569. msm_routing_put_voice_stub_mixer),
  14570. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14572. 1, 0, msm_routing_get_voice_stub_mixer,
  14573. msm_routing_put_voice_stub_mixer),
  14574. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14576. 1, 0, msm_routing_get_voice_stub_mixer,
  14577. msm_routing_put_voice_stub_mixer),
  14578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14580. 1, 0, msm_routing_get_voice_stub_mixer,
  14581. msm_routing_put_voice_stub_mixer),
  14582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14584. 1, 0, msm_routing_get_voice_stub_mixer,
  14585. msm_routing_put_voice_stub_mixer),
  14586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14588. 1, 0, msm_routing_get_voice_stub_mixer,
  14589. msm_routing_put_voice_stub_mixer),
  14590. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  14592. 1, 0, msm_routing_get_voice_stub_mixer,
  14593. msm_routing_put_voice_stub_mixer),
  14594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  14596. 1, 0, msm_routing_get_voice_stub_mixer,
  14597. msm_routing_put_voice_stub_mixer),
  14598. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  14600. 1, 0, msm_routing_get_voice_stub_mixer,
  14601. msm_routing_put_voice_stub_mixer),
  14602. };
  14603. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  14604. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_EXTPROC_TX,
  14606. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14607. msm_routing_put_voice_stub_mixer),
  14608. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14610. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14611. msm_routing_put_voice_stub_mixer),
  14612. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14615. msm_routing_put_voice_stub_mixer),
  14616. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_AUXPCM_TX,
  14618. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14619. msm_routing_put_voice_stub_mixer),
  14620. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14622. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14623. msm_routing_put_voice_stub_mixer),
  14624. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14625. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14626. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14627. msm_routing_put_voice_stub_mixer),
  14628. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14630. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14631. msm_routing_put_voice_stub_mixer),
  14632. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14634. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14635. msm_routing_put_voice_stub_mixer),
  14636. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14638. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14639. msm_routing_put_voice_stub_mixer),
  14640. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14642. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14643. msm_routing_put_voice_stub_mixer),
  14644. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14646. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14647. msm_routing_put_voice_stub_mixer),
  14648. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_AFE_PCM_TX,
  14650. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14651. msm_routing_put_voice_stub_mixer),
  14652. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14654. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14655. msm_routing_put_voice_stub_mixer),
  14656. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14658. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14659. msm_routing_put_voice_stub_mixer),
  14660. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14662. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14663. msm_routing_put_voice_stub_mixer),
  14664. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14666. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14667. msm_routing_put_voice_stub_mixer),
  14668. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14670. 1, 0, msm_routing_get_voice_stub_mixer,
  14671. msm_routing_put_voice_stub_mixer),
  14672. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14674. 1, 0, msm_routing_get_voice_stub_mixer,
  14675. msm_routing_put_voice_stub_mixer),
  14676. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14678. 1, 0, msm_routing_get_voice_stub_mixer,
  14679. msm_routing_put_voice_stub_mixer),
  14680. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14682. 1, 0, msm_routing_get_voice_stub_mixer,
  14683. msm_routing_put_voice_stub_mixer),
  14684. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14686. 1, 0, msm_routing_get_voice_stub_mixer,
  14687. msm_routing_put_voice_stub_mixer),
  14688. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14690. 1, 0, msm_routing_get_voice_stub_mixer,
  14691. msm_routing_put_voice_stub_mixer),
  14692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  14694. 1, 0, msm_routing_get_voice_stub_mixer,
  14695. msm_routing_put_voice_stub_mixer),
  14696. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  14698. 1, 0, msm_routing_get_voice_stub_mixer,
  14699. msm_routing_put_voice_stub_mixer),
  14700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  14702. 1, 0, msm_routing_get_voice_stub_mixer,
  14703. msm_routing_put_voice_stub_mixer),
  14704. };
  14705. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  14706. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_PRI_I2S_TX,
  14708. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14709. msm_routing_put_voice_mixer),
  14710. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14713. msm_routing_put_voice_mixer),
  14714. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14716. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  14717. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14718. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_AFE_PCM_TX,
  14720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14721. msm_routing_put_voice_mixer),
  14722. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_AUXPCM_TX,
  14724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14725. msm_routing_put_voice_mixer),
  14726. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14729. msm_routing_put_voice_mixer),
  14730. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14732. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14733. msm_routing_put_voice_mixer),
  14734. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14736. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14737. msm_routing_put_voice_mixer),
  14738. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14740. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14741. msm_routing_put_voice_mixer),
  14742. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14744. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14745. msm_routing_put_voice_mixer),
  14746. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_MI2S_TX,
  14748. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14749. msm_routing_put_voice_mixer),
  14750. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14752. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14753. msm_routing_put_voice_mixer),
  14754. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14755. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14756. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14757. msm_routing_put_voice_mixer),
  14758. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14759. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14760. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14761. msm_routing_put_voice_mixer),
  14762. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  14763. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14764. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14765. msm_routing_put_voice_mixer),
  14766. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14768. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14769. msm_routing_put_voice_mixer),
  14770. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_USB_TX,
  14772. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14773. msm_routing_put_voice_mixer),
  14774. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14775. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14776. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14777. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14779. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14780. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14782. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14785. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14788. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14791. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  14794. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14795. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  14797. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14798. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  14799. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  14800. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14801. };
  14802. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  14803. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14805. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14806. msm_routing_put_port_mixer),
  14807. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14809. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14810. msm_routing_put_port_mixer),
  14811. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14813. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14817. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14818. msm_routing_put_port_mixer),
  14819. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14821. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14822. msm_routing_put_port_mixer),
  14823. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14825. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14829. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14830. msm_routing_put_port_mixer),
  14831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14834. msm_routing_put_port_mixer),
  14835. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14837. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14838. msm_routing_put_port_mixer),
  14839. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14841. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14842. msm_routing_put_port_mixer),
  14843. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14845. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14849. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14850. msm_routing_put_port_mixer),
  14851. };
  14852. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  14853. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14855. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14859. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14860. msm_routing_put_port_mixer),
  14861. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14864. msm_routing_put_port_mixer),
  14865. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14867. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14868. msm_routing_put_port_mixer),
  14869. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14871. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14872. msm_routing_put_port_mixer),
  14873. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14875. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14879. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14880. msm_routing_put_port_mixer),
  14881. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14883. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14884. msm_routing_put_port_mixer),
  14885. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14887. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14888. msm_routing_put_port_mixer),
  14889. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14891. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14895. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14899. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14900. msm_routing_put_port_mixer),
  14901. };
  14902. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  14903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14913. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14914. msm_routing_put_port_mixer),
  14915. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14917. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14918. msm_routing_put_port_mixer),
  14919. };
  14920. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  14921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14924. msm_routing_put_port_mixer),
  14925. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14927. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14931. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14932. msm_routing_put_port_mixer),
  14933. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14935. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14936. msm_routing_put_port_mixer),
  14937. };
  14938. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  14939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14941. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14942. msm_routing_put_port_mixer),
  14943. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14945. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14949. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14953. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14957. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14961. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14962. msm_routing_put_port_mixer),
  14963. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14965. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14966. msm_routing_put_port_mixer),
  14967. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14969. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14970. msm_routing_put_port_mixer),
  14971. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14973. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14977. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14981. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14982. msm_routing_put_port_mixer),
  14983. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14985. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14986. msm_routing_put_port_mixer),
  14987. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14989. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14990. msm_routing_put_port_mixer),
  14991. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14993. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14994. msm_routing_put_port_mixer),
  14995. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14997. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15001. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15002. msm_routing_put_port_mixer),
  15003. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15005. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15006. msm_routing_put_port_mixer),
  15007. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15009. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15010. msm_routing_put_port_mixer),
  15011. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15013. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15014. msm_routing_put_port_mixer),
  15015. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15017. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15021. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15022. msm_routing_put_port_mixer),
  15023. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15025. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15026. msm_routing_put_port_mixer),
  15027. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15029. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15030. msm_routing_put_port_mixer),
  15031. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15033. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15034. msm_routing_put_port_mixer),
  15035. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15037. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15038. msm_routing_put_port_mixer),
  15039. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15041. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15042. msm_routing_put_port_mixer),
  15043. };
  15044. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  15045. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_AUXPCM_RX,
  15047. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15048. msm_routing_put_port_mixer),
  15049. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_AUXPCM_RX,
  15051. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15052. msm_routing_put_port_mixer),
  15053. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_AUXPCM_RX,
  15055. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15056. msm_routing_put_port_mixer),
  15057. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_AUXPCM_RX,
  15059. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_AUXPCM_RX,
  15063. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15064. msm_routing_put_port_mixer),
  15065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_AUXPCM_RX,
  15067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15068. msm_routing_put_port_mixer),
  15069. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_AUXPCM_RX,
  15071. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15072. msm_routing_put_port_mixer),
  15073. };
  15074. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  15075. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15077. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15078. msm_routing_put_port_mixer),
  15079. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15081. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15082. msm_routing_put_port_mixer),
  15083. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15085. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15086. msm_routing_put_port_mixer),
  15087. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15089. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. };
  15092. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  15093. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15095. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15096. msm_routing_put_port_mixer),
  15097. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15099. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15103. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15104. msm_routing_put_port_mixer),
  15105. };
  15106. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  15107. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15109. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15113. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15114. msm_routing_put_port_mixer),
  15115. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15117. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15118. msm_routing_put_port_mixer),
  15119. };
  15120. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  15121. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15123. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15124. msm_routing_put_port_mixer),
  15125. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15127. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15128. msm_routing_put_port_mixer),
  15129. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15131. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15132. msm_routing_put_port_mixer),
  15133. };
  15134. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  15135. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15137. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15138. msm_routing_put_port_mixer),
  15139. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15141. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15145. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15146. msm_routing_put_port_mixer),
  15147. };
  15148. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  15149. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15151. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15152. msm_routing_put_port_mixer),
  15153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15155. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  15156. msm_routing_put_port_mixer),
  15157. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15159. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15160. msm_routing_put_port_mixer),
  15161. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15162. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15163. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15164. msm_routing_put_port_mixer),
  15165. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15167. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15171. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. };
  15174. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  15175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15177. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  15178. msm_routing_put_port_mixer),
  15179. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15181. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15185. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  15186. msm_routing_put_port_mixer),
  15187. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15189. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  15190. msm_routing_put_port_mixer),
  15191. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15193. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  15194. msm_routing_put_port_mixer),
  15195. };
  15196. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  15197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15200. msm_routing_put_port_mixer),
  15201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15203. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15207. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15208. msm_routing_put_port_mixer),
  15209. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15211. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15212. msm_routing_put_port_mixer),
  15213. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15215. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15216. msm_routing_put_port_mixer),
  15217. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15219. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15220. msm_routing_put_port_mixer),
  15221. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15223. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15224. msm_routing_put_port_mixer),
  15225. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15227. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15231. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15232. msm_routing_put_port_mixer),
  15233. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15235. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15236. msm_routing_put_port_mixer),
  15237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15240. msm_routing_put_port_mixer),
  15241. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15243. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15247. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. };
  15250. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  15251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15253. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15254. msm_routing_put_port_mixer),
  15255. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15257. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15258. msm_routing_put_port_mixer),
  15259. };
  15260. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  15261. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_AFE_PCM_RX,
  15263. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_AFE_PCM_RX,
  15267. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15268. msm_routing_put_port_mixer),
  15269. };
  15270. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  15271. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_HDMI_RX,
  15273. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. };
  15276. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  15277. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15279. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. };
  15282. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  15283. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15285. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. };
  15288. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  15289. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_SEC_I2S_RX,
  15291. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15292. msm_routing_put_port_mixer),
  15293. };
  15294. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  15295. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_MI2S_RX,
  15297. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15298. msm_routing_put_port_mixer),
  15299. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_MI2S_RX,
  15301. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15302. msm_routing_put_port_mixer),
  15303. };
  15304. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  15305. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15307. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15308. msm_routing_put_port_mixer),
  15309. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15311. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15312. msm_routing_put_port_mixer),
  15313. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15315. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15316. msm_routing_put_port_mixer),
  15317. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15319. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15320. msm_routing_put_port_mixer),
  15321. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15323. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15327. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15328. msm_routing_put_port_mixer),
  15329. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15331. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15332. msm_routing_put_port_mixer),
  15333. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15335. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15339. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15340. msm_routing_put_port_mixer),
  15341. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15343. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15344. msm_routing_put_port_mixer),
  15345. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15347. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15348. msm_routing_put_port_mixer),
  15349. };
  15350. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  15351. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_USB_RX,
  15353. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  15354. msm_routing_put_port_mixer),
  15355. };
  15356. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  15357. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15359. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15360. msm_routing_put_port_mixer),
  15361. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15362. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15363. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15364. msm_routing_put_port_mixer),
  15365. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15366. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15367. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15368. msm_routing_put_port_mixer),
  15369. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15371. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15372. msm_routing_put_port_mixer),
  15373. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15375. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15379. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15380. msm_routing_put_port_mixer),
  15381. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15384. msm_routing_put_port_mixer),
  15385. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15387. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15388. msm_routing_put_port_mixer),
  15389. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15391. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15392. msm_routing_put_port_mixer),
  15393. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15395. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. };
  15398. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  15399. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15401. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15402. msm_routing_put_port_mixer),
  15403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15409. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15410. msm_routing_put_port_mixer),
  15411. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15414. msm_routing_put_port_mixer),
  15415. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15417. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15418. msm_routing_put_port_mixer),
  15419. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15421. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15422. msm_routing_put_port_mixer),
  15423. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15425. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15429. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15430. msm_routing_put_port_mixer),
  15431. };
  15432. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  15433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15435. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15436. msm_routing_put_port_mixer),
  15437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15439. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15440. msm_routing_put_port_mixer),
  15441. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15443. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15444. msm_routing_put_port_mixer),
  15445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15447. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15451. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15452. msm_routing_put_port_mixer),
  15453. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15455. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15456. msm_routing_put_port_mixer),
  15457. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15459. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15460. msm_routing_put_port_mixer),
  15461. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15463. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15464. msm_routing_put_port_mixer),
  15465. };
  15466. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  15467. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15469. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15470. msm_routing_get_port_mixer,
  15471. msm_routing_put_port_mixer),
  15472. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15475. msm_routing_get_port_mixer,
  15476. msm_routing_put_port_mixer),
  15477. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15479. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15480. msm_routing_get_port_mixer,
  15481. msm_routing_put_port_mixer),
  15482. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15484. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15485. msm_routing_get_port_mixer,
  15486. msm_routing_put_port_mixer),
  15487. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15489. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15490. msm_routing_get_port_mixer,
  15491. msm_routing_put_port_mixer),
  15492. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15494. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15495. msm_routing_get_port_mixer,
  15496. msm_routing_put_port_mixer),
  15497. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15499. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15500. msm_routing_get_port_mixer,
  15501. msm_routing_put_port_mixer),
  15502. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15504. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15505. msm_routing_get_port_mixer,
  15506. msm_routing_put_port_mixer),
  15507. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15509. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15510. msm_routing_get_port_mixer,
  15511. msm_routing_put_port_mixer),
  15512. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15514. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15515. msm_routing_get_port_mixer,
  15516. msm_routing_put_port_mixer),
  15517. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15519. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15520. msm_routing_get_port_mixer,
  15521. msm_routing_put_port_mixer),
  15522. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15524. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15525. msm_routing_get_port_mixer,
  15526. msm_routing_put_port_mixer),
  15527. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15529. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15530. msm_routing_get_port_mixer,
  15531. msm_routing_put_port_mixer),
  15532. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15534. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15535. msm_routing_get_port_mixer,
  15536. msm_routing_put_port_mixer),
  15537. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15539. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15540. msm_routing_get_port_mixer,
  15541. msm_routing_put_port_mixer),
  15542. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15544. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15545. msm_routing_get_port_mixer,
  15546. msm_routing_put_port_mixer),
  15547. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15549. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15550. msm_routing_get_port_mixer,
  15551. msm_routing_put_port_mixer),
  15552. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15554. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15555. msm_routing_get_port_mixer,
  15556. msm_routing_put_port_mixer),
  15557. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15559. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15560. msm_routing_get_port_mixer,
  15561. msm_routing_put_port_mixer),
  15562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15564. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15565. msm_routing_get_port_mixer,
  15566. msm_routing_put_port_mixer),
  15567. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15569. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15570. msm_routing_get_port_mixer,
  15571. msm_routing_put_port_mixer),
  15572. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15574. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15575. msm_routing_get_port_mixer,
  15576. msm_routing_put_port_mixer),
  15577. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15579. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15580. msm_routing_get_port_mixer,
  15581. msm_routing_put_port_mixer),
  15582. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15584. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15585. msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. };
  15588. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  15589. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15591. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15592. msm_routing_get_port_mixer,
  15593. msm_routing_put_port_mixer),
  15594. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15596. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15597. msm_routing_get_port_mixer,
  15598. msm_routing_put_port_mixer),
  15599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15601. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15602. msm_routing_get_port_mixer,
  15603. msm_routing_put_port_mixer),
  15604. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15606. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15607. msm_routing_get_port_mixer,
  15608. msm_routing_put_port_mixer),
  15609. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15610. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15611. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15612. msm_routing_get_port_mixer,
  15613. msm_routing_put_port_mixer),
  15614. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15616. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15617. msm_routing_get_port_mixer,
  15618. msm_routing_put_port_mixer),
  15619. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15620. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15621. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15622. msm_routing_get_port_mixer,
  15623. msm_routing_put_port_mixer),
  15624. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15626. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15627. msm_routing_get_port_mixer,
  15628. msm_routing_put_port_mixer),
  15629. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15631. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15632. msm_routing_get_port_mixer,
  15633. msm_routing_put_port_mixer),
  15634. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15636. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15637. msm_routing_get_port_mixer,
  15638. msm_routing_put_port_mixer),
  15639. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15641. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15642. msm_routing_get_port_mixer,
  15643. msm_routing_put_port_mixer),
  15644. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15646. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15647. msm_routing_get_port_mixer,
  15648. msm_routing_put_port_mixer),
  15649. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15651. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15652. msm_routing_get_port_mixer,
  15653. msm_routing_put_port_mixer),
  15654. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15656. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15657. msm_routing_get_port_mixer,
  15658. msm_routing_put_port_mixer),
  15659. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15661. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15662. msm_routing_get_port_mixer,
  15663. msm_routing_put_port_mixer),
  15664. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15666. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15667. msm_routing_get_port_mixer,
  15668. msm_routing_put_port_mixer),
  15669. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15670. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15671. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15672. msm_routing_get_port_mixer,
  15673. msm_routing_put_port_mixer),
  15674. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15676. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15677. msm_routing_get_port_mixer,
  15678. msm_routing_put_port_mixer),
  15679. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15681. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15682. msm_routing_get_port_mixer,
  15683. msm_routing_put_port_mixer),
  15684. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15686. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15687. msm_routing_get_port_mixer,
  15688. msm_routing_put_port_mixer),
  15689. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15691. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15692. msm_routing_get_port_mixer,
  15693. msm_routing_put_port_mixer),
  15694. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15696. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15697. msm_routing_get_port_mixer,
  15698. msm_routing_put_port_mixer),
  15699. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15701. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15702. msm_routing_get_port_mixer,
  15703. msm_routing_put_port_mixer),
  15704. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15706. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15707. msm_routing_get_port_mixer,
  15708. msm_routing_put_port_mixer),
  15709. };
  15710. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  15711. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15713. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15714. msm_routing_get_port_mixer,
  15715. msm_routing_put_port_mixer),
  15716. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15718. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15719. msm_routing_get_port_mixer,
  15720. msm_routing_put_port_mixer),
  15721. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15723. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15724. msm_routing_get_port_mixer,
  15725. msm_routing_put_port_mixer),
  15726. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15728. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15729. msm_routing_get_port_mixer,
  15730. msm_routing_put_port_mixer),
  15731. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15733. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15734. msm_routing_get_port_mixer,
  15735. msm_routing_put_port_mixer),
  15736. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15738. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15739. msm_routing_get_port_mixer,
  15740. msm_routing_put_port_mixer),
  15741. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15743. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15744. msm_routing_get_port_mixer,
  15745. msm_routing_put_port_mixer),
  15746. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15748. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15749. msm_routing_get_port_mixer,
  15750. msm_routing_put_port_mixer),
  15751. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15753. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15754. msm_routing_get_port_mixer,
  15755. msm_routing_put_port_mixer),
  15756. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15758. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15759. msm_routing_get_port_mixer,
  15760. msm_routing_put_port_mixer),
  15761. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15763. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15764. msm_routing_get_port_mixer,
  15765. msm_routing_put_port_mixer),
  15766. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15768. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15769. msm_routing_get_port_mixer,
  15770. msm_routing_put_port_mixer),
  15771. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15773. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15774. msm_routing_get_port_mixer,
  15775. msm_routing_put_port_mixer),
  15776. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15778. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15779. msm_routing_get_port_mixer,
  15780. msm_routing_put_port_mixer),
  15781. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15783. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15784. msm_routing_get_port_mixer,
  15785. msm_routing_put_port_mixer),
  15786. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15788. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15789. msm_routing_get_port_mixer,
  15790. msm_routing_put_port_mixer),
  15791. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15793. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15794. msm_routing_get_port_mixer,
  15795. msm_routing_put_port_mixer),
  15796. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15798. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15799. msm_routing_get_port_mixer,
  15800. msm_routing_put_port_mixer),
  15801. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15803. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15804. msm_routing_get_port_mixer,
  15805. msm_routing_put_port_mixer),
  15806. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15808. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15809. msm_routing_get_port_mixer,
  15810. msm_routing_put_port_mixer),
  15811. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15813. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15814. msm_routing_get_port_mixer,
  15815. msm_routing_put_port_mixer),
  15816. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15818. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15819. msm_routing_get_port_mixer,
  15820. msm_routing_put_port_mixer),
  15821. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15823. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15824. msm_routing_get_port_mixer,
  15825. msm_routing_put_port_mixer),
  15826. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15828. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15829. msm_routing_get_port_mixer,
  15830. msm_routing_put_port_mixer),
  15831. };
  15832. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  15833. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15835. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15836. msm_routing_get_port_mixer,
  15837. msm_routing_put_port_mixer),
  15838. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15840. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15841. msm_routing_get_port_mixer,
  15842. msm_routing_put_port_mixer),
  15843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15845. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15846. msm_routing_get_port_mixer,
  15847. msm_routing_put_port_mixer),
  15848. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15850. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15851. msm_routing_get_port_mixer,
  15852. msm_routing_put_port_mixer),
  15853. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15855. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15856. msm_routing_get_port_mixer,
  15857. msm_routing_put_port_mixer),
  15858. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15860. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15861. msm_routing_get_port_mixer,
  15862. msm_routing_put_port_mixer),
  15863. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15865. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15866. msm_routing_get_port_mixer,
  15867. msm_routing_put_port_mixer),
  15868. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15870. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15871. msm_routing_get_port_mixer,
  15872. msm_routing_put_port_mixer),
  15873. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15875. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15876. msm_routing_get_port_mixer,
  15877. msm_routing_put_port_mixer),
  15878. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15880. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15881. msm_routing_get_port_mixer,
  15882. msm_routing_put_port_mixer),
  15883. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15885. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15886. msm_routing_get_port_mixer,
  15887. msm_routing_put_port_mixer),
  15888. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15890. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15891. msm_routing_get_port_mixer,
  15892. msm_routing_put_port_mixer),
  15893. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15895. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15896. msm_routing_get_port_mixer,
  15897. msm_routing_put_port_mixer),
  15898. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15900. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15901. msm_routing_get_port_mixer,
  15902. msm_routing_put_port_mixer),
  15903. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15905. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15906. msm_routing_get_port_mixer,
  15907. msm_routing_put_port_mixer),
  15908. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15910. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15911. msm_routing_get_port_mixer,
  15912. msm_routing_put_port_mixer),
  15913. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15915. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15916. msm_routing_get_port_mixer,
  15917. msm_routing_put_port_mixer),
  15918. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15920. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15921. msm_routing_get_port_mixer,
  15922. msm_routing_put_port_mixer),
  15923. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15925. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15926. msm_routing_get_port_mixer,
  15927. msm_routing_put_port_mixer),
  15928. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15930. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15931. msm_routing_get_port_mixer,
  15932. msm_routing_put_port_mixer),
  15933. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15935. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15936. msm_routing_get_port_mixer,
  15937. msm_routing_put_port_mixer),
  15938. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15940. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15941. msm_routing_get_port_mixer,
  15942. msm_routing_put_port_mixer),
  15943. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15945. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15946. msm_routing_get_port_mixer,
  15947. msm_routing_put_port_mixer),
  15948. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15950. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15951. msm_routing_get_port_mixer,
  15952. msm_routing_put_port_mixer),
  15953. };
  15954. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  15955. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15957. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15958. msm_routing_get_port_mixer,
  15959. msm_routing_put_port_mixer),
  15960. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15962. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15963. msm_routing_get_port_mixer,
  15964. msm_routing_put_port_mixer),
  15965. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15967. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15968. msm_routing_get_port_mixer,
  15969. msm_routing_put_port_mixer),
  15970. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15972. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15973. msm_routing_get_port_mixer,
  15974. msm_routing_put_port_mixer),
  15975. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15977. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15978. msm_routing_get_port_mixer,
  15979. msm_routing_put_port_mixer),
  15980. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15982. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15983. msm_routing_get_port_mixer,
  15984. msm_routing_put_port_mixer),
  15985. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15987. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15988. msm_routing_get_port_mixer,
  15989. msm_routing_put_port_mixer),
  15990. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15992. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15993. msm_routing_get_port_mixer,
  15994. msm_routing_put_port_mixer),
  15995. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15997. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15998. msm_routing_get_port_mixer,
  15999. msm_routing_put_port_mixer),
  16000. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16002. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16003. msm_routing_get_port_mixer,
  16004. msm_routing_put_port_mixer),
  16005. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16007. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16008. msm_routing_get_port_mixer,
  16009. msm_routing_put_port_mixer),
  16010. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16012. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16013. msm_routing_get_port_mixer,
  16014. msm_routing_put_port_mixer),
  16015. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16017. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16018. msm_routing_get_port_mixer,
  16019. msm_routing_put_port_mixer),
  16020. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16022. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16023. msm_routing_get_port_mixer,
  16024. msm_routing_put_port_mixer),
  16025. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16027. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16028. msm_routing_get_port_mixer,
  16029. msm_routing_put_port_mixer),
  16030. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16032. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16033. msm_routing_get_port_mixer,
  16034. msm_routing_put_port_mixer),
  16035. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16037. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16038. msm_routing_get_port_mixer,
  16039. msm_routing_put_port_mixer),
  16040. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16042. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16043. msm_routing_get_port_mixer,
  16044. msm_routing_put_port_mixer),
  16045. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16047. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16048. msm_routing_get_port_mixer,
  16049. msm_routing_put_port_mixer),
  16050. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16052. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16053. msm_routing_get_port_mixer,
  16054. msm_routing_put_port_mixer),
  16055. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16057. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16058. msm_routing_get_port_mixer,
  16059. msm_routing_put_port_mixer),
  16060. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16062. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16063. msm_routing_get_port_mixer,
  16064. msm_routing_put_port_mixer),
  16065. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16067. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16068. msm_routing_get_port_mixer,
  16069. msm_routing_put_port_mixer),
  16070. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16072. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16073. msm_routing_get_port_mixer,
  16074. msm_routing_put_port_mixer),
  16075. };
  16076. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  16077. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16079. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16080. msm_routing_get_port_mixer,
  16081. msm_routing_put_port_mixer),
  16082. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16084. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16085. msm_routing_get_port_mixer,
  16086. msm_routing_put_port_mixer),
  16087. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16089. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16090. msm_routing_get_port_mixer,
  16091. msm_routing_put_port_mixer),
  16092. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16094. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16095. msm_routing_get_port_mixer,
  16096. msm_routing_put_port_mixer),
  16097. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16099. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16100. msm_routing_get_port_mixer,
  16101. msm_routing_put_port_mixer),
  16102. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16104. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16105. msm_routing_get_port_mixer,
  16106. msm_routing_put_port_mixer),
  16107. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16109. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16110. msm_routing_get_port_mixer,
  16111. msm_routing_put_port_mixer),
  16112. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16114. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16115. msm_routing_get_port_mixer,
  16116. msm_routing_put_port_mixer),
  16117. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16119. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16120. msm_routing_get_port_mixer,
  16121. msm_routing_put_port_mixer),
  16122. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16124. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16125. msm_routing_get_port_mixer,
  16126. msm_routing_put_port_mixer),
  16127. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16129. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16130. msm_routing_get_port_mixer,
  16131. msm_routing_put_port_mixer),
  16132. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16134. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16135. msm_routing_get_port_mixer,
  16136. msm_routing_put_port_mixer),
  16137. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16139. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16140. msm_routing_get_port_mixer,
  16141. msm_routing_put_port_mixer),
  16142. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16144. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16145. msm_routing_get_port_mixer,
  16146. msm_routing_put_port_mixer),
  16147. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16149. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16150. msm_routing_get_port_mixer,
  16151. msm_routing_put_port_mixer),
  16152. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16154. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16155. msm_routing_get_port_mixer,
  16156. msm_routing_put_port_mixer),
  16157. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16159. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16160. msm_routing_get_port_mixer,
  16161. msm_routing_put_port_mixer),
  16162. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16164. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16165. msm_routing_get_port_mixer,
  16166. msm_routing_put_port_mixer),
  16167. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16169. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16170. msm_routing_get_port_mixer,
  16171. msm_routing_put_port_mixer),
  16172. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16174. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16175. msm_routing_get_port_mixer,
  16176. msm_routing_put_port_mixer),
  16177. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16179. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16180. msm_routing_get_port_mixer,
  16181. msm_routing_put_port_mixer),
  16182. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16184. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16185. msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16189. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16190. msm_routing_get_port_mixer,
  16191. msm_routing_put_port_mixer),
  16192. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16194. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16195. msm_routing_get_port_mixer,
  16196. msm_routing_put_port_mixer),
  16197. };
  16198. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  16199. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16201. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16202. msm_routing_get_port_mixer,
  16203. msm_routing_put_port_mixer),
  16204. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16206. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16207. 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_SEC_TDM_RX_2,
  16211. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16212. msm_routing_get_port_mixer,
  16213. msm_routing_put_port_mixer),
  16214. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16216. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16217. msm_routing_get_port_mixer,
  16218. msm_routing_put_port_mixer),
  16219. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16221. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16222. msm_routing_get_port_mixer,
  16223. msm_routing_put_port_mixer),
  16224. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16226. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16227. msm_routing_get_port_mixer,
  16228. msm_routing_put_port_mixer),
  16229. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16231. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16232. msm_routing_get_port_mixer,
  16233. msm_routing_put_port_mixer),
  16234. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16236. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16237. msm_routing_get_port_mixer,
  16238. msm_routing_put_port_mixer),
  16239. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16241. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16242. msm_routing_get_port_mixer,
  16243. msm_routing_put_port_mixer),
  16244. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16246. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16247. msm_routing_get_port_mixer,
  16248. msm_routing_put_port_mixer),
  16249. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16251. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16252. msm_routing_get_port_mixer,
  16253. msm_routing_put_port_mixer),
  16254. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16256. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16257. msm_routing_get_port_mixer,
  16258. msm_routing_put_port_mixer),
  16259. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16261. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16262. msm_routing_get_port_mixer,
  16263. msm_routing_put_port_mixer),
  16264. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16266. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16267. msm_routing_get_port_mixer,
  16268. msm_routing_put_port_mixer),
  16269. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16271. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16272. msm_routing_get_port_mixer,
  16273. msm_routing_put_port_mixer),
  16274. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16276. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16277. msm_routing_get_port_mixer,
  16278. msm_routing_put_port_mixer),
  16279. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16281. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16282. msm_routing_get_port_mixer,
  16283. msm_routing_put_port_mixer),
  16284. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16286. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16287. msm_routing_get_port_mixer,
  16288. msm_routing_put_port_mixer),
  16289. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16291. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16292. msm_routing_get_port_mixer,
  16293. msm_routing_put_port_mixer),
  16294. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16296. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16297. msm_routing_get_port_mixer,
  16298. msm_routing_put_port_mixer),
  16299. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16301. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16302. msm_routing_get_port_mixer,
  16303. msm_routing_put_port_mixer),
  16304. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16306. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16307. msm_routing_get_port_mixer,
  16308. msm_routing_put_port_mixer),
  16309. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16311. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16312. msm_routing_get_port_mixer,
  16313. msm_routing_put_port_mixer),
  16314. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16316. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16317. msm_routing_get_port_mixer,
  16318. msm_routing_put_port_mixer),
  16319. };
  16320. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  16321. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16323. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16324. msm_routing_get_port_mixer,
  16325. msm_routing_put_port_mixer),
  16326. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16328. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16329. msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16333. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16334. msm_routing_get_port_mixer,
  16335. msm_routing_put_port_mixer),
  16336. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16338. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16339. msm_routing_get_port_mixer,
  16340. msm_routing_put_port_mixer),
  16341. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16343. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16344. msm_routing_get_port_mixer,
  16345. msm_routing_put_port_mixer),
  16346. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16348. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16349. msm_routing_get_port_mixer,
  16350. msm_routing_put_port_mixer),
  16351. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16353. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16354. msm_routing_get_port_mixer,
  16355. msm_routing_put_port_mixer),
  16356. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16358. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16359. msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16363. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16364. msm_routing_get_port_mixer,
  16365. msm_routing_put_port_mixer),
  16366. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16368. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16369. msm_routing_get_port_mixer,
  16370. msm_routing_put_port_mixer),
  16371. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16373. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16374. msm_routing_get_port_mixer,
  16375. msm_routing_put_port_mixer),
  16376. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16378. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16379. msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16383. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16384. msm_routing_get_port_mixer,
  16385. msm_routing_put_port_mixer),
  16386. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16388. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16389. msm_routing_get_port_mixer,
  16390. msm_routing_put_port_mixer),
  16391. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16393. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16394. msm_routing_get_port_mixer,
  16395. msm_routing_put_port_mixer),
  16396. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16398. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16399. msm_routing_get_port_mixer,
  16400. msm_routing_put_port_mixer),
  16401. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16402. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16403. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16404. msm_routing_get_port_mixer,
  16405. msm_routing_put_port_mixer),
  16406. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16408. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16409. msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16413. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16414. msm_routing_get_port_mixer,
  16415. msm_routing_put_port_mixer),
  16416. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16418. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16419. msm_routing_get_port_mixer,
  16420. msm_routing_put_port_mixer),
  16421. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16422. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16423. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16424. msm_routing_get_port_mixer,
  16425. msm_routing_put_port_mixer),
  16426. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16428. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16429. msm_routing_get_port_mixer,
  16430. msm_routing_put_port_mixer),
  16431. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16433. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16434. msm_routing_get_port_mixer,
  16435. msm_routing_put_port_mixer),
  16436. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16438. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16439. msm_routing_get_port_mixer,
  16440. msm_routing_put_port_mixer),
  16441. };
  16442. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  16443. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  16445. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  16446. msm_routing_get_port_mixer,
  16447. msm_routing_put_port_mixer),
  16448. };
  16449. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  16450. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16452. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16453. msm_routing_get_port_mixer,
  16454. msm_routing_put_port_mixer),
  16455. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16457. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16458. msm_routing_get_port_mixer,
  16459. msm_routing_put_port_mixer),
  16460. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16462. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16463. msm_routing_get_port_mixer,
  16464. msm_routing_put_port_mixer),
  16465. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16467. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16468. msm_routing_get_port_mixer,
  16469. msm_routing_put_port_mixer),
  16470. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16472. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16473. msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16477. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16478. msm_routing_get_port_mixer,
  16479. msm_routing_put_port_mixer),
  16480. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16482. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16483. msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16487. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16488. msm_routing_get_port_mixer,
  16489. msm_routing_put_port_mixer),
  16490. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16492. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16493. msm_routing_get_port_mixer,
  16494. msm_routing_put_port_mixer),
  16495. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16497. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16498. msm_routing_get_port_mixer,
  16499. msm_routing_put_port_mixer),
  16500. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16502. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16503. msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16507. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16508. msm_routing_get_port_mixer,
  16509. msm_routing_put_port_mixer),
  16510. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16512. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16513. msm_routing_get_port_mixer,
  16514. msm_routing_put_port_mixer),
  16515. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16517. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16518. msm_routing_get_port_mixer,
  16519. msm_routing_put_port_mixer),
  16520. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16522. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16523. msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16527. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16528. msm_routing_get_port_mixer,
  16529. msm_routing_put_port_mixer),
  16530. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16532. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16533. msm_routing_get_port_mixer,
  16534. msm_routing_put_port_mixer),
  16535. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16537. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16538. msm_routing_get_port_mixer,
  16539. msm_routing_put_port_mixer),
  16540. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16542. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16543. msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16547. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16548. msm_routing_get_port_mixer,
  16549. msm_routing_put_port_mixer),
  16550. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16552. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16553. msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16557. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16558. msm_routing_get_port_mixer,
  16559. msm_routing_put_port_mixer),
  16560. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16562. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16563. msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16567. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16568. msm_routing_get_port_mixer,
  16569. msm_routing_put_port_mixer),
  16570. };
  16571. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  16572. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16574. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16575. msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16579. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16580. msm_routing_get_port_mixer,
  16581. msm_routing_put_port_mixer),
  16582. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16584. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16585. msm_routing_get_port_mixer,
  16586. msm_routing_put_port_mixer),
  16587. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16589. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16590. msm_routing_get_port_mixer,
  16591. msm_routing_put_port_mixer),
  16592. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16594. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16595. msm_routing_get_port_mixer,
  16596. msm_routing_put_port_mixer),
  16597. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16599. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16600. msm_routing_get_port_mixer,
  16601. msm_routing_put_port_mixer),
  16602. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16604. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16605. msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16609. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16610. msm_routing_get_port_mixer,
  16611. msm_routing_put_port_mixer),
  16612. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16614. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16615. msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16619. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16620. msm_routing_get_port_mixer,
  16621. msm_routing_put_port_mixer),
  16622. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16624. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16625. msm_routing_get_port_mixer,
  16626. msm_routing_put_port_mixer),
  16627. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16629. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16630. msm_routing_get_port_mixer,
  16631. msm_routing_put_port_mixer),
  16632. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16634. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16635. msm_routing_get_port_mixer,
  16636. msm_routing_put_port_mixer),
  16637. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16639. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16640. msm_routing_get_port_mixer,
  16641. msm_routing_put_port_mixer),
  16642. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16644. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16645. msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16649. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16650. msm_routing_get_port_mixer,
  16651. msm_routing_put_port_mixer),
  16652. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16654. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16655. msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16659. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16660. msm_routing_get_port_mixer,
  16661. msm_routing_put_port_mixer),
  16662. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16664. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16665. msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16669. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16670. msm_routing_get_port_mixer,
  16671. msm_routing_put_port_mixer),
  16672. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16674. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16675. msm_routing_get_port_mixer,
  16676. msm_routing_put_port_mixer),
  16677. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16679. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16680. msm_routing_get_port_mixer,
  16681. msm_routing_put_port_mixer),
  16682. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16684. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16685. msm_routing_get_port_mixer,
  16686. msm_routing_put_port_mixer),
  16687. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16689. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16690. msm_routing_get_port_mixer,
  16691. msm_routing_put_port_mixer),
  16692. };
  16693. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  16694. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16696. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16697. msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16701. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16702. msm_routing_get_port_mixer,
  16703. msm_routing_put_port_mixer),
  16704. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16706. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16707. msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16711. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16712. msm_routing_get_port_mixer,
  16713. msm_routing_put_port_mixer),
  16714. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16716. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16717. msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16721. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16722. msm_routing_get_port_mixer,
  16723. msm_routing_put_port_mixer),
  16724. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16726. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16727. msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16731. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16732. msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16736. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16737. msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16741. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16742. msm_routing_get_port_mixer,
  16743. msm_routing_put_port_mixer),
  16744. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16746. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16747. msm_routing_get_port_mixer,
  16748. msm_routing_put_port_mixer),
  16749. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16751. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16752. msm_routing_get_port_mixer,
  16753. msm_routing_put_port_mixer),
  16754. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16756. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16757. msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16761. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16762. msm_routing_get_port_mixer,
  16763. msm_routing_put_port_mixer),
  16764. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16766. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16767. msm_routing_get_port_mixer,
  16768. msm_routing_put_port_mixer),
  16769. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16771. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16772. msm_routing_get_port_mixer,
  16773. msm_routing_put_port_mixer),
  16774. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16775. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16776. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16777. msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16781. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16782. msm_routing_get_port_mixer,
  16783. msm_routing_put_port_mixer),
  16784. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16786. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16787. msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16791. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16792. msm_routing_get_port_mixer,
  16793. msm_routing_put_port_mixer),
  16794. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16795. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16796. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16797. msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16801. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16802. msm_routing_get_port_mixer,
  16803. msm_routing_put_port_mixer),
  16804. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16806. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16807. msm_routing_get_port_mixer,
  16808. msm_routing_put_port_mixer),
  16809. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16811. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16812. msm_routing_get_port_mixer,
  16813. msm_routing_put_port_mixer),
  16814. };
  16815. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  16816. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16818. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16819. msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16824. msm_routing_get_port_mixer,
  16825. msm_routing_put_port_mixer),
  16826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16829. msm_routing_get_port_mixer,
  16830. msm_routing_put_port_mixer),
  16831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16834. msm_routing_get_port_mixer,
  16835. msm_routing_put_port_mixer),
  16836. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16839. msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16843. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16844. msm_routing_get_port_mixer,
  16845. msm_routing_put_port_mixer),
  16846. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16848. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16849. msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16854. msm_routing_get_port_mixer,
  16855. msm_routing_put_port_mixer),
  16856. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16858. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16859. msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16863. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16864. msm_routing_get_port_mixer,
  16865. msm_routing_put_port_mixer),
  16866. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16868. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16869. msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16873. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16874. msm_routing_get_port_mixer,
  16875. msm_routing_put_port_mixer),
  16876. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16877. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16878. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16879. msm_routing_get_port_mixer,
  16880. msm_routing_put_port_mixer),
  16881. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16883. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16884. msm_routing_get_port_mixer,
  16885. msm_routing_put_port_mixer),
  16886. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16888. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16889. msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16893. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16894. msm_routing_get_port_mixer,
  16895. msm_routing_put_port_mixer),
  16896. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16899. msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16903. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16904. msm_routing_get_port_mixer,
  16905. msm_routing_put_port_mixer),
  16906. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16908. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16909. msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16913. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16914. msm_routing_get_port_mixer,
  16915. msm_routing_put_port_mixer),
  16916. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16918. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16919. msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16923. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16924. msm_routing_get_port_mixer,
  16925. msm_routing_put_port_mixer),
  16926. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16928. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16929. msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16933. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16934. msm_routing_get_port_mixer,
  16935. msm_routing_put_port_mixer),
  16936. };
  16937. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  16938. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16940. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16941. msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16945. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16946. msm_routing_get_port_mixer,
  16947. msm_routing_put_port_mixer),
  16948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16949. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16950. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16951. msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16955. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16956. msm_routing_get_port_mixer,
  16957. msm_routing_put_port_mixer),
  16958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16960. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16961. msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16965. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16966. msm_routing_get_port_mixer,
  16967. msm_routing_put_port_mixer),
  16968. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16970. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16971. msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16975. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16976. msm_routing_get_port_mixer,
  16977. msm_routing_put_port_mixer),
  16978. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16980. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16981. msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16985. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16986. msm_routing_get_port_mixer,
  16987. msm_routing_put_port_mixer),
  16988. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16990. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16991. msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16995. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16996. msm_routing_get_port_mixer,
  16997. msm_routing_put_port_mixer),
  16998. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16999. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17000. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17001. msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17005. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17006. msm_routing_get_port_mixer,
  17007. msm_routing_put_port_mixer),
  17008. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17010. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17011. msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17015. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17016. msm_routing_get_port_mixer,
  17017. msm_routing_put_port_mixer),
  17018. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17020. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17021. msm_routing_get_port_mixer,
  17022. msm_routing_put_port_mixer),
  17023. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17025. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17026. msm_routing_get_port_mixer,
  17027. msm_routing_put_port_mixer),
  17028. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17030. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17031. msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17035. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17036. msm_routing_get_port_mixer,
  17037. msm_routing_put_port_mixer),
  17038. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17040. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17041. msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17045. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17046. msm_routing_get_port_mixer,
  17047. msm_routing_put_port_mixer),
  17048. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17050. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17051. msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17055. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17056. msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. };
  17059. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  17060. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17062. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17063. msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17068. msm_routing_get_port_mixer,
  17069. msm_routing_put_port_mixer),
  17070. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17073. msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17077. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17078. msm_routing_get_port_mixer,
  17079. msm_routing_put_port_mixer),
  17080. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17082. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17083. msm_routing_get_port_mixer,
  17084. msm_routing_put_port_mixer),
  17085. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17087. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17088. msm_routing_get_port_mixer,
  17089. msm_routing_put_port_mixer),
  17090. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17093. msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17097. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17098. msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17102. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17103. msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17107. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17108. msm_routing_get_port_mixer,
  17109. msm_routing_put_port_mixer),
  17110. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17112. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17113. msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17117. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17118. msm_routing_get_port_mixer,
  17119. msm_routing_put_port_mixer),
  17120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17121. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17122. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17123. msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17127. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17128. msm_routing_get_port_mixer,
  17129. msm_routing_put_port_mixer),
  17130. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17132. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17133. msm_routing_get_port_mixer,
  17134. msm_routing_put_port_mixer),
  17135. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17137. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17138. msm_routing_get_port_mixer,
  17139. msm_routing_put_port_mixer),
  17140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17142. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17143. msm_routing_get_port_mixer,
  17144. msm_routing_put_port_mixer),
  17145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17147. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17148. msm_routing_get_port_mixer,
  17149. msm_routing_put_port_mixer),
  17150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17152. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17153. msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17157. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17158. msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17162. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17163. msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17167. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17168. msm_routing_get_port_mixer,
  17169. msm_routing_put_port_mixer),
  17170. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17172. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17173. msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17177. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17178. msm_routing_get_port_mixer,
  17179. msm_routing_put_port_mixer),
  17180. };
  17181. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  17182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17185. msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17190. msm_routing_get_port_mixer,
  17191. msm_routing_put_port_mixer),
  17192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17195. msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17200. msm_routing_get_port_mixer,
  17201. msm_routing_put_port_mixer),
  17202. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17203. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17204. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17205. msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17209. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17210. msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17214. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17215. msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17220. msm_routing_get_port_mixer,
  17221. msm_routing_put_port_mixer),
  17222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17225. msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17229. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17230. msm_routing_get_port_mixer,
  17231. msm_routing_put_port_mixer),
  17232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17234. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17235. msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17239. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17240. msm_routing_get_port_mixer,
  17241. msm_routing_put_port_mixer),
  17242. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17245. msm_routing_get_port_mixer,
  17246. msm_routing_put_port_mixer),
  17247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17250. msm_routing_get_port_mixer,
  17251. msm_routing_put_port_mixer),
  17252. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17254. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17255. msm_routing_get_port_mixer,
  17256. msm_routing_put_port_mixer),
  17257. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17259. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17260. msm_routing_get_port_mixer,
  17261. msm_routing_put_port_mixer),
  17262. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17263. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17264. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17265. msm_routing_get_port_mixer,
  17266. msm_routing_put_port_mixer),
  17267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17269. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17270. msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17275. msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17280. msm_routing_get_port_mixer,
  17281. msm_routing_put_port_mixer),
  17282. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17284. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17285. msm_routing_get_port_mixer,
  17286. msm_routing_put_port_mixer),
  17287. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17289. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17290. msm_routing_get_port_mixer,
  17291. msm_routing_put_port_mixer),
  17292. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17294. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17295. msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17299. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17300. msm_routing_get_port_mixer,
  17301. msm_routing_put_port_mixer),
  17302. };
  17303. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  17304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17306. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17311. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17316. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17321. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17326. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17331. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17337. msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17341. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17342. msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17346. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17347. msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17351. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17352. msm_routing_get_port_mixer,
  17353. msm_routing_put_port_mixer),
  17354. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17356. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17357. msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17361. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17362. msm_routing_get_port_mixer,
  17363. msm_routing_put_port_mixer),
  17364. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17365. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17366. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17367. msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17371. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17372. msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17376. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17377. msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17381. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17382. msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17386. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17387. msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17391. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17392. msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17396. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17397. msm_routing_get_port_mixer,
  17398. msm_routing_put_port_mixer),
  17399. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17401. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17402. msm_routing_get_port_mixer,
  17403. msm_routing_put_port_mixer),
  17404. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17406. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17407. msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17411. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17412. msm_routing_get_port_mixer,
  17413. msm_routing_put_port_mixer),
  17414. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17416. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17417. msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17421. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17422. msm_routing_get_port_mixer,
  17423. msm_routing_put_port_mixer),
  17424. };
  17425. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  17426. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  17428. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  17429. msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  17433. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  17434. msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. };
  17437. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  17438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17439. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17440. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17441. msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17446. msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17450. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17451. msm_routing_get_port_mixer,
  17452. msm_routing_put_port_mixer),
  17453. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17455. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17456. msm_routing_get_port_mixer,
  17457. msm_routing_put_port_mixer),
  17458. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17460. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17461. msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17465. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17470. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17475. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17480. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17485. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17490. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17495. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17500. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17505. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17510. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17515. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17520. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17525. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17530. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17535. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17540. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17545. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17550. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17555. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. };
  17559. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  17560. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17562. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17563. msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17568. msm_routing_get_port_mixer,
  17569. msm_routing_put_port_mixer),
  17570. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17571. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17572. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17573. msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17577. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17578. msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17582. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17583. msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17587. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17592. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17597. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17602. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17607. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17608. msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17612. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17613. msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17617. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17618. msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17622. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17623. msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17627. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17628. msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17632. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17633. msm_routing_get_port_mixer,
  17634. msm_routing_put_port_mixer),
  17635. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17636. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17637. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17638. msm_routing_get_port_mixer,
  17639. msm_routing_put_port_mixer),
  17640. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17642. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17643. msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17647. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17648. msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17652. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17653. msm_routing_get_port_mixer,
  17654. msm_routing_put_port_mixer),
  17655. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17657. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17658. msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17662. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17663. msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17667. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17668. msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17672. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17673. msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17677. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17678. msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. };
  17681. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  17682. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17684. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17685. msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17690. msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17694. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17695. msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17699. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17709. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17714. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17719. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17724. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17729. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17730. msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17734. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17735. msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17739. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17740. msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17744. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17745. msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17749. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17750. msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17754. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17755. msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17759. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17760. msm_routing_get_port_mixer,
  17761. msm_routing_put_port_mixer),
  17762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17764. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17765. msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17769. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17770. msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17774. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17775. msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17779. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17780. msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17784. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17785. msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17789. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17790. msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17794. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17795. msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17799. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17800. msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. };
  17803. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  17804. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17806. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17807. msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17811. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17812. msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17816. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17817. msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17821. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17826. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17831. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17836. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17841. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17846. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17851. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17856. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17861. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17866. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17871. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17876. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17881. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17882. msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17886. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17891. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17896. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17901. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17906. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17911. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17916. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17921. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. };
  17925. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  17926. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17928. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17929. msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17932. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17933. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17934. msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17938. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17939. msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17943. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17953. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17963. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17968. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17973. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17978. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17983. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17988. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17993. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17998. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18003. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18008. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18013. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18018. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18023. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18028. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18033. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18038. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18043. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. };
  18047. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  18048. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18049. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18050. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18051. msm_routing_get_port_mixer,
  18052. msm_routing_put_port_mixer),
  18053. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18055. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18056. msm_routing_get_port_mixer,
  18057. msm_routing_put_port_mixer),
  18058. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18059. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18060. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18061. msm_routing_get_port_mixer,
  18062. msm_routing_put_port_mixer),
  18063. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18065. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18066. msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18075. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18080. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18085. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18090. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18091. msm_routing_get_port_mixer,
  18092. msm_routing_put_port_mixer),
  18093. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18095. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18100. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18105. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18110. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18115. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18120. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18125. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18130. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18135. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18140. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18145. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18150. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18155. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18160. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18165. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. };
  18169. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  18170. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18171. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18172. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18173. msm_routing_get_port_mixer,
  18174. msm_routing_put_port_mixer),
  18175. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18176. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18177. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18178. msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18182. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18183. msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18187. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18188. msm_routing_get_port_mixer,
  18189. msm_routing_put_port_mixer),
  18190. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18192. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18197. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18202. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18207. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18212. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18213. msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18217. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18222. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18227. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18232. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18237. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18242. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18247. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18252. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18257. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18262. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18267. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18272. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18277. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18282. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18287. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. };
  18291. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  18292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18294. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18299. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18304. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18309. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18314. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18319. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18324. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18329. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18334. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18339. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18344. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18349. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18354. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18359. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18364. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18369. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18374. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18379. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18384. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18389. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18394. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18399. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18404. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18409. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. };
  18413. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  18414. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  18416. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18417. msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  18421. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18422. msm_routing_get_port_mixer,
  18423. msm_routing_put_port_mixer),
  18424. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18425. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  18426. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18427. msm_routing_get_port_mixer,
  18428. msm_routing_put_port_mixer),
  18429. };
  18430. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  18431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18433. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18434. msm_routing_put_port_mixer),
  18435. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18436. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18441. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18445. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18449. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18453. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18454. msm_routing_put_port_mixer),
  18455. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18457. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18458. msm_routing_put_port_mixer),
  18459. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18460. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18461. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18462. msm_routing_put_port_mixer),
  18463. };
  18464. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  18465. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18467. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18468. msm_routing_put_port_mixer),
  18469. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18470. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18471. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18472. msm_routing_put_port_mixer),
  18473. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18475. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18476. msm_routing_put_port_mixer),
  18477. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18479. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18483. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18487. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18491. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18492. msm_routing_put_port_mixer),
  18493. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18495. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18496. msm_routing_put_port_mixer),
  18497. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18498. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18499. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18503. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. };
  18506. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  18507. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18508. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18509. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18510. msm_routing_put_listen_mixer),
  18511. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18513. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18514. msm_routing_put_listen_mixer),
  18515. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18517. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18518. msm_routing_put_listen_mixer),
  18519. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18521. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18522. msm_routing_put_listen_mixer),
  18523. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18525. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18526. msm_routing_put_listen_mixer),
  18527. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18529. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18530. msm_routing_put_listen_mixer),
  18531. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18533. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18534. msm_routing_put_listen_mixer),
  18535. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18537. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18538. msm_routing_put_listen_mixer),
  18539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18541. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18542. msm_routing_put_listen_mixer),
  18543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18545. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18546. msm_routing_put_listen_mixer),
  18547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18549. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18550. msm_routing_put_listen_mixer),
  18551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18554. msm_routing_put_listen_mixer),
  18555. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18557. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18558. msm_routing_put_listen_mixer),
  18559. };
  18560. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  18561. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18563. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18564. msm_routing_put_listen_mixer),
  18565. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  18566. SND_SOC_NOPM,
  18567. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18568. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18569. msm_routing_put_listen_mixer),
  18570. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18572. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18573. msm_routing_put_listen_mixer),
  18574. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18576. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18577. msm_routing_put_listen_mixer),
  18578. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18580. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18581. msm_routing_put_listen_mixer),
  18582. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18584. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18585. msm_routing_put_listen_mixer),
  18586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18587. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18588. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18589. msm_routing_put_listen_mixer),
  18590. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18592. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18593. msm_routing_put_listen_mixer),
  18594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18596. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18597. msm_routing_put_listen_mixer),
  18598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18601. msm_routing_put_listen_mixer),
  18602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18605. msm_routing_put_listen_mixer),
  18606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18609. msm_routing_put_listen_mixer),
  18610. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18612. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18613. msm_routing_put_listen_mixer),
  18614. };
  18615. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  18616. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18618. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18619. msm_routing_put_listen_mixer),
  18620. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18622. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18623. msm_routing_put_listen_mixer),
  18624. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18625. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18626. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18627. msm_routing_put_listen_mixer),
  18628. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18629. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18630. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18631. msm_routing_put_listen_mixer),
  18632. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18635. msm_routing_put_listen_mixer),
  18636. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18639. msm_routing_put_listen_mixer),
  18640. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18643. msm_routing_put_listen_mixer),
  18644. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18645. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18647. msm_routing_put_listen_mixer),
  18648. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18650. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18651. msm_routing_put_listen_mixer),
  18652. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18654. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18655. msm_routing_put_listen_mixer),
  18656. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18658. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18659. msm_routing_put_listen_mixer),
  18660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18662. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18663. msm_routing_put_listen_mixer),
  18664. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18665. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18666. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18667. msm_routing_put_listen_mixer),
  18668. };
  18669. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  18670. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18672. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18673. msm_routing_put_listen_mixer),
  18674. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18675. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18676. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18677. msm_routing_put_listen_mixer),
  18678. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18679. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18681. msm_routing_put_listen_mixer),
  18682. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18684. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18685. msm_routing_put_listen_mixer),
  18686. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18688. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18689. msm_routing_put_listen_mixer),
  18690. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18692. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18693. msm_routing_put_listen_mixer),
  18694. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18695. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18696. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18697. msm_routing_put_listen_mixer),
  18698. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18699. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18700. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18701. msm_routing_put_listen_mixer),
  18702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18704. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18705. msm_routing_put_listen_mixer),
  18706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18708. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18709. msm_routing_put_listen_mixer),
  18710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18712. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18713. msm_routing_put_listen_mixer),
  18714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18716. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18717. msm_routing_put_listen_mixer),
  18718. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18720. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18721. msm_routing_put_listen_mixer),
  18722. };
  18723. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  18724. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18726. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18727. msm_routing_put_listen_mixer),
  18728. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18730. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18731. msm_routing_put_listen_mixer),
  18732. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18734. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18735. msm_routing_put_listen_mixer),
  18736. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18737. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18738. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18739. msm_routing_put_listen_mixer),
  18740. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18742. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18743. msm_routing_put_listen_mixer),
  18744. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18746. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18747. msm_routing_put_listen_mixer),
  18748. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18750. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18751. msm_routing_put_listen_mixer),
  18752. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18754. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18755. msm_routing_put_listen_mixer),
  18756. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18757. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18758. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18759. msm_routing_put_listen_mixer),
  18760. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18761. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18762. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18763. msm_routing_put_listen_mixer),
  18764. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18766. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18767. msm_routing_put_listen_mixer),
  18768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18770. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18771. msm_routing_put_listen_mixer),
  18772. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18774. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18775. msm_routing_put_listen_mixer),
  18776. };
  18777. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  18778. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18780. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18781. msm_routing_put_listen_mixer),
  18782. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18784. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18785. msm_routing_put_listen_mixer),
  18786. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18787. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18788. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18789. msm_routing_put_listen_mixer),
  18790. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18792. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18793. msm_routing_put_listen_mixer),
  18794. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18796. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18797. msm_routing_put_listen_mixer),
  18798. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18800. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18801. msm_routing_put_listen_mixer),
  18802. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18804. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18805. msm_routing_put_listen_mixer),
  18806. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18807. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18808. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18809. msm_routing_put_listen_mixer),
  18810. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18811. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18812. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18813. msm_routing_put_listen_mixer),
  18814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18816. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18817. msm_routing_put_listen_mixer),
  18818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18820. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18821. msm_routing_put_listen_mixer),
  18822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18824. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18825. msm_routing_put_listen_mixer),
  18826. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18827. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18828. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18829. msm_routing_put_listen_mixer),
  18830. };
  18831. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  18832. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18834. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18835. msm_routing_put_listen_mixer),
  18836. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18838. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18839. msm_routing_put_listen_mixer),
  18840. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18842. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18843. msm_routing_put_listen_mixer),
  18844. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18846. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18847. msm_routing_put_listen_mixer),
  18848. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18849. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18850. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18851. msm_routing_put_listen_mixer),
  18852. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18854. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18855. msm_routing_put_listen_mixer),
  18856. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18858. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18859. msm_routing_put_listen_mixer),
  18860. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18862. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18863. msm_routing_put_listen_mixer),
  18864. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18866. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18867. msm_routing_put_listen_mixer),
  18868. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18869. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18870. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18871. msm_routing_put_listen_mixer),
  18872. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18874. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18875. msm_routing_put_listen_mixer),
  18876. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18878. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18879. msm_routing_put_listen_mixer),
  18880. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18882. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18883. msm_routing_put_listen_mixer),
  18884. };
  18885. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  18886. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18888. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18889. msm_routing_put_listen_mixer),
  18890. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18892. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18893. msm_routing_put_listen_mixer),
  18894. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18896. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18897. msm_routing_put_listen_mixer),
  18898. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18899. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18900. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18901. msm_routing_put_listen_mixer),
  18902. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18904. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18905. msm_routing_put_listen_mixer),
  18906. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18908. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18909. msm_routing_put_listen_mixer),
  18910. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18912. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18913. msm_routing_put_listen_mixer),
  18914. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18916. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18917. msm_routing_put_listen_mixer),
  18918. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18920. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18921. msm_routing_put_listen_mixer),
  18922. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18924. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18925. msm_routing_put_listen_mixer),
  18926. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18928. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18929. msm_routing_put_listen_mixer),
  18930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18932. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18933. msm_routing_put_listen_mixer),
  18934. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18936. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18937. msm_routing_put_listen_mixer),
  18938. };
  18939. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  18940. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18941. 0, 1, 0, msm_routing_get_switch_mixer,
  18942. msm_routing_put_switch_mixer);
  18943. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  18944. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18945. 0, 1, 0, msm_routing_get_switch_mixer,
  18946. msm_routing_put_switch_mixer);
  18947. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  18948. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18949. 0, 1, 0, msm_routing_get_switch_mixer,
  18950. msm_routing_put_switch_mixer);
  18951. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  18952. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18953. 0, 1, 0, msm_routing_get_switch_mixer,
  18954. msm_routing_put_switch_mixer);
  18955. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  18956. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18957. 0, 1, 0, msm_routing_get_switch_mixer,
  18958. msm_routing_put_switch_mixer);
  18959. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  18960. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18961. 0, 1, 0, msm_routing_get_switch_mixer,
  18962. msm_routing_put_switch_mixer);
  18963. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  18964. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18965. 0, 1, 0, msm_routing_get_switch_mixer,
  18966. msm_routing_put_switch_mixer);
  18967. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  18968. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18969. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  18970. msm_routing_put_fm_pcmrx_switch_mixer);
  18971. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  18972. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18973. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  18974. msm_routing_put_int0_mi2s_switch_mixer);
  18975. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  18976. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18977. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  18978. msm_routing_put_int4_mi2s_switch_mixer);
  18979. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  18980. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18981. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  18982. msm_routing_put_pri_mi2s_switch_mixer);
  18983. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  18984. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18985. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  18986. msm_routing_put_sec_mi2s_switch_mixer);
  18987. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  18988. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18989. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  18990. msm_routing_put_tert_mi2s_switch_mixer);
  18991. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  18992. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18993. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  18994. msm_routing_put_quat_mi2s_switch_mixer);
  18995. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  18996. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18997. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  18998. msm_routing_put_quin_mi2s_switch_mixer);
  18999. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  19000. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19001. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  19002. msm_routing_put_sen_mi2s_switch_mixer);
  19003. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  19004. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19005. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19006. msm_routing_put_hfp_switch_mixer);
  19007. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  19008. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19009. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19010. msm_routing_put_hfp_switch_mixer);
  19011. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  19012. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19013. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19014. msm_routing_put_hfp_switch_mixer);
  19015. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  19016. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19017. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19018. msm_routing_put_hfp_switch_mixer);
  19019. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  19020. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19021. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  19022. msm_routing_put_usb_switch_mixer);
  19023. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  19024. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19025. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  19026. msm_routing_a2dp_switch_mixer_put);
  19027. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  19028. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19029. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  19030. msm_routing_sco_switch_mixer_put);
  19031. static const struct soc_enum lsm_port_enum =
  19032. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  19033. static const char * const lsm_func_text[] = {
  19034. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  19035. };
  19036. static const struct soc_enum lsm_func_enum =
  19037. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  19038. static const struct snd_kcontrol_new lsm_controls[] = {
  19039. /* kcontrol of lsm_function */
  19040. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19041. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19042. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19043. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19044. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19045. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19046. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19047. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19048. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19049. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19050. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19051. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19052. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19053. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19054. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19055. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19056. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19057. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19058. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19059. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19060. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19061. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19062. /* kcontrol of lsm_port */
  19063. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  19064. msm_routing_lsm_port_get,
  19065. msm_routing_lsm_port_put),
  19066. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  19067. msm_routing_lsm_port_get,
  19068. msm_routing_lsm_port_put),
  19069. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  19070. msm_routing_lsm_port_get,
  19071. msm_routing_lsm_port_put),
  19072. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  19073. msm_routing_lsm_port_get,
  19074. msm_routing_lsm_port_put),
  19075. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  19076. msm_routing_lsm_port_get,
  19077. msm_routing_lsm_port_put),
  19078. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  19079. msm_routing_lsm_port_get,
  19080. msm_routing_lsm_port_put),
  19081. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  19082. msm_routing_lsm_port_get,
  19083. msm_routing_lsm_port_put),
  19084. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  19085. msm_routing_lsm_port_get,
  19086. msm_routing_lsm_port_put),
  19087. };
  19088. static const char * const aanc_slim_0_rx_text[] = {
  19089. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  19090. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  19091. };
  19092. static const struct soc_enum aanc_slim_0_rx_enum =
  19093. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  19094. aanc_slim_0_rx_text);
  19095. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  19096. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  19097. msm_routing_slim_0_rx_aanc_mux_get,
  19098. msm_routing_slim_0_rx_aanc_mux_put)
  19099. };
  19100. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  19101. struct snd_ctl_elem_value *ucontrol)
  19102. {
  19103. ucontrol->value.integer.value[0] = aanc_level;
  19104. return 0;
  19105. }
  19106. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  19107. struct snd_ctl_elem_value *ucontrol)
  19108. {
  19109. int ret = 0;
  19110. mutex_lock(&routing_lock);
  19111. aanc_level = ucontrol->value.integer.value[0];
  19112. pr_debug("%s: value: %ld\n",
  19113. __func__, ucontrol->value.integer.value[0]);
  19114. ret = afe_set_aanc_noise_level(aanc_level);
  19115. mutex_unlock(&routing_lock);
  19116. return ret;
  19117. }
  19118. static const struct snd_kcontrol_new aanc_noise_level[] = {
  19119. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  19120. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  19121. };
  19122. static int msm_routing_get_stereo_to_custom_stereo_control(
  19123. struct snd_kcontrol *kcontrol,
  19124. struct snd_ctl_elem_value *ucontrol)
  19125. {
  19126. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  19127. return 0;
  19128. }
  19129. static int msm_routing_put_stereo_to_custom_stereo_control(
  19130. struct snd_kcontrol *kcontrol,
  19131. struct snd_ctl_elem_value *ucontrol)
  19132. {
  19133. int flag = 0, i = 0, rc = 0, idx = 0;
  19134. int be_index = 0, port_id, topo_id;
  19135. unsigned int session_id = 0;
  19136. uint16_t op_FL_ip_FL_weight = 0;
  19137. uint16_t op_FL_ip_FR_weight = 0;
  19138. uint16_t op_FR_ip_FL_weight = 0;
  19139. uint16_t op_FR_ip_FR_weight = 0;
  19140. flag = ucontrol->value.integer.value[0];
  19141. pr_debug("%s E flag %d\n", __func__, flag);
  19142. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  19143. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  19144. __func__, is_custom_stereo_on, flag);
  19145. return 0;
  19146. }
  19147. is_custom_stereo_on = flag ? true : false;
  19148. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  19149. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19150. port_id = msm_bedais[be_index].port_id;
  19151. if (!msm_bedais[be_index].active)
  19152. continue;
  19153. if ((port_id != SLIMBUS_0_RX) &&
  19154. (port_id != RT_PROXY_PORT_001_RX) &&
  19155. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  19156. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  19157. continue;
  19158. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19159. MSM_FRONTEND_DAI_MM_SIZE) {
  19160. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  19161. LEGACY_PCM_MODE)
  19162. goto skip_send_custom_stereo;
  19163. session_id =
  19164. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  19165. if (is_custom_stereo_on) {
  19166. op_FL_ip_FL_weight =
  19167. Q14_GAIN_ZERO_POINT_FIVE;
  19168. op_FL_ip_FR_weight =
  19169. Q14_GAIN_ZERO_POINT_FIVE;
  19170. op_FR_ip_FL_weight =
  19171. Q14_GAIN_ZERO_POINT_FIVE;
  19172. op_FR_ip_FR_weight =
  19173. Q14_GAIN_ZERO_POINT_FIVE;
  19174. } else {
  19175. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  19176. op_FL_ip_FR_weight = 0;
  19177. op_FR_ip_FL_weight = 0;
  19178. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  19179. }
  19180. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19181. unsigned long copp =
  19182. session_copp_map[i]
  19183. [SESSION_TYPE_RX][be_index];
  19184. if (!test_bit(idx, &copp))
  19185. goto skip_send_custom_stereo;
  19186. topo_id = adm_get_topology_for_port_copp_idx(
  19187. msm_bedais[be_index].port_id, idx);
  19188. if (topo_id < 0)
  19189. pr_debug("%s:Err:custom stereo topo %d",
  19190. __func__, topo_id);
  19191. pr_debug("idx %d\n", idx);
  19192. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  19193. rc = msm_ds2_dap_set_custom_stereo_onoff
  19194. (msm_bedais[be_index].port_id,
  19195. idx, is_custom_stereo_on);
  19196. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  19197. rc = dolby_dap_set_custom_stereo_onoff(
  19198. msm_bedais[be_index].port_id,
  19199. idx, is_custom_stereo_on);
  19200. else
  19201. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  19202. (msm_bedais[be_index].port_id,
  19203. idx, session_id,
  19204. op_FL_ip_FL_weight,
  19205. op_FL_ip_FR_weight,
  19206. op_FR_ip_FL_weight,
  19207. op_FR_ip_FR_weight);
  19208. if (rc < 0)
  19209. skip_send_custom_stereo:
  19210. pr_err("%s: err setting custom stereo\n",
  19211. __func__);
  19212. }
  19213. }
  19214. }
  19215. return 0;
  19216. }
  19217. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  19218. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  19219. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  19220. msm_routing_put_stereo_to_custom_stereo_control),
  19221. };
  19222. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19223. struct snd_ctl_elem_value *ucontrol)
  19224. {
  19225. return 0;
  19226. }
  19227. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19228. struct snd_ctl_elem_value *ucontrol)
  19229. {
  19230. int i = 0, j;
  19231. int num_app_types = ucontrol->value.integer.value[i++];
  19232. pr_debug("%s\n", __func__);
  19233. memset(app_type_cfg, 0, MAX_APP_TYPES*
  19234. sizeof(struct msm_pcm_routing_app_type_data));
  19235. if (num_app_types > MAX_APP_TYPES) {
  19236. pr_err("%s: number of app types exceed the max supported\n",
  19237. __func__);
  19238. return -EINVAL;
  19239. }
  19240. for (j = 0; j < num_app_types; j++) {
  19241. app_type_cfg[j].app_type =
  19242. ucontrol->value.integer.value[i++];
  19243. app_type_cfg[j].sample_rate =
  19244. ucontrol->value.integer.value[i++];
  19245. app_type_cfg[j].bit_width =
  19246. ucontrol->value.integer.value[i++];
  19247. }
  19248. return 0;
  19249. }
  19250. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  19251. struct snd_ctl_elem_value *ucontrol)
  19252. {
  19253. int j, fe_id, be_id, port_type;
  19254. int ret = 0;
  19255. unsigned long copp;
  19256. struct msm_pcm_routing_bdai_data *bedai;
  19257. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19258. SESSION_TYPE_RX;
  19259. int app_type = ucontrol->value.integer.value[1];
  19260. int gain = (ucontrol->value.integer.value[2] +
  19261. ucontrol->value.integer.value[3])/2;
  19262. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19263. MSM_AFE_PORT_TYPE_TX;
  19264. mutex_lock(&routing_lock);
  19265. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19266. if (is_be_dai_extproc(be_id))
  19267. continue;
  19268. bedai = &msm_bedais[be_id];
  19269. if (afe_get_port_type(bedai->port_id) != port_type)
  19270. continue;
  19271. if (!bedai->active)
  19272. continue;
  19273. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19274. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19275. continue;
  19276. if (app_type !=
  19277. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19278. continue;
  19279. copp = session_copp_map[fe_id][dir][be_id];
  19280. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  19281. if (!test_bit(j, &copp))
  19282. continue;
  19283. ret |= adm_set_volume(bedai->port_id, j, gain);
  19284. }
  19285. }
  19286. }
  19287. mutex_unlock(&routing_lock);
  19288. return ret ? -EINVAL : 0;
  19289. }
  19290. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  19291. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  19292. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  19293. msm_routing_put_app_type_cfg_control),
  19294. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  19295. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  19296. };
  19297. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  19298. struct snd_ctl_elem_value *ucontrol)
  19299. {
  19300. int copp_idx, fe_id, be_id, port_type;
  19301. int ret = 0;
  19302. unsigned long copp;
  19303. struct msm_pcm_routing_bdai_data *bedai;
  19304. u8 *packed_params = NULL;
  19305. struct param_hdr_v3 param_hdr;
  19306. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  19307. sizeof(uint32_t));
  19308. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19309. SESSION_TYPE_RX;
  19310. int app_type = ucontrol->value.integer.value[1];
  19311. int module_id = ucontrol->value.integer.value[2];
  19312. int instance_id = ucontrol->value.integer.value[3];
  19313. int param_id = ucontrol->value.integer.value[4];
  19314. int param_value = ucontrol->value.integer.value[5];
  19315. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19316. MSM_AFE_PORT_TYPE_TX;
  19317. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  19318. __func__, app_type, module_id,
  19319. instance_id, param_id, param_value);
  19320. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  19321. if (!packed_params)
  19322. return -ENOMEM;
  19323. memset(&param_hdr, 0, sizeof(param_hdr));
  19324. param_hdr.module_id = module_id;
  19325. param_hdr.instance_id = instance_id;
  19326. param_hdr.param_id = param_id;
  19327. param_hdr.param_size = sizeof(uint32_t);
  19328. packed_param_size = 0;
  19329. mutex_lock(&routing_lock);
  19330. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19331. if (is_be_dai_extproc(be_id))
  19332. continue;
  19333. bedai = &msm_bedais[be_id];
  19334. if (afe_get_port_type(bedai->port_id) != port_type)
  19335. continue;
  19336. if (!bedai->active)
  19337. continue;
  19338. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19339. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19340. continue;
  19341. if (app_type !=
  19342. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19343. continue;
  19344. copp = session_copp_map[fe_id][dir][be_id];
  19345. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  19346. copp_idx++) {
  19347. if (!test_bit(copp_idx, &copp))
  19348. continue;
  19349. ret = q6common_pack_pp_params(packed_params,
  19350. &param_hdr,
  19351. (u8 *) &param_value,
  19352. &packed_param_size);
  19353. if (ret) {
  19354. pr_err("%s: Failed to pack params, error %d\n",
  19355. __func__, ret);
  19356. goto done;
  19357. }
  19358. ret = adm_set_pp_params(bedai->port_id,
  19359. copp_idx, NULL,
  19360. packed_params,
  19361. packed_param_size);
  19362. if (ret) {
  19363. pr_err("%s: Setting param failed with err=%d\n",
  19364. __func__, ret);
  19365. ret = -EINVAL;
  19366. goto done;
  19367. }
  19368. }
  19369. }
  19370. }
  19371. done:
  19372. mutex_unlock(&routing_lock);
  19373. kfree(packed_params);
  19374. return ret;
  19375. }
  19376. static const struct snd_kcontrol_new module_cfg_controls[] = {
  19377. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  19378. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  19379. };
  19380. static int msm_routing_get_lsm_app_type_cfg_control(
  19381. struct snd_kcontrol *kcontrol,
  19382. struct snd_ctl_elem_value *ucontrol)
  19383. {
  19384. int shift = ((struct soc_multi_mixer_control *)
  19385. kcontrol->private_value)->shift;
  19386. int i = 0, j = 0;
  19387. ucontrol->value.integer.value[i] = num_app_cfg_types;
  19388. for (j = 0; j < num_app_cfg_types; ++j) {
  19389. ucontrol->value.integer.value[++i] =
  19390. lsm_app_type_cfg[j].app_type;
  19391. ucontrol->value.integer.value[++i] =
  19392. lsm_app_type_cfg[j].sample_rate;
  19393. ucontrol->value.integer.value[++i] =
  19394. lsm_app_type_cfg[j].bit_width;
  19395. if (shift == 1)
  19396. ucontrol->value.integer.value[++i] =
  19397. lsm_app_type_cfg[j].num_out_channels;
  19398. }
  19399. return 0;
  19400. }
  19401. static int msm_routing_put_lsm_app_type_cfg_control(
  19402. struct snd_kcontrol *kcontrol,
  19403. struct snd_ctl_elem_value *ucontrol)
  19404. {
  19405. int shift = ((struct soc_multi_mixer_control *)
  19406. kcontrol->private_value)->shift;
  19407. int i = 0, j;
  19408. num_app_cfg_types = ucontrol->value.integer.value[i++];
  19409. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  19410. sizeof(struct msm_pcm_routing_app_type_data));
  19411. if (num_app_cfg_types > MAX_APP_TYPES) {
  19412. pr_err("%s: number of app types exceed the max supported\n",
  19413. __func__);
  19414. return -EINVAL;
  19415. }
  19416. for (j = 0; j < num_app_cfg_types; j++) {
  19417. lsm_app_type_cfg[j].app_type =
  19418. ucontrol->value.integer.value[i++];
  19419. lsm_app_type_cfg[j].sample_rate =
  19420. ucontrol->value.integer.value[i++];
  19421. lsm_app_type_cfg[j].bit_width =
  19422. ucontrol->value.integer.value[i++];
  19423. /* Shift of 1 indicates this is V2 mixer control */
  19424. if (shift == 1)
  19425. lsm_app_type_cfg[j].num_out_channels =
  19426. ucontrol->value.integer.value[i++];
  19427. }
  19428. return 0;
  19429. }
  19430. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  19431. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  19432. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19433. msm_routing_put_lsm_app_type_cfg_control),
  19434. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  19435. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19436. msm_routing_put_lsm_app_type_cfg_control),
  19437. };
  19438. static int msm_routing_get_use_ds1_or_ds2_control(
  19439. struct snd_kcontrol *kcontrol,
  19440. struct snd_ctl_elem_value *ucontrol)
  19441. {
  19442. ucontrol->value.integer.value[0] = is_ds2_on;
  19443. return 0;
  19444. }
  19445. static int msm_routing_put_use_ds1_or_ds2_control(
  19446. struct snd_kcontrol *kcontrol,
  19447. struct snd_ctl_elem_value *ucontrol)
  19448. {
  19449. is_ds2_on = ucontrol->value.integer.value[0];
  19450. return 0;
  19451. }
  19452. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  19453. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  19454. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  19455. msm_routing_put_use_ds1_or_ds2_control),
  19456. };
  19457. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  19458. struct snd_ctl_elem_value *ucontrol) {
  19459. int rc = 0;
  19460. int be_idx = 0;
  19461. char *param_value;
  19462. int *update_param_value;
  19463. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  19464. struct param_hdr_v3 param_hdr;
  19465. param_value = kzalloc(param_size, GFP_KERNEL);
  19466. if (!param_value)
  19467. return -ENOMEM;
  19468. memset(&param_hdr, 0, sizeof(param_hdr));
  19469. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  19470. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  19471. break;
  19472. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  19473. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  19474. param_hdr.instance_id = INSTANCE_ID_0;
  19475. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  19476. param_hdr.param_size = param_size;
  19477. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  19478. NULL, &param_hdr, (u8 *) param_value);
  19479. if (rc) {
  19480. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  19481. kfree(param_value);
  19482. return -EINVAL;
  19483. }
  19484. update_param_value = (int *)param_value;
  19485. ucontrol->value.integer.value[0] = update_param_value[0];
  19486. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  19487. __func__, update_param_value[0]);
  19488. }
  19489. kfree(param_value);
  19490. return 0;
  19491. }
  19492. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  19493. struct snd_ctl_elem_value *ucontrol)
  19494. {
  19495. voc_session_id = ucontrol->value.integer.value[0];
  19496. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  19497. return 0;
  19498. }
  19499. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  19500. struct snd_ctl_elem_value *ucontrol)
  19501. {
  19502. ucontrol->value.integer.value[0] = voc_session_id;
  19503. return 0;
  19504. }
  19505. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  19506. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  19507. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  19508. msm_voc_session_id_put),
  19509. };
  19510. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  19511. struct snd_ctl_elem_info *uinfo)
  19512. {
  19513. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19514. uinfo->count = sizeof(struct sound_focus_param);
  19515. return 0;
  19516. }
  19517. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  19518. struct snd_ctl_elem_value *ucontrol)
  19519. {
  19520. int ret = 0;
  19521. struct sound_focus_param soundFocusData;
  19522. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19523. sizeof(struct sound_focus_param));
  19524. ret = voc_set_sound_focus(soundFocusData);
  19525. if (ret) {
  19526. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19527. __func__, ret);
  19528. ret = -EINVAL;
  19529. }
  19530. return ret;
  19531. }
  19532. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  19533. struct snd_ctl_elem_value *ucontrol)
  19534. {
  19535. int ret = 0;
  19536. struct sound_focus_param soundFocusData;
  19537. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  19538. ret = voc_get_sound_focus(&soundFocusData);
  19539. if (ret) {
  19540. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  19541. __func__, ret);
  19542. ret = -EINVAL;
  19543. goto done;
  19544. }
  19545. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19546. sizeof(struct sound_focus_param));
  19547. done:
  19548. return ret;
  19549. }
  19550. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  19551. struct snd_ctl_elem_info *uinfo)
  19552. {
  19553. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19554. uinfo->count = sizeof(struct source_tracking_param);
  19555. return 0;
  19556. }
  19557. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  19558. struct snd_ctl_elem_value *ucontrol)
  19559. {
  19560. int ret = 0;
  19561. struct source_tracking_param sourceTrackingData;
  19562. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  19563. ret = voc_get_source_tracking(&sourceTrackingData);
  19564. if (ret) {
  19565. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  19566. __func__, ret);
  19567. ret = -EINVAL;
  19568. goto done;
  19569. }
  19570. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19571. sizeof(struct source_tracking_param));
  19572. done:
  19573. return ret;
  19574. }
  19575. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  19576. int *copp_idx)
  19577. {
  19578. int i, idx, be_idx;
  19579. int ret = 0;
  19580. unsigned long copp;
  19581. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  19582. ret = q6audio_validate_port(port_id);
  19583. if (ret < 0) {
  19584. pr_err("%s: port validation failed id 0x%x ret %d\n",
  19585. __func__, port_id, ret);
  19586. ret = -EINVAL;
  19587. goto done;
  19588. }
  19589. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19590. if (msm_bedais[be_idx].port_id == port_id)
  19591. break;
  19592. }
  19593. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19594. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  19595. ret = -EINVAL;
  19596. goto done;
  19597. }
  19598. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19599. MSM_FRONTEND_DAI_MAX) {
  19600. if (!(is_mm_lsm_fe_id(i) &&
  19601. route_check_fe_id_adm_support(i)))
  19602. continue;
  19603. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19604. copp = session_copp_map[i]
  19605. [session_type][be_idx];
  19606. if (test_bit(idx, &copp))
  19607. break;
  19608. }
  19609. if (idx >= MAX_COPPS_PER_PORT)
  19610. continue;
  19611. else
  19612. break;
  19613. }
  19614. if (i >= MSM_FRONTEND_DAI_MAX) {
  19615. pr_debug("%s: Invalid FE, exiting\n", __func__);
  19616. ret = -EINVAL;
  19617. goto done;
  19618. }
  19619. *copp_idx = idx;
  19620. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  19621. done:
  19622. return ret;
  19623. }
  19624. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  19625. const char *prefix, int *port_id)
  19626. {
  19627. int ret = 0;
  19628. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  19629. /*
  19630. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  19631. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  19632. * and compare the string with the backend name to derive the port id.
  19633. */
  19634. if (!strcmp(kcontrol->id.name + strlen(prefix),
  19635. "SLIMBUS_0")) {
  19636. *port_id = SLIMBUS_0_TX;
  19637. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19638. "TERT_MI2S")) {
  19639. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  19640. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19641. "INT3_MI2S")) {
  19642. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  19643. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19644. "VA_CDC_DMA_TX_0")) {
  19645. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  19646. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19647. "TX_CDC_DMA_TX_3")) {
  19648. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  19649. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19650. "QUIN_TDM_TX_0")) {
  19651. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  19652. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19653. "PRIMARY_TDM")) {
  19654. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  19655. } else {
  19656. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  19657. __func__, kcontrol->id.name);
  19658. ret = -EINVAL;
  19659. goto done;
  19660. }
  19661. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  19662. __func__, kcontrol->id.name, *port_id);
  19663. done:
  19664. return ret;
  19665. }
  19666. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  19667. struct snd_ctl_elem_value *ucontrol)
  19668. {
  19669. int ret = 0;
  19670. struct sound_focus_param soundFocusData;
  19671. int port_id, copp_idx;
  19672. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19673. "Sound Focus Audio Tx ", &port_id);
  19674. if (ret != 0) {
  19675. pr_err("%s: Error in deriving port id, err=%d\n",
  19676. __func__, ret);
  19677. ret = -EINVAL;
  19678. goto done;
  19679. }
  19680. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19681. &copp_idx);
  19682. if (ret) {
  19683. pr_err("%s: Could not get copp idx for port_id=%d\n",
  19684. __func__, port_id);
  19685. ret = -EINVAL;
  19686. goto done;
  19687. }
  19688. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19689. sizeof(struct sound_focus_param));
  19690. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  19691. if (ret) {
  19692. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19693. __func__, ret);
  19694. ret = -EINVAL;
  19695. goto done;
  19696. }
  19697. done:
  19698. return ret;
  19699. }
  19700. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  19701. struct snd_ctl_elem_value *ucontrol)
  19702. {
  19703. int ret = 0;
  19704. struct sound_focus_param soundFocusData;
  19705. int port_id, copp_idx;
  19706. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19707. "Sound Focus Audio Tx ", &port_id);
  19708. if (ret) {
  19709. pr_err("%s: Error in deriving port id, err=%d\n",
  19710. __func__, ret);
  19711. ret = -EINVAL;
  19712. goto done;
  19713. }
  19714. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19715. &copp_idx);
  19716. if (ret) {
  19717. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19718. __func__, port_id);
  19719. ret = -EINVAL;
  19720. goto done;
  19721. }
  19722. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  19723. if (ret) {
  19724. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  19725. __func__, ret);
  19726. ret = -EINVAL;
  19727. goto done;
  19728. }
  19729. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19730. sizeof(struct sound_focus_param));
  19731. done:
  19732. return ret;
  19733. }
  19734. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  19735. struct snd_ctl_elem_value *ucontrol)
  19736. {
  19737. int ret = 0;
  19738. struct source_tracking_param sourceTrackingData;
  19739. int port_id, copp_idx;
  19740. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19741. "Source Tracking Audio Tx ", &port_id);
  19742. if (ret) {
  19743. pr_err("%s: Error in deriving port id, err=%d\n",
  19744. __func__, ret);
  19745. ret = -EINVAL;
  19746. goto done;
  19747. }
  19748. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19749. &copp_idx);
  19750. if (ret) {
  19751. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19752. __func__, port_id);
  19753. ret = -EINVAL;
  19754. goto done;
  19755. }
  19756. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  19757. if (ret) {
  19758. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  19759. __func__, ret);
  19760. ret = -EINVAL;
  19761. goto done;
  19762. }
  19763. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19764. sizeof(struct source_tracking_param));
  19765. done:
  19766. return ret;
  19767. }
  19768. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  19769. struct snd_ctl_elem_info *uinfo)
  19770. {
  19771. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19772. uinfo->count = sizeof(struct doa_tracking_mon_param);
  19773. return 0;
  19774. }
  19775. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  19776. struct snd_ctl_elem_value *ucontrol)
  19777. {
  19778. int ret = 0;
  19779. struct doa_tracking_mon_param doa_tracking_data;
  19780. int port_id, copp_idx;
  19781. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  19782. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19783. "Doa Tracking Monitor Listen ", &port_id);
  19784. if (ret) {
  19785. pr_err("%s: Error in deriving port id, err=%d\n",
  19786. __func__, ret);
  19787. ret = -EINVAL;
  19788. goto done;
  19789. }
  19790. /*
  19791. * If copp id exists for given port id, query adm to get doa data.
  19792. * Else query afe for doa tracking params.
  19793. * This is to support in cases where LSM directly connects to
  19794. * AFE for FFNS.
  19795. */
  19796. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19797. &copp_idx);
  19798. if (!ret)
  19799. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  19800. &doa_tracking_data);
  19801. else
  19802. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  19803. if (ret) {
  19804. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  19805. __func__, ret);
  19806. ret = -EINVAL;
  19807. goto done;
  19808. }
  19809. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  19810. sizeof(struct doa_tracking_mon_param));
  19811. done:
  19812. return ret;
  19813. }
  19814. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  19815. {
  19816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19817. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19818. .name = "Sound Focus Voice Tx SLIMBUS_0",
  19819. .info = msm_sound_focus_info,
  19820. .get = msm_voice_sound_focus_get,
  19821. .put = msm_voice_sound_focus_put,
  19822. },
  19823. {
  19824. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19826. .name = "Source Tracking Voice Tx SLIMBUS_0",
  19827. .info = msm_source_tracking_info,
  19828. .get = msm_voice_source_tracking_get,
  19829. },
  19830. {
  19831. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19832. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19833. .name = "Sound Focus Audio Tx SLIMBUS_0",
  19834. .info = msm_sound_focus_info,
  19835. .get = msm_audio_sound_focus_get,
  19836. .put = msm_audio_sound_focus_put,
  19837. },
  19838. {
  19839. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19841. .name = "Source Tracking Audio Tx SLIMBUS_0",
  19842. .info = msm_source_tracking_info,
  19843. .get = msm_audio_source_tracking_get,
  19844. },
  19845. {
  19846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19847. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19848. .name = "Sound Focus Voice Tx TERT_MI2S",
  19849. .info = msm_sound_focus_info,
  19850. .get = msm_voice_sound_focus_get,
  19851. .put = msm_voice_sound_focus_put,
  19852. },
  19853. {
  19854. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19856. .name = "Source Tracking Voice Tx TERT_MI2S",
  19857. .info = msm_source_tracking_info,
  19858. .get = msm_voice_source_tracking_get,
  19859. },
  19860. {
  19861. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19863. .name = "Sound Focus Audio Tx TERT_MI2S",
  19864. .info = msm_sound_focus_info,
  19865. .get = msm_audio_sound_focus_get,
  19866. .put = msm_audio_sound_focus_put,
  19867. },
  19868. {
  19869. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19871. .name = "Source Tracking Audio Tx TERT_MI2S",
  19872. .info = msm_source_tracking_info,
  19873. .get = msm_audio_source_tracking_get,
  19874. },
  19875. {
  19876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19877. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19878. .name = "Sound Focus Voice Tx INT3_MI2S",
  19879. .info = msm_sound_focus_info,
  19880. .get = msm_voice_sound_focus_get,
  19881. .put = msm_voice_sound_focus_put,
  19882. },
  19883. {
  19884. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19886. .name = "Source Tracking Voice Tx INT3_MI2S",
  19887. .info = msm_source_tracking_info,
  19888. .get = msm_voice_source_tracking_get,
  19889. },
  19890. {
  19891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19893. .name = "Sound Focus Audio Tx INT3_MI2S",
  19894. .info = msm_sound_focus_info,
  19895. .get = msm_audio_sound_focus_get,
  19896. .put = msm_audio_sound_focus_put,
  19897. },
  19898. {
  19899. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19901. .name = "Source Tracking Audio Tx INT3_MI2S",
  19902. .info = msm_source_tracking_info,
  19903. .get = msm_audio_source_tracking_get,
  19904. },
  19905. {
  19906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19907. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19908. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  19909. .info = msm_sound_focus_info,
  19910. .get = msm_voice_sound_focus_get,
  19911. .put = msm_voice_sound_focus_put,
  19912. },
  19913. {
  19914. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19916. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  19917. .info = msm_source_tracking_info,
  19918. .get = msm_voice_source_tracking_get,
  19919. },
  19920. {
  19921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19923. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  19924. .info = msm_sound_focus_info,
  19925. .get = msm_audio_sound_focus_get,
  19926. .put = msm_audio_sound_focus_put,
  19927. },
  19928. {
  19929. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19931. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  19932. .info = msm_source_tracking_info,
  19933. .get = msm_audio_source_tracking_get,
  19934. },
  19935. {
  19936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19937. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19938. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  19939. .info = msm_sound_focus_info,
  19940. .get = msm_voice_sound_focus_get,
  19941. .put = msm_voice_sound_focus_put,
  19942. },
  19943. {
  19944. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19946. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  19947. .info = msm_source_tracking_info,
  19948. .get = msm_voice_source_tracking_get,
  19949. },
  19950. {
  19951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19953. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  19954. .info = msm_sound_focus_info,
  19955. .get = msm_audio_sound_focus_get,
  19956. .put = msm_audio_sound_focus_put,
  19957. },
  19958. {
  19959. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19961. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  19962. .info = msm_source_tracking_info,
  19963. .get = msm_audio_source_tracking_get,
  19964. },
  19965. {
  19966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19967. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19968. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  19969. .info = msm_sound_focus_info,
  19970. .get = msm_voice_sound_focus_get,
  19971. .put = msm_voice_sound_focus_put,
  19972. },
  19973. {
  19974. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19976. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  19977. .info = msm_source_tracking_info,
  19978. .get = msm_voice_source_tracking_get,
  19979. },
  19980. {
  19981. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19983. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  19984. .info = msm_sound_focus_info,
  19985. .get = msm_audio_sound_focus_get,
  19986. .put = msm_audio_sound_focus_put,
  19987. },
  19988. {
  19989. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19991. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  19992. .info = msm_source_tracking_info,
  19993. .get = msm_audio_source_tracking_get,
  19994. },
  19995. {
  19996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19997. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19998. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  19999. .info = msm_sound_focus_info,
  20000. .get = msm_audio_sound_focus_get,
  20001. .put = msm_audio_sound_focus_put,
  20002. },
  20003. {
  20004. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20006. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  20007. .info = msm_source_tracking_info,
  20008. .get = msm_audio_source_tracking_get,
  20009. },
  20010. {
  20011. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20013. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  20014. .info = msm_doa_tracking_mon_info,
  20015. .get = msm_doa_tracking_mon_get,
  20016. },
  20017. };
  20018. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  20019. struct snd_ctl_elem_value *ucontrol)
  20020. {
  20021. int ret = 0;
  20022. int item;
  20023. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  20024. pr_debug("%s item is %d\n", __func__,
  20025. ucontrol->value.enumerated.item[0]);
  20026. mutex_lock(&routing_lock);
  20027. item = ucontrol->value.enumerated.item[0];
  20028. if (item < e->items) {
  20029. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  20030. __func__, e->shift_l, e->values[item]);
  20031. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  20032. e->values[item] < MSM_BACKEND_DAI_MAX)
  20033. /* Enable feedback TX path */
  20034. ret = afe_spk_prot_feed_back_cfg(
  20035. msm_bedais[e->values[item]].port_id,
  20036. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  20037. else {
  20038. pr_debug("%s values are out of range item %d\n",
  20039. __func__, e->values[item]);
  20040. /* Disable feedback TX path */
  20041. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  20042. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  20043. else
  20044. ret = -EINVAL;
  20045. }
  20046. } else {
  20047. pr_err("%s item value is out of range item\n", __func__);
  20048. ret = -EINVAL;
  20049. }
  20050. mutex_unlock(&routing_lock);
  20051. return ret;
  20052. }
  20053. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  20054. struct snd_ctl_elem_value *ucontrol)
  20055. {
  20056. int ret = 0;
  20057. int item;
  20058. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  20059. pr_debug("%s item is %d\n", __func__,
  20060. ucontrol->value.enumerated.item[0]);
  20061. mutex_lock(&routing_lock);
  20062. item = ucontrol->value.enumerated.item[0];
  20063. if (item < e->items) {
  20064. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  20065. __func__, e->shift_l, e->values[item]);
  20066. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  20067. e->values[item] < MSM_BACKEND_DAI_MAX)
  20068. /* Enable feedback TX path */
  20069. ret = afe_spk_prot_feed_back_cfg(
  20070. msm_bedais[e->values[item]].port_id,
  20071. msm_bedais[e->shift_l].port_id,
  20072. 1, 1, 1);
  20073. else {
  20074. pr_debug("%s values are out of range item %d\n",
  20075. __func__, e->values[item]);
  20076. /* Disable feedback TX path */
  20077. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  20078. ret = afe_spk_prot_feed_back_cfg(0,
  20079. 0, 0, 0, 0);
  20080. else
  20081. ret = -EINVAL;
  20082. }
  20083. } else {
  20084. pr_err("%s item value is out of range item\n", __func__);
  20085. ret = -EINVAL;
  20086. }
  20087. mutex_unlock(&routing_lock);
  20088. return ret;
  20089. }
  20090. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  20091. struct snd_ctl_elem_value *ucontrol)
  20092. {
  20093. pr_debug("%s\n", __func__);
  20094. return 0;
  20095. }
  20096. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  20097. struct snd_ctl_elem_value *ucontrol)
  20098. {
  20099. pr_debug("%s\n", __func__);
  20100. ucontrol->value.enumerated.item[0] = 0;
  20101. return 0;
  20102. }
  20103. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  20104. "ZERO", "SLIM4_TX"
  20105. };
  20106. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  20107. "ZERO", "SLIM4_TX"
  20108. };
  20109. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  20110. "ZERO", "WSA_CDC_DMA_TX_0"
  20111. };
  20112. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  20113. "ZERO", "WSA_CDC_DMA_TX_0"
  20114. };
  20115. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  20116. "ZERO", "SENARY_TX"
  20117. };
  20118. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  20119. "ZERO", "INT5_MI2S_TX"
  20120. };
  20121. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  20122. "ZERO", "INT5_MI2S_TX"
  20123. };
  20124. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  20125. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20126. };
  20127. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  20128. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20129. };
  20130. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  20131. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20132. };
  20133. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  20134. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20135. };
  20136. static const int mi2s_rx_vi_fb_tx_value[] = {
  20137. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  20138. };
  20139. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  20140. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20141. };
  20142. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  20143. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20144. };
  20145. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  20146. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20147. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  20148. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  20149. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  20150. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20151. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  20152. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  20153. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  20154. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20155. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  20156. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  20157. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  20158. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20159. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  20160. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  20161. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  20162. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  20163. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  20164. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  20165. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  20166. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20167. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  20168. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  20169. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  20170. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  20171. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20172. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  20173. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  20174. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  20175. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  20176. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  20177. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20178. spkr_prot_put_vi_lch_port);
  20179. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  20180. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  20181. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20182. spkr_prot_put_vi_rch_port);
  20183. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  20184. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  20185. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20186. spkr_prot_put_vi_lch_port);
  20187. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  20188. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  20189. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20190. spkr_prot_put_vi_rch_port);
  20191. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  20192. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  20193. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  20194. spkr_prot_put_vi_lch_port);
  20195. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  20196. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  20197. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  20198. spkr_prot_put_vi_lch_port);
  20199. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  20200. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  20201. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  20202. spkr_prot_put_vi_rch_port);
  20203. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  20204. /* Frontend AIF */
  20205. /* Widget name equals to Front-End DAI name<Need confirmation>,
  20206. * Stream name must contains substring of front-end dai name
  20207. */
  20208. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  20209. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  20210. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  20211. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  20212. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  20213. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  20214. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  20215. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  20216. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  20217. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  20218. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  20219. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  20220. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  20221. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  20222. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  20223. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  20224. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  20225. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  20226. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  20227. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  20228. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  20229. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  20230. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  20231. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  20232. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  20233. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  20234. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  20235. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  20236. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  20237. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  20238. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  20239. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  20240. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  20241. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  20242. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  20243. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  20244. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  20245. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  20246. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  20247. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  20248. "VoiceMMode1 Playback", 0, 0, 0, 0),
  20249. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  20250. "VoiceMMode1 Capture", 0, 0, 0, 0),
  20251. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  20252. "VoiceMMode2 Playback", 0, 0, 0, 0),
  20253. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  20254. "VoiceMMode2 Capture", 0, 0, 0, 0),
  20255. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  20256. 0, 0, 0, 0),
  20257. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  20258. 0, 0, 0, 0),
  20259. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  20260. 0, 0, 0, 0),
  20261. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  20262. 0, 0, 0, 0),
  20263. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  20264. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  20265. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  20266. 0, 0, 0, 0),
  20267. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  20268. 0, 0, 0, 0),
  20269. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  20270. 0, 0, 0, 0),
  20271. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  20272. 0, 0, 0, 0),
  20273. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  20274. 0, 0, 0, 0),
  20275. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  20276. 0, 0, 0, 0),
  20277. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  20278. 0, 0, 0, 0),
  20279. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  20280. 0, 0, 0, 0),
  20281. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  20282. 0, 0, 0, 0),
  20283. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  20284. 0, 0, 0, 0),
  20285. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  20286. 0, 0, 0, 0),
  20287. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  20288. 0, 0, 0, 0),
  20289. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  20290. 0, 0, 0, 0),
  20291. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  20292. 0, 0, 0, 0),
  20293. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  20294. 0, 0, 0, 0),
  20295. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  20296. 0, 0, 0, 0),
  20297. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  20298. 0, 0, 0, 0),
  20299. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  20300. 0, 0, 0, 0),
  20301. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  20302. 0, 0, 0, 0),
  20303. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  20304. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  20305. 0, 0, 0, 0),
  20306. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  20307. "INT0 MI2S_RX Hostless Playback",
  20308. 0, 0, 0, 0),
  20309. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  20310. "INT4 MI2S_RX Hostless Playback",
  20311. 0, 0, 0, 0),
  20312. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  20313. "Primary MI2S_RX Hostless Playback",
  20314. 0, 0, 0, 0),
  20315. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  20316. "Secondary MI2S_RX Hostless Playback",
  20317. 0, 0, 0, 0),
  20318. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  20319. "Tertiary MI2S_RX Hostless Playback",
  20320. 0, 0, 0, 0),
  20321. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  20322. "Quaternary MI2S_RX Hostless Playback",
  20323. 0, 0, 0, 0),
  20324. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  20325. "Quinary MI2S_RX Hostless Playback",
  20326. 0, 0, 0, 0),
  20327. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  20328. "Senary MI2S_RX Hostless Playback",
  20329. 0, 0, 0, 0),
  20330. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  20331. 0, 0, 0, 0),
  20332. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  20333. 0, 0, 0, 0),
  20334. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  20335. 0, 0, 0, 0),
  20336. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  20337. 0, 0, 0, 0),
  20338. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  20339. 0, 0, 0, 0),
  20340. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  20341. "INT3 MI2S_TX Hostless Capture",
  20342. 0, 0, 0, 0),
  20343. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  20344. "Tertiary MI2S_TX Hostless Capture",
  20345. 0, 0, 0, 0),
  20346. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  20347. "Secondary MI2S_TX Hostless Capture",
  20348. 0, 0, 0, 0),
  20349. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  20350. "Primary MI2S_TX Hostless Capture",
  20351. 0, 0, 0, 0),
  20352. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  20353. 0, 0, 0, 0),
  20354. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  20355. 0, 0, 0, 0),
  20356. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  20357. "Quaternary MI2S_TX Hostless Capture",
  20358. 0, 0, 0, 0),
  20359. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  20360. "Quinary MI2S_TX Hostless Capture",
  20361. 0, 0, 0, 0),
  20362. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  20363. "Senary MI2S_TX Hostless Capture",
  20364. 0, 0, 0, 0),
  20365. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  20366. "Primary TDM0 Hostless Playback",
  20367. 0, 0, 0, 0),
  20368. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  20369. "Primary TDM0 Hostless Capture",
  20370. 0, 0, 0, 0),
  20371. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  20372. "Primary TDM1 Hostless Playback",
  20373. 0, 0, 0, 0),
  20374. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  20375. "Primary TDM1 Hostless Capture",
  20376. 0, 0, 0, 0),
  20377. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  20378. "Primary TDM2 Hostless Playback",
  20379. 0, 0, 0, 0),
  20380. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  20381. "Primary TDM2 Hostless Capture",
  20382. 0, 0, 0, 0),
  20383. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  20384. "Primary TDM3 Hostless Playback",
  20385. 0, 0, 0, 0),
  20386. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  20387. "Primary TDM3 Hostless Capture",
  20388. 0, 0, 0, 0),
  20389. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  20390. "Primary TDM4 Hostless Playback",
  20391. 0, 0, 0, 0),
  20392. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  20393. "Primary TDM4 Hostless Capture",
  20394. 0, 0, 0, 0),
  20395. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  20396. "Primary TDM5 Hostless Playback",
  20397. 0, 0, 0, 0),
  20398. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  20399. "Primary TDM5 Hostless Capture",
  20400. 0, 0, 0, 0),
  20401. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  20402. "Primary TDM6 Hostless Playback",
  20403. 0, 0, 0, 0),
  20404. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  20405. "Primary TDM6 Hostless Capture",
  20406. 0, 0, 0, 0),
  20407. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  20408. "Primary TDM7 Hostless Playback",
  20409. 0, 0, 0, 0),
  20410. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  20411. "Primary TDM7 Hostless Capture",
  20412. 0, 0, 0, 0),
  20413. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  20414. "Secondary TDM0 Hostless Playback",
  20415. 0, 0, 0, 0),
  20416. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  20417. "Secondary TDM0 Hostless Capture",
  20418. 0, 0, 0, 0),
  20419. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  20420. "Secondary TDM1 Hostless Playback",
  20421. 0, 0, 0, 0),
  20422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  20423. "Secondary TDM1 Hostless Capture",
  20424. 0, 0, 0, 0),
  20425. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  20426. "Secondary TDM2 Hostless Playback",
  20427. 0, 0, 0, 0),
  20428. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  20429. "Secondary TDM2 Hostless Capture",
  20430. 0, 0, 0, 0),
  20431. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  20432. "Secondary TDM3 Hostless Playback",
  20433. 0, 0, 0, 0),
  20434. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  20435. "Secondary TDM3 Hostless Capture",
  20436. 0, 0, 0, 0),
  20437. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  20438. "Secondary TDM4 Hostless Playback",
  20439. 0, 0, 0, 0),
  20440. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  20441. "Secondary TDM4 Hostless Capture",
  20442. 0, 0, 0, 0),
  20443. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  20444. "Secondary TDM5 Hostless Playback",
  20445. 0, 0, 0, 0),
  20446. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  20447. "Secondary TDM5 Hostless Capture",
  20448. 0, 0, 0, 0),
  20449. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  20450. "Secondary TDM6 Hostless Playback",
  20451. 0, 0, 0, 0),
  20452. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  20453. "Secondary TDM6 Hostless Capture",
  20454. 0, 0, 0, 0),
  20455. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  20456. "Secondary TDM7 Hostless Playback",
  20457. 0, 0, 0, 0),
  20458. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  20459. "Secondary TDM7 Hostless Capture",
  20460. 0, 0, 0, 0),
  20461. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  20462. "Tertiary TDM0 Hostless Playback",
  20463. 0, 0, 0, 0),
  20464. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  20465. "Tertiary TDM0 Hostless Capture",
  20466. 0, 0, 0, 0),
  20467. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  20468. "Tertiary TDM1 Hostless Playback",
  20469. 0, 0, 0, 0),
  20470. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  20471. "Tertiary TDM1 Hostless Capture",
  20472. 0, 0, 0, 0),
  20473. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  20474. "Tertiary TDM2 Hostless Playback",
  20475. 0, 0, 0, 0),
  20476. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  20477. "Tertiary TDM2 Hostless Capture",
  20478. 0, 0, 0, 0),
  20479. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  20480. "Tertiary TDM3 Hostless Playback",
  20481. 0, 0, 0, 0),
  20482. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  20483. "Tertiary TDM3 Hostless Capture",
  20484. 0, 0, 0, 0),
  20485. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  20486. "Tertiary TDM4 Hostless Playback",
  20487. 0, 0, 0, 0),
  20488. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  20489. "Tertiary TDM4 Hostless Capture",
  20490. 0, 0, 0, 0),
  20491. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  20492. "Tertiary TDM5 Hostless Playback",
  20493. 0, 0, 0, 0),
  20494. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  20495. "Tertiary TDM5 Hostless Capture",
  20496. 0, 0, 0, 0),
  20497. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  20498. "Tertiary TDM6 Hostless Playback",
  20499. 0, 0, 0, 0),
  20500. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  20501. "Tertiary TDM6 Hostless Capture",
  20502. 0, 0, 0, 0),
  20503. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  20504. "Tertiary TDM7 Hostless Playback",
  20505. 0, 0, 0, 0),
  20506. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  20507. "Tertiary TDM7 Hostless Capture",
  20508. 0, 0, 0, 0),
  20509. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  20510. "Quaternary TDM0 Hostless Playback",
  20511. 0, 0, 0, 0),
  20512. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  20513. "Quaternary TDM0 Hostless Capture",
  20514. 0, 0, 0, 0),
  20515. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  20516. "Quaternary TDM1 Hostless Playback",
  20517. 0, 0, 0, 0),
  20518. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  20519. "Quaternary TDM1 Hostless Capture",
  20520. 0, 0, 0, 0),
  20521. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  20522. "Quaternary TDM2 Hostless Playback",
  20523. 0, 0, 0, 0),
  20524. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  20525. "Quaternary TDM2 Hostless Capture",
  20526. 0, 0, 0, 0),
  20527. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  20528. "Quaternary TDM3 Hostless Playback",
  20529. 0, 0, 0, 0),
  20530. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  20531. "Quaternary TDM3 Hostless Capture",
  20532. 0, 0, 0, 0),
  20533. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  20534. "Quaternary TDM4 Hostless Playback",
  20535. 0, 0, 0, 0),
  20536. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  20537. "Quaternary TDM4 Hostless Capture",
  20538. 0, 0, 0, 0),
  20539. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  20540. "Quaternary TDM5 Hostless Playback",
  20541. 0, 0, 0, 0),
  20542. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  20543. "Quaternary TDM5 Hostless Capture",
  20544. 0, 0, 0, 0),
  20545. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  20546. "Quaternary TDM6 Hostless Playback",
  20547. 0, 0, 0, 0),
  20548. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  20549. "Quaternary TDM6 Hostless Capture",
  20550. 0, 0, 0, 0),
  20551. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  20552. "Quaternary TDM7 Hostless Playback",
  20553. 0, 0, 0, 0),
  20554. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  20555. "Quaternary TDM7 Hostless Capture",
  20556. 0, 0, 0, 0),
  20557. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  20558. "Quinary TDM0 Hostless Playback",
  20559. 0, 0, 0, 0),
  20560. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  20561. "Quinary TDM0 Hostless Capture",
  20562. 0, 0, 0, 0),
  20563. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  20564. "Quinary TDM1 Hostless Playback",
  20565. 0, 0, 0, 0),
  20566. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  20567. "Quinary TDM1 Hostless Capture",
  20568. 0, 0, 0, 0),
  20569. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  20570. "Quinary TDM2 Hostless Playback",
  20571. 0, 0, 0, 0),
  20572. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  20573. "Quinary TDM2 Hostless Capture",
  20574. 0, 0, 0, 0),
  20575. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  20576. "Quinary TDM3 Hostless Playback",
  20577. 0, 0, 0, 0),
  20578. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  20579. "Quinary TDM3 Hostless Capture",
  20580. 0, 0, 0, 0),
  20581. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  20582. "Quinary TDM4 Hostless Playback",
  20583. 0, 0, 0, 0),
  20584. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  20585. "Quinary TDM4 Hostless Capture",
  20586. 0, 0, 0, 0),
  20587. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  20588. "Quinary TDM5 Hostless Playback",
  20589. 0, 0, 0, 0),
  20590. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  20591. "Quinary TDM5 Hostless Capture",
  20592. 0, 0, 0, 0),
  20593. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  20594. "Quinary TDM6 Hostless Playback",
  20595. 0, 0, 0, 0),
  20596. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  20597. "Quinary TDM6 Hostless Capture",
  20598. 0, 0, 0, 0),
  20599. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  20600. "Quinary TDM7 Hostless Playback",
  20601. 0, 0, 0, 0),
  20602. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  20603. "Quinary TDM7 Hostless Capture",
  20604. 0, 0, 0, 0),
  20605. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  20606. "Senary TDM0 Hostless Playback",
  20607. 0, 0, 0, 0),
  20608. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  20609. "Senary TDM0 Hostless Capture",
  20610. 0, 0, 0, 0),
  20611. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  20612. "Senary TDM1 Hostless Playback",
  20613. 0, 0, 0, 0),
  20614. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  20615. "Senary TDM1 Hostless Capture",
  20616. 0, 0, 0, 0),
  20617. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  20618. "Senary TDM2 Hostless Playback",
  20619. 0, 0, 0, 0),
  20620. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  20621. "Senary TDM2 Hostless Capture",
  20622. 0, 0, 0, 0),
  20623. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  20624. "Senary TDM3 Hostless Playback",
  20625. 0, 0, 0, 0),
  20626. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  20627. "Senary TDM3 Hostless Capture",
  20628. 0, 0, 0, 0),
  20629. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  20630. "Senary TDM4 Hostless Playback",
  20631. 0, 0, 0, 0),
  20632. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  20633. "Senary TDM4 Hostless Capture",
  20634. 0, 0, 0, 0),
  20635. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  20636. "Senary TDM5 Hostless Playback",
  20637. 0, 0, 0, 0),
  20638. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  20639. "Senary TDM5 Hostless Capture",
  20640. 0, 0, 0, 0),
  20641. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  20642. "Senary TDM6 Hostless Playback",
  20643. 0, 0, 0, 0),
  20644. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  20645. "Senary TDM6 Hostless Capture",
  20646. 0, 0, 0, 0),
  20647. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  20648. "Senary TDM7 Hostless Playback",
  20649. 0, 0, 0, 0),
  20650. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  20651. "Senary TDM7 Hostless Capture",
  20652. 0, 0, 0, 0),
  20653. /* LSM */
  20654. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  20655. 0, 0, 0, 0),
  20656. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  20657. 0, 0, 0, 0),
  20658. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  20659. 0, 0, 0, 0),
  20660. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  20661. 0, 0, 0, 0),
  20662. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  20663. 0, 0, 0, 0),
  20664. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  20665. 0, 0, 0, 0),
  20666. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  20667. 0, 0, 0, 0),
  20668. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  20669. 0, 0, 0, 0),
  20670. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  20671. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  20672. /* Backend AIF */
  20673. /* Stream name equals to backend dai link stream name */
  20674. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  20675. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  20676. 0, 0, 0, 0),
  20677. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  20678. 0, 0, 0, 0),
  20679. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  20680. 0, 0, 0, 0),
  20681. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  20682. 0, 0, 0, 0),
  20683. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  20684. 0, 0, 0, 0),
  20685. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  20686. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  20687. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  20688. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  20689. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  20690. 0, 0, 0, 0),
  20691. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  20692. 0, 0, 0, 0),
  20693. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  20694. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  20695. 0, 0, 0, 0),
  20696. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  20697. 0, 0, 0, 0),
  20698. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  20699. 0, 0, 0, 0),
  20700. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  20701. "Secondary MI2S Playback SD1",
  20702. 0, 0, 0, 0),
  20703. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  20704. 0, 0, 0, 0),
  20705. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  20706. 0, 0, 0, 0),
  20707. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  20708. 0, 0, 0, 0),
  20709. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  20710. 0, 0, 0, 0),
  20711. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  20712. 0, 0, 0, 0),
  20713. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  20714. 0, 0, 0, 0),
  20715. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  20716. 0, 0, 0, 0),
  20717. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  20718. 0, 0, 0, 0),
  20719. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  20720. 0, 0, 0, 0),
  20721. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  20722. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  20723. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  20724. 0, 0, 0, 0),
  20725. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  20726. 0, 0, 0, 0),
  20727. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  20728. 0, 0, 0, 0),
  20729. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  20730. 0, 0, 0, 0),
  20731. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  20732. 0, 0, 0, 0),
  20733. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  20734. 0, 0, 0, 0),
  20735. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  20736. 0, 0, 0, 0),
  20737. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  20738. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  20739. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  20740. 0, 0, 0, 0),
  20741. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  20742. 0, 0, 0, 0),
  20743. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  20744. 0, 0, 0, 0),
  20745. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  20746. 0, 0, 0, 0),
  20747. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  20748. 0, 0, 0, 0),
  20749. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  20750. 0, 0, 0, 0),
  20751. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  20752. 0, 0, 0, 0),
  20753. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  20754. 0, 0, 0, 0),
  20755. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  20756. 0, 0, 0, 0),
  20757. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  20758. 0, 0, 0, 0),
  20759. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  20760. 0, 0, 0, 0),
  20761. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  20762. 0, 0, 0, 0),
  20763. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  20764. 0, 0, 0, 0),
  20765. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  20766. 0, 0, 0, 0),
  20767. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  20768. 0, 0, 0, 0),
  20769. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  20770. 0, 0, 0, 0),
  20771. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  20772. 0, 0, 0, 0),
  20773. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  20774. 0, 0, 0, 0),
  20775. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  20776. 0, 0, 0, 0),
  20777. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  20778. 0, 0, 0, 0),
  20779. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  20780. 0, 0, 0, 0),
  20781. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  20782. 0, 0, 0, 0),
  20783. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  20784. 0, 0, 0, 0),
  20785. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  20786. 0, 0, 0, 0),
  20787. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  20788. 0, 0, 0, 0),
  20789. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  20790. 0, 0, 0, 0),
  20791. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  20792. 0, 0, 0, 0),
  20793. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  20794. 0, 0, 0, 0),
  20795. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  20796. 0, 0, 0, 0),
  20797. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  20798. 0, 0, 0, 0),
  20799. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  20800. 0, 0, 0, 0),
  20801. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  20802. 0, 0, 0, 0),
  20803. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  20804. 0, 0, 0, 0),
  20805. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  20806. 0, 0, 0, 0),
  20807. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  20808. 0, 0, 0, 0),
  20809. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  20810. 0, 0, 0, 0),
  20811. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  20812. 0, 0, 0, 0),
  20813. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  20814. 0, 0, 0, 0),
  20815. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  20816. 0, 0, 0, 0),
  20817. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  20818. 0, 0, 0, 0),
  20819. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  20820. 0, 0, 0, 0),
  20821. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  20822. 0, 0, 0, 0),
  20823. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  20824. 0, 0, 0, 0),
  20825. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  20826. 0, 0, 0, 0),
  20827. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  20828. 0, 0, 0, 0),
  20829. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  20830. 0, 0, 0, 0),
  20831. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  20832. 0, 0, 0, 0),
  20833. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  20834. 0, 0, 0, 0),
  20835. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  20836. 0, 0, 0, 0),
  20837. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  20838. 0, 0, 0, 0),
  20839. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  20840. 0, 0, 0, 0),
  20841. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  20842. 0, 0, 0, 0),
  20843. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  20844. 0, 0, 0, 0),
  20845. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  20846. 0, 0, 0, 0),
  20847. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  20848. 0, 0, 0, 0),
  20849. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  20850. 0, 0, 0, 0),
  20851. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  20852. 0, 0, 0, 0),
  20853. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  20854. 0, 0, 0, 0),
  20855. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  20856. 0, 0, 0, 0),
  20857. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  20858. 0, 0, 0, 0),
  20859. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  20860. 0, 0, 0, 0),
  20861. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  20862. 0, 0, 0, 0),
  20863. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  20864. 0, 0, 0, 0),
  20865. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  20866. 0, 0, 0, 0),
  20867. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  20868. 0, 0, 0, 0),
  20869. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  20870. 0, 0, 0, 0),
  20871. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  20872. 0, 0, 0, 0),
  20873. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  20874. 0, 0, 0, 0),
  20875. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  20876. 0, 0, 0, 0),
  20877. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  20878. 0, 0, 0, 0),
  20879. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  20880. 0, 0, 0, 0),
  20881. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  20882. 0, 0, 0, 0),
  20883. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  20884. 0, 0, 0, 0),
  20885. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  20886. 0, 0, 0, 0),
  20887. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  20888. 0, 0, 0, 0),
  20889. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  20890. 0, 0, 0, 0),
  20891. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  20892. 0, 0, 0, 0),
  20893. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  20894. 0, 0, 0, 0),
  20895. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  20896. 0, 0, 0, 0),
  20897. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  20898. 0, 0, 0, 0),
  20899. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  20900. 0, 0, 0, 0),
  20901. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  20902. 0, 0, 0, 0),
  20903. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  20904. 0, 0, 0, 0),
  20905. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  20906. 0, 0, 0, 0),
  20907. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  20908. 0, 0, 0, 0),
  20909. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  20910. 0, 0, 0, 0),
  20911. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  20912. 0, 0, 0, 0),
  20913. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  20914. 0, 0, 0, 0),
  20915. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  20916. 0, 0, 0, 0),
  20917. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  20918. 0, 0, 0, 0),
  20919. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  20920. 0, 0, 0, 0),
  20921. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  20922. 0, 0, 0, 0),
  20923. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  20924. 0, 0, 0, 0),
  20925. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  20926. 0, 0, 0, 0),
  20927. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  20928. 0, 0, 0, 0),
  20929. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  20930. 0, 0, 0, 0),
  20931. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  20932. 0, 0, 0, 0),
  20933. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  20934. 0, 0, 0, 0),
  20935. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  20936. 0, 0, 0, 0),
  20937. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  20938. 0, 0, 0, 0),
  20939. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  20940. 0, 0, 0, 0),
  20941. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  20942. 0, 0, 0, 0),
  20943. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  20944. 0, 0, 0, 0),
  20945. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  20946. 0, 0, 0, 0),
  20947. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  20948. 0, 0, 0, 0),
  20949. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  20950. 0, 0, 0, 0),
  20951. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  20952. 0, 0, 0, 0),
  20953. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  20954. 0, 0, 0, 0),
  20955. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  20956. 0, 0, 0, 0),
  20957. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  20958. 0, 0, 0, 0),
  20959. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  20960. 0, 0, 0, 0),
  20961. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  20962. 0, 0, 0, 0),
  20963. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  20964. 0, 0, 0, 0),
  20965. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  20966. 0, 0, 0, 0),
  20967. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  20968. 0, 0, 0, 0),
  20969. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  20970. 0, 0, 0, 0),
  20971. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  20972. 0, 0, 0, 0),
  20973. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  20974. 0, 0, 0, 0),
  20975. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  20976. 0, 0, 0, 0),
  20977. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  20978. 0, 0, 0, 0),
  20979. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  20980. 0, 0, 0, 0),
  20981. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  20982. 0, 0, 0, 0),
  20983. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  20984. 0, 0, 0, 0),
  20985. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  20986. 0, 0, 0, 0),
  20987. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  20988. 0, 0, 0, 0),
  20989. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  20990. 0, 0, 0, 0),
  20991. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  20992. 0, 0, 0, 0),
  20993. /* incall */
  20994. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  20995. 0, 0, 0, 0),
  20996. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  20997. 0, 0, 0, 0),
  20998. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  20999. 0, 0, 0, 0),
  21000. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  21001. 0, 0, 0, 0),
  21002. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  21003. 0, 0, 0, 0),
  21004. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  21005. 0, 0, 0, 0),
  21006. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  21007. 0, 0, 0, 0),
  21008. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  21009. 0, 0, 0, 0),
  21010. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  21011. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  21012. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  21013. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  21014. 0, 0, 0, 0),
  21015. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  21016. 0, 0, 0, 0),
  21017. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  21018. 0, 0, 0, 0),
  21019. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  21020. 0, 0, 0, 0),
  21021. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  21022. 0, 0, 0, 0),
  21023. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  21024. 0, 0, 0, 0),
  21025. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  21026. 0, 0, 0, 0),
  21027. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  21028. 0, 0, 0, 0),
  21029. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  21030. 0, 0, 0, 0),
  21031. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  21032. 0, 0, 0, 0),
  21033. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  21034. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  21035. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  21036. 0, 0, 0, 0),
  21037. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  21038. 0, 0, 0, 0),
  21039. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  21040. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  21041. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  21042. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  21043. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  21044. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  21045. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  21046. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  21047. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  21048. /* In- call recording */
  21049. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  21050. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  21051. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  21052. 0, 0, 0, 0),
  21053. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  21054. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  21055. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  21056. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  21057. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  21058. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  21059. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  21060. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  21061. /* Switch Definitions */
  21062. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  21063. &slim_fm_switch_mixer_controls),
  21064. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  21065. &slim1_fm_switch_mixer_controls),
  21066. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  21067. &slim3_fm_switch_mixer_controls),
  21068. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  21069. &slim4_fm_switch_mixer_controls),
  21070. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  21071. &slim6_fm_switch_mixer_controls),
  21072. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21073. &pcm_rx_switch_mixer_controls),
  21074. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21075. &int0_mi2s_rx_switch_mixer_controls),
  21076. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21077. &int4_mi2s_rx_switch_mixer_controls),
  21078. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21079. &pri_mi2s_rx_switch_mixer_controls),
  21080. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21081. &sec_mi2s_rx_switch_mixer_controls),
  21082. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21083. &tert_mi2s_rx_switch_mixer_controls),
  21084. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21085. &quat_mi2s_rx_switch_mixer_controls),
  21086. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21087. &quin_mi2s_rx_switch_mixer_controls),
  21088. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  21089. &sco_slim7_switch_mixer_controls),
  21090. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21091. &sen_mi2s_rx_switch_mixer_controls),
  21092. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21093. &hfp_pri_aux_switch_mixer_controls),
  21094. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21095. &hfp_aux_switch_mixer_controls),
  21096. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  21097. &hfp_int_switch_mixer_controls),
  21098. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21099. &hfp_slim7_switch_mixer_controls),
  21100. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  21101. &usb_switch_mixer_controls),
  21102. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21103. &a2dp_slim7_switch_mixer_controls),
  21104. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21105. &cdc_dma_wsa_switch_mixer_controls),
  21106. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21107. &cdc_dma_rx_switch_mixer_controls),
  21108. /* Mixer definitions */
  21109. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21110. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  21111. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21112. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  21113. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21114. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  21115. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21116. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  21117. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21118. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  21119. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21120. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  21121. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21122. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  21123. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  21124. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  21125. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  21126. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  21127. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  21128. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  21129. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21130. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  21131. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21132. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  21133. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21134. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  21135. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21136. quaternary_mi2s_rx_mixer_controls,
  21137. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  21138. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21139. tertiary_mi2s_rx_mixer_controls,
  21140. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  21141. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21142. secondary_mi2s_rx_mixer_controls,
  21143. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  21144. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21145. secondary_mi2s_rx2_mixer_controls,
  21146. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  21147. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21148. primary_mi2s_rx_mixer_controls,
  21149. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  21150. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21151. int0_mi2s_rx_mixer_controls,
  21152. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  21153. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21154. int4_mi2s_rx_mixer_controls,
  21155. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  21156. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21157. quinary_mi2s_rx_mixer_controls,
  21158. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  21159. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21160. senary_mi2s_rx_mixer_controls,
  21161. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  21162. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21163. pri_tdm_rx_0_mixer_controls,
  21164. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  21165. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21166. pri_tdm_rx_1_mixer_controls,
  21167. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  21168. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21169. pri_tdm_rx_2_mixer_controls,
  21170. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  21171. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21172. pri_tdm_rx_3_mixer_controls,
  21173. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  21174. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21175. pri_tdm_tx_0_mixer_controls,
  21176. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  21177. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21178. sec_tdm_rx_0_mixer_controls,
  21179. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  21180. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21181. sec_tdm_rx_1_mixer_controls,
  21182. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  21183. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21184. sec_tdm_rx_2_mixer_controls,
  21185. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  21186. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21187. sec_tdm_rx_3_mixer_controls,
  21188. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  21189. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21190. sec_tdm_tx_0_mixer_controls,
  21191. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  21192. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21193. tert_tdm_rx_0_mixer_controls,
  21194. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  21195. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21196. tert_tdm_tx_0_mixer_controls,
  21197. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  21198. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21199. tert_tdm_rx_1_mixer_controls,
  21200. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  21201. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21202. tert_tdm_rx_2_mixer_controls,
  21203. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  21204. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21205. tert_tdm_rx_3_mixer_controls,
  21206. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  21207. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21208. tert_tdm_rx_4_mixer_controls,
  21209. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  21210. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21211. quat_tdm_rx_0_mixer_controls,
  21212. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  21213. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21214. quat_tdm_tx_0_mixer_controls,
  21215. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  21216. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21217. quat_tdm_rx_1_mixer_controls,
  21218. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  21219. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21220. quat_tdm_rx_2_mixer_controls,
  21221. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  21222. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21223. quat_tdm_rx_3_mixer_controls,
  21224. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  21225. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21226. quin_tdm_rx_0_mixer_controls,
  21227. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  21228. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21229. quin_tdm_tx_0_mixer_controls,
  21230. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  21231. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21232. quin_tdm_rx_1_mixer_controls,
  21233. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  21234. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21235. quin_tdm_rx_2_mixer_controls,
  21236. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  21237. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21238. quin_tdm_rx_3_mixer_controls,
  21239. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  21240. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21241. sen_tdm_tx_0_mixer_controls,
  21242. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  21243. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21244. sen_tdm_rx_0_mixer_controls,
  21245. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  21246. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21247. sen_tdm_rx_1_mixer_controls,
  21248. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  21249. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21250. sen_tdm_rx_2_mixer_controls,
  21251. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  21252. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21253. sen_tdm_rx_3_mixer_controls,
  21254. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  21255. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21256. wsa_cdc_dma_rx_0_mixer_controls,
  21257. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  21258. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21259. wsa_cdc_dma_rx_1_mixer_controls,
  21260. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  21261. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21262. rx_cdc_dma_rx_0_mixer_controls,
  21263. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  21264. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21265. rx_cdc_dma_rx_1_mixer_controls,
  21266. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  21267. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21268. rx_cdc_dma_rx_2_mixer_controls,
  21269. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  21270. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21271. rx_cdc_dma_rx_3_mixer_controls,
  21272. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  21273. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21274. rx_cdc_dma_rx_4_mixer_controls,
  21275. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  21276. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21277. rx_cdc_dma_rx_5_mixer_controls,
  21278. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  21279. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21280. rx_cdc_dma_rx_6_mixer_controls,
  21281. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  21282. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21283. rx_cdc_dma_rx_7_mixer_controls,
  21284. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  21285. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  21286. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  21287. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  21288. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  21289. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  21290. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  21291. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  21292. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  21293. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  21294. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  21295. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  21296. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  21297. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  21298. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  21299. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  21300. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  21301. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  21302. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  21303. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  21304. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  21305. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  21306. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  21307. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  21308. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  21309. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  21310. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  21311. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  21312. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  21313. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  21314. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  21315. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  21316. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  21317. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  21318. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  21319. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  21320. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  21321. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21322. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  21323. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21324. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  21325. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21326. tert_auxpcm_rx_mixer_controls,
  21327. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  21328. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21329. quat_auxpcm_rx_mixer_controls,
  21330. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  21331. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21332. quin_auxpcm_rx_mixer_controls,
  21333. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  21334. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21335. sen_auxpcm_rx_mixer_controls,
  21336. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  21337. /* incall */
  21338. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  21339. incall_music_delivery_mixer_controls,
  21340. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  21341. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21342. incall_music2_delivery_mixer_controls,
  21343. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  21344. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21345. slimbus_4_rx_mixer_controls,
  21346. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  21347. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21348. slimbus_6_rx_mixer_controls,
  21349. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  21350. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21351. usb_audio_rx_mixer_controls,
  21352. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  21353. /* Voice Mixer */
  21354. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  21355. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  21356. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  21357. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  21358. SND_SOC_NOPM, 0, 0,
  21359. sec_i2s_rx_voice_mixer_controls,
  21360. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  21361. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  21362. SND_SOC_NOPM, 0, 0,
  21363. sec_mi2s_rx_voice_mixer_controls,
  21364. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  21365. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  21366. SND_SOC_NOPM, 0, 0,
  21367. slimbus_rx_voice_mixer_controls,
  21368. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  21369. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  21370. SND_SOC_NOPM, 0, 0,
  21371. bt_sco_rx_voice_mixer_controls,
  21372. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  21373. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  21374. SND_SOC_NOPM, 0, 0,
  21375. afe_pcm_rx_voice_mixer_controls,
  21376. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  21377. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  21378. SND_SOC_NOPM, 0, 0,
  21379. aux_pcm_rx_voice_mixer_controls,
  21380. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  21381. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  21382. SND_SOC_NOPM, 0, 0,
  21383. sec_aux_pcm_rx_voice_mixer_controls,
  21384. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  21385. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  21386. SND_SOC_NOPM, 0, 0,
  21387. tert_aux_pcm_rx_voice_mixer_controls,
  21388. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  21389. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  21390. SND_SOC_NOPM, 0, 0,
  21391. quat_aux_pcm_rx_voice_mixer_controls,
  21392. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  21393. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  21394. SND_SOC_NOPM, 0, 0,
  21395. quin_aux_pcm_rx_voice_mixer_controls,
  21396. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  21397. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  21398. SND_SOC_NOPM, 0, 0,
  21399. sen_aux_pcm_rx_voice_mixer_controls,
  21400. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  21401. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  21402. SND_SOC_NOPM, 0, 0,
  21403. hdmi_rx_voice_mixer_controls,
  21404. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  21405. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  21406. SND_SOC_NOPM, 0, 0,
  21407. mi2s_rx_voice_mixer_controls,
  21408. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  21409. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  21410. SND_SOC_NOPM, 0, 0,
  21411. pri_mi2s_rx_voice_mixer_controls,
  21412. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  21413. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  21414. SND_SOC_NOPM, 0, 0,
  21415. int0_mi2s_rx_voice_mixer_controls,
  21416. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  21417. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  21418. SND_SOC_NOPM, 0, 0,
  21419. int4_mi2s_rx_voice_mixer_controls,
  21420. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  21421. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  21422. SND_SOC_NOPM, 0, 0,
  21423. tert_mi2s_rx_voice_mixer_controls,
  21424. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  21425. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  21426. SND_SOC_NOPM, 0, 0,
  21427. quat_mi2s_rx_voice_mixer_controls,
  21428. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  21429. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  21430. SND_SOC_NOPM, 0, 0,
  21431. quin_mi2s_rx_voice_mixer_controls,
  21432. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  21433. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  21434. SND_SOC_NOPM, 0, 0,
  21435. pri_tdm_rx_0_voice_mixer_controls,
  21436. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  21437. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  21438. SND_SOC_NOPM, 0, 0,
  21439. pri_tdm_rx_1_voice_mixer_controls,
  21440. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  21441. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  21442. SND_SOC_NOPM, 0, 0,
  21443. pri_tdm_rx_2_voice_mixer_controls,
  21444. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  21445. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  21446. SND_SOC_NOPM, 0, 0,
  21447. pri_tdm_rx_3_voice_mixer_controls,
  21448. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  21449. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  21450. SND_SOC_NOPM, 0, 0,
  21451. sen_mi2s_rx_voice_mixer_controls,
  21452. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  21453. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  21454. SND_SOC_NOPM, 0, 0,
  21455. quat_tdm_rx_2_voice_mixer_controls,
  21456. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  21457. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  21458. SND_SOC_NOPM, 0, 0,
  21459. wsa_cdc_dma_rx_0_voice_mixer_controls,
  21460. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  21461. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  21462. SND_SOC_NOPM, 0, 0,
  21463. rx_cdc_dma_rx_0_voice_mixer_controls,
  21464. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  21465. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  21466. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  21467. ARRAY_SIZE(tx_voip_mixer_controls)),
  21468. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  21469. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  21470. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  21471. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  21472. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  21473. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  21474. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21475. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  21476. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21477. int_bt_a2dp_rx_mixer_controls,
  21478. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  21479. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21480. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  21481. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21482. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  21483. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21484. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  21485. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21486. tx_voice2_stub_mixer_controls,
  21487. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  21488. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21489. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  21490. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  21491. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  21492. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  21493. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  21494. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21495. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  21496. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  21497. SND_SOC_NOPM, 0, 0,
  21498. slimbus_6_rx_voice_mixer_controls,
  21499. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  21500. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21501. slimbus_7_rx_voice_mixer_controls,
  21502. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  21503. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21504. slimbus_8_rx_voice_mixer_controls,
  21505. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  21506. /* port mixer */
  21507. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  21508. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  21509. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  21510. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  21511. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  21512. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  21513. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  21514. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  21515. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  21516. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  21517. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  21518. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  21519. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  21520. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  21521. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  21522. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  21523. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  21524. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  21525. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  21526. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  21527. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  21528. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21529. sbus_1_rx_port_mixer_controls,
  21530. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  21531. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21532. bt_sco_rx_port_mixer_controls,
  21533. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  21534. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  21535. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  21536. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  21537. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  21538. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  21539. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  21540. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  21541. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  21542. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  21543. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  21544. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  21545. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  21546. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  21547. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  21548. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  21549. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  21550. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  21551. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  21552. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  21553. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  21554. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  21555. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21556. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  21557. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21558. primary_mi2s_rx_port_mixer_controls,
  21559. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  21560. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21561. sec_mi2s_rx_port_mixer_controls,
  21562. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  21563. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21564. tert_mi2s_rx_port_mixer_controls,
  21565. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  21566. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21567. quat_mi2s_rx_port_mixer_controls,
  21568. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  21569. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21570. quin_mi2s_rx_port_mixer_controls,
  21571. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  21572. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21573. sen_mi2s_rx_port_mixer_controls,
  21574. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  21575. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21576. pri_tdm_rx_0_port_mixer_controls,
  21577. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  21578. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21579. pri_tdm_rx_1_port_mixer_controls,
  21580. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  21581. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21582. pri_tdm_rx_2_port_mixer_controls,
  21583. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  21584. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21585. pri_tdm_rx_3_port_mixer_controls,
  21586. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  21587. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21588. sec_tdm_rx_0_port_mixer_controls,
  21589. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  21590. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21591. sec_tdm_rx_1_port_mixer_controls,
  21592. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  21593. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21594. sec_tdm_rx_2_port_mixer_controls,
  21595. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  21596. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21597. sec_tdm_rx_3_port_mixer_controls,
  21598. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  21599. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21600. sec_tdm_rx_7_port_mixer_controls,
  21601. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  21602. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21603. tert_tdm_rx_0_port_mixer_controls,
  21604. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  21605. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21606. tert_tdm_rx_1_port_mixer_controls,
  21607. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  21608. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21609. tert_tdm_rx_2_port_mixer_controls,
  21610. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  21611. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21612. tert_tdm_rx_3_port_mixer_controls,
  21613. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  21614. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21615. quat_tdm_rx_0_port_mixer_controls,
  21616. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  21617. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21618. quat_tdm_rx_1_port_mixer_controls,
  21619. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  21620. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21621. quat_tdm_rx_2_port_mixer_controls,
  21622. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  21623. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21624. quat_tdm_rx_3_port_mixer_controls,
  21625. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  21626. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21627. quat_tdm_rx_7_port_mixer_controls,
  21628. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  21629. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21630. quin_tdm_rx_0_port_mixer_controls,
  21631. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  21632. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21633. quin_tdm_rx_1_port_mixer_controls,
  21634. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  21635. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21636. quin_tdm_rx_2_port_mixer_controls,
  21637. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  21638. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21639. quin_tdm_rx_3_port_mixer_controls,
  21640. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  21641. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21642. quin_tdm_rx_7_port_mixer_controls,
  21643. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  21644. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21645. sen_tdm_rx_0_port_mixer_controls,
  21646. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  21647. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21648. sen_tdm_rx_1_port_mixer_controls,
  21649. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  21650. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21651. sen_tdm_rx_2_port_mixer_controls,
  21652. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  21653. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21654. sen_tdm_rx_3_port_mixer_controls,
  21655. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  21656. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21657. int0_mi2s_rx_port_mixer_controls,
  21658. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  21659. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21660. int4_mi2s_rx_port_mixer_controls,
  21661. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  21662. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21663. wsa_cdc_dma_rx_0_port_mixer_controls,
  21664. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  21665. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21666. rx_cdc_dma_rx_0_port_mixer_controls,
  21667. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  21668. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  21669. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  21670. ARRAY_SIZE(tx_qchat_mixer_controls)),
  21671. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  21672. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  21673. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  21674. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  21675. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  21676. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  21677. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  21678. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  21679. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  21680. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  21681. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  21682. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  21683. /* lsm mixer definitions */
  21684. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  21685. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  21686. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  21687. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  21688. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  21689. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  21690. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  21691. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  21692. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  21693. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  21694. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  21695. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  21696. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  21697. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  21698. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  21699. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  21700. /* Virtual Pins to force backends ON atm */
  21701. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  21702. SND_SOC_DAPM_INPUT("BE_IN"),
  21703. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21704. &slim0_rx_vi_fb_lch_mux),
  21705. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21706. &slim0_rx_vi_fb_rch_mux),
  21707. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21708. &wsa_rx_0_vi_fb_lch_mux),
  21709. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21710. &wsa_rx_0_vi_fb_rch_mux),
  21711. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  21712. &mi2s_rx_vi_fb_mux),
  21713. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21714. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  21715. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21716. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  21717. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  21718. &voc_ext_ec_mux),
  21719. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  21720. &ext_ec_ref_mux_ul1),
  21721. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  21722. &ext_ec_ref_mux_ul2),
  21723. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  21724. &ext_ec_ref_mux_ul3),
  21725. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  21726. &ext_ec_ref_mux_ul4),
  21727. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  21728. &ext_ec_ref_mux_ul5),
  21729. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  21730. &ext_ec_ref_mux_ul6),
  21731. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  21732. &ext_ec_ref_mux_ul8),
  21733. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  21734. &ext_ec_ref_mux_ul9),
  21735. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  21736. &ext_ec_ref_mux_ul10),
  21737. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  21738. &ext_ec_ref_mux_ul16),
  21739. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  21740. &ext_ec_ref_mux_ul17),
  21741. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  21742. &ext_ec_ref_mux_ul18),
  21743. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  21744. &ext_ec_ref_mux_ul19),
  21745. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  21746. &ext_ec_ref_mux_ul28),
  21747. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  21748. &ext_ec_ref_mux_ul29),
  21749. };
  21750. static const struct snd_soc_dapm_route intercon[] = {
  21751. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21752. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21753. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21754. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21755. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21756. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21757. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21758. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21759. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21760. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21761. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21762. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21763. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21764. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21765. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21766. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21767. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21768. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  21769. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21770. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21771. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21772. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21773. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21774. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21775. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21776. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21777. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21778. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21779. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21780. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21781. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21782. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21783. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21784. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21785. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21786. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  21787. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21788. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21789. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21790. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21791. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21792. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21793. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21794. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21795. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21796. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21797. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21798. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21799. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21800. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21801. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21802. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21803. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21804. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  21805. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21806. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21807. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21808. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21809. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21810. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21811. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21812. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21813. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21814. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21815. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21816. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21817. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21818. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21819. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21820. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21821. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21822. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  21823. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21824. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21825. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21826. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21827. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21828. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21829. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21830. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21831. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21832. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21833. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21834. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21835. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21836. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21837. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21838. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21839. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21840. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  21841. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21842. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21843. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21844. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21845. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21846. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21847. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21848. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21849. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21850. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21851. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21852. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21853. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21854. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21855. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21856. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21857. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21858. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  21859. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21860. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21861. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21862. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21863. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21864. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21865. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21866. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21867. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21868. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21869. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21870. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21871. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21872. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21873. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21874. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21875. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21876. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  21877. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21878. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21879. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21880. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21881. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21882. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21883. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21884. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21885. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21886. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21887. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21888. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21889. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21890. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21891. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21892. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21893. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21894. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  21895. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21896. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21897. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21898. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21899. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21900. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21901. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21902. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21903. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21904. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21905. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21906. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21907. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21908. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21909. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21910. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21911. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21912. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  21913. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21914. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21915. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21916. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21917. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21918. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21919. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21920. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21921. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21922. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21923. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21924. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21925. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21926. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21927. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21928. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21929. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21930. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  21931. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21932. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21933. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21934. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21935. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21936. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21937. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21938. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21939. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21940. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21941. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21942. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21943. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21944. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21945. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21946. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21947. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21948. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  21949. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21950. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21951. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21952. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21953. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21954. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21955. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21956. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21957. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21958. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21959. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21960. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21961. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21962. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21963. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21964. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21965. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21966. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  21967. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21968. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21969. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21970. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21971. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21972. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21973. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21974. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21975. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21976. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21977. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21978. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21979. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21980. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21981. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21982. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21983. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21984. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  21985. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21986. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21987. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21988. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21989. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21990. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21991. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21992. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21993. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21994. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21995. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21996. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21997. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21998. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21999. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22000. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22001. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22002. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  22003. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22004. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22005. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22006. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22007. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22008. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22009. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22010. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22011. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22012. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22013. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22014. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22015. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22016. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22017. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22018. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22019. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22020. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  22021. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  22022. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  22023. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  22024. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  22025. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  22026. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  22027. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  22028. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  22029. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  22030. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  22031. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  22032. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  22033. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  22034. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  22035. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  22036. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  22037. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  22038. {"HDMI", NULL, "HDMI Mixer"},
  22039. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  22040. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  22041. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  22042. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  22043. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  22044. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  22045. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  22046. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  22047. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  22048. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  22049. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  22050. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  22051. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  22052. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  22053. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  22054. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  22055. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  22056. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  22057. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  22058. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  22059. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  22060. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  22061. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  22062. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  22063. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  22064. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  22065. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  22066. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  22067. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  22068. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  22069. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  22070. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  22071. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  22072. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  22073. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  22074. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  22075. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22076. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22077. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22078. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22079. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22080. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22081. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22082. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22083. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22084. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22085. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22086. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22087. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22088. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22089. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22090. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22091. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22092. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  22093. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22094. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22095. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22096. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22097. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22098. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22099. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22100. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22101. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22102. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22103. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22104. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22105. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22106. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22107. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22108. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22109. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22110. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  22111. /* incall */
  22112. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  22113. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  22114. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  22115. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  22116. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  22117. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22118. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22119. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22120. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22121. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  22122. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22123. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22124. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22125. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22126. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  22127. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22128. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22129. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22130. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22131. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22132. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22133. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22134. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22135. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22136. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22137. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22138. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22139. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22140. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22141. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22142. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22143. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22144. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  22145. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22146. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22147. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22148. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22149. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22150. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22151. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22152. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22153. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22154. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22155. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22156. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22157. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22158. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22159. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22160. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22161. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22162. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  22163. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22164. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22165. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22166. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22167. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22168. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22169. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22170. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22171. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22172. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22173. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22174. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22175. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22176. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22177. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22178. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22179. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22180. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  22181. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22182. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22183. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22184. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22185. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22186. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22187. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22188. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22189. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22190. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22191. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22192. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22193. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22194. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22195. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22196. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22197. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22198. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  22199. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22200. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22201. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22202. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22203. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22204. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22205. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  22206. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22207. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22208. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22209. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22210. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22211. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22212. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22213. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22214. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22215. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22216. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22217. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22218. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22219. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22220. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22221. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22222. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22223. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22224. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22225. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22226. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22227. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22228. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22229. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22230. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22231. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22232. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22233. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22234. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22235. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22236. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22237. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22238. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22239. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22240. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22241. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22242. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22243. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22244. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22245. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22246. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22247. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22248. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22249. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22250. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22251. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22252. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22253. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22254. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22255. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22256. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22257. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22258. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22259. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22260. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22261. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22262. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22263. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22264. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22265. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22266. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22267. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22268. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22269. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22270. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22271. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22272. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22273. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22274. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22275. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22276. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22277. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22278. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22279. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22280. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22281. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22282. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22283. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22284. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22285. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22286. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22287. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22288. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  22289. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22290. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22291. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22292. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22293. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22294. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22295. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22299. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22300. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22301. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22302. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22303. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22304. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22305. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  22306. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22307. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22308. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22309. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22310. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22311. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22312. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22313. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22315. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22316. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22317. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22318. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22319. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22320. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22321. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  22322. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22323. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22324. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22325. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22326. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22327. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22328. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22329. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22331. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22332. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22333. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22334. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22335. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22336. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22337. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  22338. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22339. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  22340. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22341. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22342. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22343. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22344. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22345. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22346. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22347. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22348. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22349. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22352. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22353. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22354. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22355. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22356. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22357. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22358. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  22359. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22360. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22361. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22362. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22363. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22364. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22365. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22366. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22367. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22368. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22369. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22370. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22371. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22372. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22373. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22374. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  22375. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22376. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22377. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22378. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22379. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22380. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22381. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22382. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22383. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22384. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22385. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22386. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22387. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22388. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22389. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22390. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  22391. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22392. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22393. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22394. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22395. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22396. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22397. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22398. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22399. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22400. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22402. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22403. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22404. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22405. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22406. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22407. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22408. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  22409. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22410. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22411. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22412. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22413. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22414. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22415. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22416. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22417. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22418. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22419. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22420. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22421. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22422. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22423. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22424. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  22425. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22426. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22427. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22428. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22429. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22430. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22431. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22432. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22433. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22434. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22435. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22436. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22437. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22438. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22439. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22440. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22441. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22442. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  22443. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22444. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22445. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22446. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22447. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22448. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22449. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22450. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22451. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22452. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22453. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22454. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22455. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22456. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22457. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22458. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22459. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22460. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  22461. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22462. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22463. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22464. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22465. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22466. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22467. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22468. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22469. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22470. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22471. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22472. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22473. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22474. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22475. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22476. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22477. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22478. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  22479. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22480. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22481. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22482. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22483. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22484. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22485. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22486. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22487. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22488. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22489. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22490. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22491. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22492. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22493. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22494. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22495. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22496. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  22497. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22498. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22499. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22500. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22501. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22502. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22503. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22504. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22505. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22506. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22507. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22508. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22509. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22510. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22511. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22512. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22513. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  22514. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22515. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22516. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22517. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22518. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22519. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22520. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22521. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22522. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22523. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22524. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22525. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22526. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22527. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22528. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22529. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22530. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22531. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  22532. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22533. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22534. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22535. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22536. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22537. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22538. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22539. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22540. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22541. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22542. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22543. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22544. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22545. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22546. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22547. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22548. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22549. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  22550. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22551. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22552. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22553. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22554. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22555. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22556. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22557. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22558. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22559. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22560. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22561. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22562. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22563. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22564. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22565. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22566. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22567. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  22568. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22569. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22570. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22571. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22572. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22573. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22574. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22575. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22576. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22577. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22578. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22579. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22580. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22581. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22582. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22583. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22584. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22585. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  22586. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22587. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22588. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22589. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22590. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22591. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22592. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22593. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22594. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22595. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22596. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22597. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22598. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22599. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22600. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22601. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22602. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  22603. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22604. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22605. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22606. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22607. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22608. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22609. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22610. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22611. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22612. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22613. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22614. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22615. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22616. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22617. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22618. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22619. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22620. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  22621. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22622. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22623. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22624. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22625. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22626. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22627. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22628. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22629. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22630. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22631. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22632. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22633. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22634. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22635. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22636. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22637. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  22638. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22639. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22640. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22641. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22642. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22643. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22644. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22645. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22646. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22647. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22648. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22649. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22650. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22651. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22652. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22653. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22654. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22655. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  22656. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22657. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22658. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22659. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22660. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22661. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22662. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22663. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22664. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22665. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22666. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22667. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22668. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22669. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22670. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22671. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22672. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22673. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  22674. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22675. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22676. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22677. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22678. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22679. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22680. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22681. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22682. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22683. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22684. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22685. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22686. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22687. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22688. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22689. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22690. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22691. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  22692. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22693. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22694. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22695. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22696. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22697. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22698. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22699. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22700. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22701. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22702. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22703. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22704. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22705. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22706. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22707. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22708. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22709. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  22710. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22711. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22712. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22713. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22714. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22715. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22716. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22717. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22718. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22719. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22720. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22721. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22722. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22723. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22724. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22725. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22726. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22727. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22728. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  22729. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22730. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22731. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22732. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22733. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22734. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22735. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22736. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22737. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22738. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22739. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22740. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22741. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22742. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22743. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22744. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22745. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  22746. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22747. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22748. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22749. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22750. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22751. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22752. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22753. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22754. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22755. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22756. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22757. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22758. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22759. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22760. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22761. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22762. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22763. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22764. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  22765. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22766. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22767. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22768. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22769. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22770. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22771. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22772. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22773. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22774. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22775. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22776. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22777. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22778. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22779. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22780. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22781. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22782. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22783. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  22784. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22785. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22786. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22787. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22788. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22789. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22790. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22791. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22792. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22793. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22794. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22795. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22796. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22797. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22798. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22799. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22800. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22801. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22802. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  22803. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22804. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22805. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22806. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22807. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22808. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22809. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22810. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22811. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22812. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22813. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22814. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22815. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22816. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22817. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22818. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22819. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22820. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22821. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  22822. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22823. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22824. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22825. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22826. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22827. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22828. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22829. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22830. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22831. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22832. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22833. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22834. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22835. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22836. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22837. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22838. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  22839. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22840. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22841. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22842. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22843. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22844. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22845. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22846. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22847. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22848. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22849. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22850. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22851. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22852. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22853. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22854. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22855. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22856. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22857. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  22858. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22859. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22860. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22861. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22862. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22863. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22864. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22865. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22866. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22867. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22868. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22869. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22870. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22871. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22872. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22873. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22874. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22875. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22876. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  22877. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22878. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22879. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22880. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22881. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22882. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22883. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22884. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22885. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22886. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22887. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22888. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22889. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22890. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22891. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22892. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22893. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22894. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22895. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  22896. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22897. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22898. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22899. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22900. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22901. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22902. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22903. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22904. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22905. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22906. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22907. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22908. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22909. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22910. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22911. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22912. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22913. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22914. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  22915. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22916. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22917. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22918. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22919. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22920. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22921. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22922. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22923. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22924. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22925. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22926. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22927. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22928. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22929. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22930. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22931. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  22932. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22933. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22934. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22935. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22936. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22937. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22938. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22939. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22940. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22941. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22942. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22943. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22944. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22945. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22946. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22947. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22948. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22949. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22950. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  22951. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22952. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22953. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22954. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22955. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22956. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22957. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22958. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22959. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22960. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22961. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22962. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22963. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22964. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22965. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22966. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22967. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22968. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22969. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  22970. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22971. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22972. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22973. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22974. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22975. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22976. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22977. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22978. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22979. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22980. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22981. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22982. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22983. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22984. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22985. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22986. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22987. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22988. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  22989. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  22990. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  22991. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  22992. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  22993. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  22994. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  22995. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  22996. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22997. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22998. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22999. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23000. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23001. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23002. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23003. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23004. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23005. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23006. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23007. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23008. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23009. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23010. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23011. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23012. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23013. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23014. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23015. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23016. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23017. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23018. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23019. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23020. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23021. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  23022. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23023. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23024. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23025. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  23026. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23027. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23028. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23029. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23030. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  23031. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  23032. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  23033. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  23034. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  23035. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  23036. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23037. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23038. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23039. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23040. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23041. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23042. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23043. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23044. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23045. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23046. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23047. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23048. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23049. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23050. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23051. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23052. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23053. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23054. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23055. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23056. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23057. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23058. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23059. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23060. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23061. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23062. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23063. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23064. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23065. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23066. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23067. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23068. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23069. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23070. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23071. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23072. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23073. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23074. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23075. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23076. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23077. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23078. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23079. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23080. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23081. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23082. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23083. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23084. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23085. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23086. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23087. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23088. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23089. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23090. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23091. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23092. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23093. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23094. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23095. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23096. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23097. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23098. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23099. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23100. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23101. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23102. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23103. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23104. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23105. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23106. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23107. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23108. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23109. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23110. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23111. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23112. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23113. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23114. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23115. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23116. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23117. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23118. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23119. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23120. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23121. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23122. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23123. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23124. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23125. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23126. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23127. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23128. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23129. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23130. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23131. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23132. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23133. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23134. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23135. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23136. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23137. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23138. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23139. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23140. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23141. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23142. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23143. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23144. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23145. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23146. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23147. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23148. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23149. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23150. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23151. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23152. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23153. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23154. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23155. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23156. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23157. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23158. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23159. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23160. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23161. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23162. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23163. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23164. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23165. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23166. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23167. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23168. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23169. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23170. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23171. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23172. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23173. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23174. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23175. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23176. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23177. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23178. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23179. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23180. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23181. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23182. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23183. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23184. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23185. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23186. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23187. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23188. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23189. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23190. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23191. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23192. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23193. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23194. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23195. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23196. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23197. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23198. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23199. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23200. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23201. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23202. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23203. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23204. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23205. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23206. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23207. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23208. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23209. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23210. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23211. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23212. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23213. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23214. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23215. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23216. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23217. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23218. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23219. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23220. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23221. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23222. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23223. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23224. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23225. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23226. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23227. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23228. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23229. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23230. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23231. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23232. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23233. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23234. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23235. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23236. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23237. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23238. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23239. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23240. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23241. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23242. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23243. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23244. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23245. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23246. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23247. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23248. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23249. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23250. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23251. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23252. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23253. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23254. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23255. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23256. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23257. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23258. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23259. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23260. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23261. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23262. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23263. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23264. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23265. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23266. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23267. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23268. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23269. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23270. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23271. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23272. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23273. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23274. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23275. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23276. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23277. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23278. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23279. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23280. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23281. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23282. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23283. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23284. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23285. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23286. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23287. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23288. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23289. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23290. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23291. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23292. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23293. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23294. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23295. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23296. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23297. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23298. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23299. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23300. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23301. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23302. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23303. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23304. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23305. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23306. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23307. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23308. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23309. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23310. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23311. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23312. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23313. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23314. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23315. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23316. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23317. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23318. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23319. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23320. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23321. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23322. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23323. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23324. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23325. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23326. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23327. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23328. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23329. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23330. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23331. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23332. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23333. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23334. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23335. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23336. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23337. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23338. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23339. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23340. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23341. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23342. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23343. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23344. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23345. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23346. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23347. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23348. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23349. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23350. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23351. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23352. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23353. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23354. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23355. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23356. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23357. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23358. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23359. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23360. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23361. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23362. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23363. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23364. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23365. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23366. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23367. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23368. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23369. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23370. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23371. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23372. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23373. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23374. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23375. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23376. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23377. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23378. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23379. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23380. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23381. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23382. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23383. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23384. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23385. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23386. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23387. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23388. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23389. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23390. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23391. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23392. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23393. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23394. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23395. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23396. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23397. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23398. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23399. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23400. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23401. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23402. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23403. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23404. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23405. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23406. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23407. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23408. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23409. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23410. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23411. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23412. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23413. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23414. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23415. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23416. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23417. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23418. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23419. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23420. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23421. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23422. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23423. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23424. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23425. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23426. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23427. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23428. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23429. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23430. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23431. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23432. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23433. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23434. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23435. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23436. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23437. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23438. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23439. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23440. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23441. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23442. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23443. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23444. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23445. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23446. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23447. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23448. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23449. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23450. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23451. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23452. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23453. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23454. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23455. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23456. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23457. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23458. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23459. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23460. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23461. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23462. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23463. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23464. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23465. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23466. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23467. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23468. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23469. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23470. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23471. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23472. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23473. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23474. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23475. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23476. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23477. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23478. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23479. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23480. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23481. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23482. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23483. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23484. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23485. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23486. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23487. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23488. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23489. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23490. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23491. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23492. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23493. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23494. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23495. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23496. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23497. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23498. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23499. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23500. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23501. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23502. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23503. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23504. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23505. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23506. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23507. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23508. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23509. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23510. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23511. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23512. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23513. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23514. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23515. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23516. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23517. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23518. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23519. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23520. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23521. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23522. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23523. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23524. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23525. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23526. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23527. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23528. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23529. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23530. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23531. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23532. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23533. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23534. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23535. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23536. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23537. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23538. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23539. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23540. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23541. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23542. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23543. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23544. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23545. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23546. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23547. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23548. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23549. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23550. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23551. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23552. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23553. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23554. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23555. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23556. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23557. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23558. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23559. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23560. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23561. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23562. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23563. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23564. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23565. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23566. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23567. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23568. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23569. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23570. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23571. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23572. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23573. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23574. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23575. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23576. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23577. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23578. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23579. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23580. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23581. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  23582. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23583. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23584. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23585. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23586. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23587. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23588. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23589. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23590. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23591. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23592. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23593. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23594. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23595. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23596. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23597. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23598. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23599. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  23600. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23601. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23602. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23603. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23604. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23605. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23606. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23607. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23608. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23609. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23610. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23611. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23612. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23613. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23614. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23615. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23616. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  23617. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23618. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23619. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23620. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23621. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23622. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23623. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23624. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23625. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23626. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23627. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23628. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23629. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23630. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23631. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23632. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23633. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  23634. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23635. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23636. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23637. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23638. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23639. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23640. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23641. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23642. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23643. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23644. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23645. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23646. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23647. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23648. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23649. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23650. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23651. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23652. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23653. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23654. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23655. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23656. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23657. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23658. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23659. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23660. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23661. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23662. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23663. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23664. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23665. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23666. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23667. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23668. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23669. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  23670. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23671. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  23672. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  23673. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  23674. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  23675. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  23676. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  23677. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  23678. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  23679. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  23680. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  23681. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  23682. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  23683. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  23684. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  23685. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  23686. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  23687. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  23688. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23689. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23690. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23691. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23692. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23693. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23694. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23695. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23696. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23697. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23698. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23699. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23700. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23701. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23702. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23703. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23704. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23705. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  23706. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23707. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23708. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23709. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23710. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23711. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23712. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23713. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23714. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23715. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23716. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23717. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23718. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23719. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23720. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23721. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23722. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23723. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  23724. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23725. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23726. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23727. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23728. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23729. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23730. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23731. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23732. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23733. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23734. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23735. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23736. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23737. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23738. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23739. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23740. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  23741. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23742. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23743. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23744. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23745. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23746. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23747. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23748. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23749. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23750. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23751. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23752. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23753. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23754. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23755. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23756. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23757. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  23758. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23759. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23760. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23761. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23762. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23763. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23764. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23765. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23766. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23767. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23768. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23769. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23770. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23771. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23772. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23773. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23774. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  23775. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23776. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23777. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23778. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23779. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23780. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23781. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23782. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23783. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23784. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23785. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23786. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23787. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23788. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23789. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23790. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23791. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  23792. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23793. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23794. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23795. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23796. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23797. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  23798. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23799. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23800. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23801. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  23802. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23803. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23804. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23805. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23806. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23807. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23808. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23809. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  23810. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23811. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23812. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23813. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23814. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23815. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  23816. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23817. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23818. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23819. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23820. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23821. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  23822. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23823. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23824. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23825. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23826. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23827. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  23828. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23829. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23830. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23831. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23832. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23833. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  23834. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  23835. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23836. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23837. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23838. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23839. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  23840. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23841. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23842. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23843. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23844. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23845. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  23846. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23847. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23848. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23849. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23850. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23851. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  23852. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23853. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23854. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23855. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23856. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23857. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  23858. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23859. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23860. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23861. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23862. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23863. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  23864. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23865. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23866. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23867. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23868. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23869. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  23870. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23871. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23872. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23873. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23874. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23875. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  23876. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23877. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23878. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23879. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23880. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23881. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  23882. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23883. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23884. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23885. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23886. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23887. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  23888. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23889. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23890. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23891. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23892. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23893. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  23894. {"HDMI", NULL, "HDMI_DL_HL"},
  23895. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23896. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23897. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23898. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23899. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23900. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23901. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23902. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  23903. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23904. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23905. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23906. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23907. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23908. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23909. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23910. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  23911. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23912. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23913. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23914. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23915. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23916. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  23917. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23918. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23919. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23920. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23921. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23922. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  23923. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23924. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23925. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23926. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23927. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23928. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23929. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23930. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  23931. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23932. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23933. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23934. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23935. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23936. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23937. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  23938. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23939. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23940. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23941. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23942. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23943. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23944. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  23945. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  23946. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23947. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23948. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23949. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23950. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23951. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23952. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23953. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  23954. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  23955. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23956. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23957. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23958. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23959. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23960. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23961. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23962. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  23963. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  23964. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23965. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23966. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23967. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23968. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23969. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23970. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23971. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  23972. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  23973. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23974. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23975. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23976. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23977. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23978. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23979. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23980. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  23981. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23982. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23983. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23984. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23985. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  23986. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23987. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  23988. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23989. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23990. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  23991. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23992. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23993. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  23994. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23995. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23996. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23997. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23998. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23999. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24000. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  24001. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  24002. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  24003. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  24004. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24005. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24006. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24007. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24008. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24009. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24010. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  24011. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  24012. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  24013. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24014. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  24015. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24016. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24017. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24018. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24019. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24020. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24021. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24022. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24023. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24024. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24025. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24026. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24027. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24028. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24029. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24030. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24031. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24032. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24033. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24034. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24035. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24036. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24037. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24038. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24039. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24040. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24041. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24042. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24043. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24044. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24045. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24046. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24047. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24048. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24049. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24050. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  24051. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  24052. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  24053. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24054. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  24055. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24056. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24057. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24058. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24059. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24060. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24061. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24062. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24063. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24064. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24065. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24066. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24067. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24068. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24069. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24070. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24071. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24072. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24073. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24074. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24075. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24076. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24077. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24078. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24079. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24080. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24081. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24082. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24083. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24084. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24085. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24086. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24087. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24088. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24089. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  24090. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  24091. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  24092. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  24093. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  24094. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  24095. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  24096. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  24097. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  24098. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  24099. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  24100. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  24101. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  24102. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  24103. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  24104. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  24105. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  24106. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  24107. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  24108. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  24109. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  24110. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  24111. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  24112. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  24113. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  24114. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  24115. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  24116. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  24117. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  24118. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  24119. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  24120. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  24121. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  24122. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  24123. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  24124. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  24125. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  24126. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  24127. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  24128. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  24129. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  24130. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  24131. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  24132. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  24133. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  24134. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  24135. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  24136. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  24137. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  24138. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  24139. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  24140. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  24141. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  24142. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  24143. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  24144. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  24145. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  24146. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  24147. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  24148. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  24149. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  24150. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  24151. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  24152. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  24153. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  24154. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  24155. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  24156. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  24157. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  24158. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  24159. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  24160. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  24161. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  24162. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  24163. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  24164. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  24165. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  24166. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  24167. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  24168. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  24169. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  24170. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  24171. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  24172. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  24173. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  24174. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  24175. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  24176. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  24177. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  24178. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  24179. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  24180. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  24181. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  24182. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  24183. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  24184. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  24185. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  24186. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  24187. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  24188. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  24189. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  24190. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  24191. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  24192. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  24193. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  24194. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24195. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  24196. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  24197. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24198. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  24199. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  24200. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24201. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24202. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24203. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24204. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24205. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24206. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24207. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24208. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24209. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24210. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24211. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24212. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24213. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  24214. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24215. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24216. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24217. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24218. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24219. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24220. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24221. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24222. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24223. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24224. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24225. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24226. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24227. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  24228. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24229. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24230. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24231. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24232. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24233. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24234. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24235. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24236. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24237. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24238. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24239. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24240. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24241. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  24242. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24243. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24244. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24245. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24246. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24247. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24248. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24249. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24250. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24251. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24252. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24253. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24254. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24255. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  24256. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24257. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24258. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24259. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24260. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24261. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24262. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24263. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24264. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24265. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24266. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24267. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24268. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24269. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  24270. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24271. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24272. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24273. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24274. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24275. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24276. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24277. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24278. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24279. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24280. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24281. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  24282. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24283. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24284. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24285. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24286. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24287. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24288. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24289. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24290. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24291. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24292. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24293. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  24294. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24295. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24296. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24297. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24298. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24299. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24300. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24301. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24302. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24303. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24304. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24305. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  24306. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  24307. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  24308. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  24309. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  24310. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  24311. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  24312. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  24313. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  24314. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  24315. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  24316. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  24317. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  24318. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  24319. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  24320. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  24321. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  24322. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  24323. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  24324. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  24325. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  24326. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  24327. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  24328. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  24329. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  24330. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  24331. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  24332. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  24333. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  24334. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24335. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  24336. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  24337. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  24338. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24339. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  24340. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  24341. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  24342. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  24343. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  24344. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  24345. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  24346. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  24347. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24348. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  24349. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24350. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  24351. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  24352. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  24353. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  24354. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  24355. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  24356. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  24357. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  24358. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  24359. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  24360. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  24361. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  24362. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  24363. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24364. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  24365. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24366. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  24367. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  24368. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  24369. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  24370. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  24371. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  24372. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  24373. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  24374. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  24375. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  24376. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  24377. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  24378. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  24379. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  24380. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  24381. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  24382. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  24383. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  24384. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  24385. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  24386. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  24387. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  24388. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  24389. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  24390. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  24391. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  24392. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  24393. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  24394. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  24395. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  24396. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  24397. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  24398. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  24399. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  24400. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  24401. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  24402. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  24403. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  24404. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  24405. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  24406. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  24407. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  24408. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  24409. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  24410. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  24411. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  24412. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  24413. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  24414. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  24415. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  24416. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  24417. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  24418. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  24419. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  24420. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  24421. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  24422. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  24423. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  24424. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  24425. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  24426. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  24427. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24428. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24429. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24430. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24431. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24432. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24433. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24434. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24435. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24436. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24437. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24438. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24439. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24440. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24441. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24442. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24443. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24444. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24445. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24446. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24447. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24448. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24449. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24450. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24451. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  24452. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24453. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24454. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24455. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24456. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24457. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24458. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24459. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24460. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24461. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24462. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24463. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24464. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24465. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24466. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24467. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24468. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24469. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24470. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24471. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24472. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24473. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24474. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24475. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24476. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  24477. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24478. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24479. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24480. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24481. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24482. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24483. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24484. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24485. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24486. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24487. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24488. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24489. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24490. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24491. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24492. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24493. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24494. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24495. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24496. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24497. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24498. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24499. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24500. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24501. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  24502. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24503. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24504. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24505. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24506. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24507. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24508. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24509. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24510. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24511. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24512. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24513. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24514. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24515. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24516. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24517. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24518. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24519. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24520. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24521. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24522. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24523. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24524. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24525. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24526. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  24527. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24528. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24529. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24530. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24531. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24532. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24533. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24534. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24535. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24536. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24537. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24538. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24539. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24540. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24541. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24542. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24543. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24544. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24545. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24546. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24547. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24548. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24549. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24550. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24551. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  24552. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24553. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24554. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24555. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24556. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24557. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24558. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24559. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24560. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24561. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24562. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24563. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24564. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24565. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24566. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24567. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24568. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24569. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24570. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24571. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24572. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24573. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24574. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24575. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24576. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  24577. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24578. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24579. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24580. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24581. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24582. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24583. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24584. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24585. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24586. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24587. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24588. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24589. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24590. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24591. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24592. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24593. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24594. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24595. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24596. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24597. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24598. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24599. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24600. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24601. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  24602. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24603. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24604. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24605. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24606. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24607. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24608. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24609. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24610. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24611. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24612. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24613. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24614. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24615. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24616. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24617. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24618. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24619. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24620. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24621. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24622. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24623. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24624. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24625. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24626. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  24627. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  24628. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  24629. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24630. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24631. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24632. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24633. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24634. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24635. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24636. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24637. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24638. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24639. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24640. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24641. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24642. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24643. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24644. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24645. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24646. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24647. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24648. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24649. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24650. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24651. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24652. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24653. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  24654. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24655. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24656. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24657. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24658. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24659. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24660. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24661. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24662. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24663. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24664. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24665. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24666. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24667. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24668. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24669. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24670. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24671. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24672. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24673. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24674. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24675. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24676. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24677. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24678. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  24679. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24680. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24681. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24682. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24683. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24684. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24685. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24686. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24687. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24688. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24689. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24690. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24691. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24692. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24693. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24694. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24695. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24696. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24697. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24698. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24699. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24700. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24701. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24702. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24703. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  24704. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24705. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24706. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24707. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24708. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24709. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24710. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24711. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24712. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24713. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24714. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24715. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24716. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24717. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24718. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24719. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24720. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24721. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24722. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24723. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24724. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24725. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24726. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24727. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24728. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  24729. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24730. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24731. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24732. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24733. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24734. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24735. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24736. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24737. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24738. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24739. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24740. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24741. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24742. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24743. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24744. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24745. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24746. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24747. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24748. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24749. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24750. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24751. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24752. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24753. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  24754. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24755. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24756. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24757. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24758. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24759. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24760. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24761. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24762. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24763. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24764. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24765. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24766. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24767. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24768. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24769. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24770. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24771. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24772. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24773. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24774. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24775. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24776. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24777. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24778. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  24779. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24780. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24781. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24782. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24783. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24784. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24785. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24786. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24787. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24788. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24789. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24790. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24791. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24792. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24793. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24794. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24795. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24796. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24797. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24798. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24799. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24800. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24801. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24802. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24803. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  24804. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24805. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24806. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24807. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24808. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24809. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24810. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24811. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24812. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24813. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24814. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24815. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24816. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24817. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24818. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24819. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24820. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24821. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24822. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24823. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24824. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24825. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24826. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24827. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24828. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  24829. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  24830. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  24831. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  24832. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24833. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24834. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24835. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24836. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24837. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24838. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24839. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24840. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24841. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24842. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24843. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24844. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24845. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24846. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24847. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24848. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24849. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24850. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24851. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24852. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24853. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24854. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24855. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24856. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  24857. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24858. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24859. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24860. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24861. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24862. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24863. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24864. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24865. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24866. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24867. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24868. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24869. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24870. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24871. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24872. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24873. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24874. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24875. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24876. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24877. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24878. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24879. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24880. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24881. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  24882. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24883. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24884. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24885. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24886. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24887. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24888. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24889. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24890. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24891. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24892. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24893. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24894. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24895. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24896. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24897. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24898. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24899. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24900. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24901. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24902. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24903. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24904. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24905. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24906. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  24907. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24908. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24909. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24910. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24911. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24912. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24913. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24914. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24915. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24916. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24917. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24918. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24919. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24920. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24921. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24922. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24923. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24924. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24925. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24926. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24927. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24928. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24929. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24930. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24931. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  24932. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  24933. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  24934. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  24935. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  24936. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24937. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24938. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24939. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24940. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24941. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24942. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24943. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24944. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24945. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24946. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24947. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24948. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24949. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24950. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24951. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24952. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24953. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24954. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24955. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24956. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  24957. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24958. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24959. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24960. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24961. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24962. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24963. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24964. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24965. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24966. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24967. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24968. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24969. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24970. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24971. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24972. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24973. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24974. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24975. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24976. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24977. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  24978. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24979. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24980. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24981. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24982. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24983. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24984. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24985. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24986. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24987. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24988. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24989. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24990. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24991. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24992. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24993. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24994. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24995. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24996. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24997. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24998. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  24999. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25000. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25001. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25002. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25003. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25004. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25005. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25006. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25007. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25008. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25009. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25010. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25011. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25012. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25013. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25014. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25015. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25016. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25017. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25018. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25019. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  25020. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25021. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25022. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25023. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25024. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25025. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25026. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25027. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25028. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25029. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25030. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25031. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25032. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  25033. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25034. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25035. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25036. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25037. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25038. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25039. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25040. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25041. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25042. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25043. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25044. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25045. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  25046. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25047. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25048. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25049. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25050. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  25051. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25052. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25053. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25054. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  25055. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25056. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25057. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25058. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25059. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25060. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25061. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25062. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25063. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25064. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25065. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25066. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25067. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25068. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25069. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25070. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25071. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25072. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25073. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25074. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25075. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  25076. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25077. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25078. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  25079. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25080. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  25081. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  25082. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  25083. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  25084. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25085. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25086. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25087. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25088. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25089. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25090. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25091. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  25092. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25093. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25094. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25095. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25096. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  25097. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25098. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25099. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25100. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  25101. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25102. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25103. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25104. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  25105. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25106. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25107. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25108. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  25109. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25110. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25111. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25112. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25113. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25114. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25115. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25116. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25117. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25118. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25119. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  25120. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25121. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25122. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25123. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25124. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25125. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25126. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25127. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25128. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25129. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  25130. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25131. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25132. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25133. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25134. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25135. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25136. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25137. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25138. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25139. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25140. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25141. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  25142. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25143. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25144. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25145. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25146. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25147. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25148. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25149. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25150. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25151. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25152. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25153. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25154. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  25155. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25156. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25157. {"STUB_RX", NULL, "STUB_RX Mixer"},
  25158. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25159. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25160. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  25161. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25162. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25163. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  25164. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25165. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25166. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25167. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25168. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25169. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  25170. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25171. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25172. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25173. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25174. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25175. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  25176. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25177. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25178. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25179. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  25180. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25181. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25182. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  25183. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  25184. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25185. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  25186. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  25187. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  25188. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  25189. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25190. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25191. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25192. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25193. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25194. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25195. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25196. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25197. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25198. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25199. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25200. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25201. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25202. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  25203. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25204. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  25205. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25206. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  25207. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  25208. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  25209. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25210. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  25211. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25212. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25213. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  25214. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25215. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25216. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25217. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25218. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25219. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25220. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25221. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25222. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25223. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25224. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25225. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  25226. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25227. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25228. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25229. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25230. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25231. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25232. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25233. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25234. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25235. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25236. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  25237. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25238. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25239. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25240. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25241. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25242. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25243. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25244. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25245. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  25246. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25247. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25248. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25249. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25250. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25251. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25252. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25253. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25254. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25255. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25256. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  25257. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25258. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25259. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25260. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25261. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25262. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25263. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25264. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25265. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  25266. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25267. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25268. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25269. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25270. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25271. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25272. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25273. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  25274. /* Backend Enablement */
  25275. {"BE_OUT", NULL, "PRI_I2S_RX"},
  25276. {"BE_OUT", NULL, "SEC_I2S_RX"},
  25277. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  25278. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  25279. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  25280. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25281. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  25282. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  25283. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  25284. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  25285. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  25286. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  25287. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  25288. {"BE_OUT", NULL, "HDMI"},
  25289. {"BE_OUT", NULL, "DISPLAY_PORT"},
  25290. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  25291. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  25292. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  25293. {"BE_OUT", NULL, "MI2S_RX"},
  25294. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  25295. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  25296. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  25297. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  25298. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  25299. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  25300. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  25301. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  25302. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  25303. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  25304. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  25305. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  25306. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25307. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  25308. {"BE_OUT", NULL, "INT_FM_RX"},
  25309. {"BE_OUT", NULL, "PCM_RX"},
  25310. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25311. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25312. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  25313. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  25314. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  25315. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  25316. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  25317. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25318. {"BE_OUT", NULL, "INT_FM_RX"},
  25319. {"BE_OUT", NULL, "PCM_RX"},
  25320. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25321. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  25322. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  25323. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  25324. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  25325. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  25326. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  25327. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  25328. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  25329. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  25330. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  25331. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  25332. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  25333. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  25334. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  25335. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  25336. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  25337. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  25338. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  25339. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  25340. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  25341. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  25342. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  25343. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  25344. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  25345. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  25346. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  25347. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  25348. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  25349. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  25350. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  25351. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  25352. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  25353. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  25354. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  25355. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  25356. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  25357. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  25358. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  25359. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  25360. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  25361. {"PRI_I2S_TX", NULL, "BE_IN"},
  25362. {"MI2S_TX", NULL, "BE_IN"},
  25363. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  25364. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  25365. {"PRI_MI2S_TX", NULL, "BE_IN"},
  25366. {"TERT_MI2S_TX", NULL, "BE_IN"},
  25367. {"INT0_MI2S_TX", NULL, "BE_IN"},
  25368. {"INT2_MI2S_TX", NULL, "BE_IN"},
  25369. {"INT3_MI2S_TX", NULL, "BE_IN"},
  25370. {"INT4_MI2S_TX", NULL, "BE_IN"},
  25371. {"INT5_MI2S_TX", NULL, "BE_IN"},
  25372. {"SEC_MI2S_TX", NULL, "BE_IN"},
  25373. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  25374. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  25375. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  25376. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  25377. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  25378. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  25379. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  25380. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  25381. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  25382. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  25383. {"USB_AUDIO_TX", NULL, "BE_IN" },
  25384. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  25385. {"INT_FM_TX", NULL, "BE_IN"},
  25386. {"PCM_TX", NULL, "BE_IN"},
  25387. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25388. {"BE_OUT", NULL, "STUB_RX"},
  25389. {"STUB_TX", NULL, "BE_IN"},
  25390. {"STUB_1_TX", NULL, "BE_IN"},
  25391. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25392. {"AUX_PCM_TX", NULL, "BE_IN"},
  25393. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  25394. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  25395. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  25396. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  25397. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  25398. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  25399. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  25400. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25401. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25402. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25403. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25404. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  25405. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25406. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25407. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  25408. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  25409. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  25410. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  25411. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  25412. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  25413. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  25414. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  25415. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  25416. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  25417. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  25418. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  25419. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  25420. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  25421. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  25422. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  25423. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  25424. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  25425. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  25426. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  25427. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  25428. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  25429. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  25430. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  25431. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  25432. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  25433. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  25434. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  25435. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  25436. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  25437. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  25438. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  25439. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  25440. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  25441. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  25442. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25443. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25444. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25445. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25446. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25447. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25448. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  25449. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  25450. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  25451. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  25452. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  25453. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  25454. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  25455. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  25456. };
  25457. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  25458. struct snd_pcm_hw_params *params)
  25459. {
  25460. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25461. unsigned int be_id = rtd->dai_link->id;
  25462. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25463. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25464. return -EINVAL;
  25465. }
  25466. mutex_lock(&routing_lock);
  25467. msm_bedais[be_id].sample_rate = params_rate(params);
  25468. msm_bedais[be_id].channel = params_channels(params);
  25469. msm_bedais[be_id].format = params_format(params);
  25470. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  25471. __func__, msm_bedais[be_id].sample_rate,
  25472. msm_bedais[be_id].format, be_id);
  25473. mutex_unlock(&routing_lock);
  25474. return 0;
  25475. }
  25476. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  25477. {
  25478. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25479. unsigned int be_id = rtd->dai_link->id;
  25480. int i, session_type, path_type, topology;
  25481. struct msm_pcm_routing_bdai_data *bedai;
  25482. struct msm_pcm_routing_fdai_data *fdai;
  25483. pr_debug("%s: substream->pcm->id:%s\n",
  25484. __func__, substream->pcm->id);
  25485. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25486. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25487. return -EINVAL;
  25488. }
  25489. bedai = &msm_bedais[be_id];
  25490. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  25491. 0 : 1);
  25492. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25493. path_type = ADM_PATH_PLAYBACK;
  25494. else
  25495. path_type = ADM_PATH_LIVE_REC;
  25496. mutex_lock(&routing_lock);
  25497. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25498. if (!is_mm_lsm_fe_id(i))
  25499. continue;
  25500. fdai = &fe_dai_map[i][session_type];
  25501. if (fdai->strm_id != INVALID_SESSION) {
  25502. int idx;
  25503. int port_id;
  25504. unsigned long copp =
  25505. session_copp_map[i][session_type][be_id];
  25506. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  25507. if (test_bit(idx, &copp))
  25508. break;
  25509. if (idx >= MAX_COPPS_PER_PORT) {
  25510. pr_debug("%s: copp idx is invalid, exiting\n",
  25511. __func__);
  25512. continue;
  25513. }
  25514. fdai->be_srate = bedai->sample_rate;
  25515. port_id = get_port_id(bedai->port_id);
  25516. topology = adm_get_topology_for_port_copp_idx(port_id,
  25517. idx);
  25518. msm_routing_unload_topology(topology);
  25519. adm_close(port_id, fdai->perf_mode, idx);
  25520. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  25521. __func__, copp, i, session_type, be_id,
  25522. topology);
  25523. clear_bit(idx,
  25524. &session_copp_map[i][session_type][be_id]);
  25525. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25526. (fdai->passthr_mode == LEGACY_PCM))
  25527. msm_pcm_routing_deinit_pp(port_id,
  25528. topology);
  25529. }
  25530. }
  25531. bedai->active = 0;
  25532. bedai->sample_rate = 0;
  25533. bedai->channel = 0;
  25534. mutex_unlock(&routing_lock);
  25535. return 0;
  25536. }
  25537. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  25538. {
  25539. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25540. unsigned int be_id = rtd->dai_link->id;
  25541. int i, path_type, topology;
  25542. int session_type = INVALID_SESSION;
  25543. struct msm_pcm_routing_bdai_data *bedai;
  25544. u32 channels, sample_rate;
  25545. uint16_t bits_per_sample = 16, voc_path_type;
  25546. struct msm_pcm_routing_fdai_data *fdai;
  25547. u32 session_id;
  25548. struct media_format_info voc_be_media_format;
  25549. bool is_lsm;
  25550. pr_debug("%s: substream->pcm->id:%s\n",
  25551. __func__, substream->pcm->id);
  25552. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25553. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25554. return -EINVAL;
  25555. }
  25556. bedai = &msm_bedais[be_id];
  25557. mutex_lock(&routing_lock);
  25558. if (bedai->active == 1)
  25559. goto done; /* Ignore prepare if back-end already active */
  25560. /* AFE port is not active at this point. However, still
  25561. * go ahead setting active flag under the notion that
  25562. * QDSP6 is able to handle ADM starting before AFE port
  25563. * is started.
  25564. */
  25565. bedai->active = 1;
  25566. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25567. if (!(is_mm_lsm_fe_id(i) &&
  25568. route_check_fe_id_adm_support(i)))
  25569. continue;
  25570. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  25571. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25572. fdai = &fe_dai_map[i][session_type];
  25573. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  25574. if (fdai->passthr_mode != LEGACY_PCM)
  25575. path_type = ADM_PATH_COMPRESSED_RX;
  25576. else
  25577. path_type = ADM_PATH_PLAYBACK;
  25578. } else {
  25579. if ((fdai->passthr_mode != LEGACY_PCM) &&
  25580. (fdai->passthr_mode != LISTEN))
  25581. path_type = ADM_PATH_COMPRESSED_TX;
  25582. else
  25583. path_type = ADM_PATH_LIVE_REC;
  25584. }
  25585. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  25586. (i <= MSM_FRONTEND_DAI_LSM8);
  25587. if (fdai->strm_id != INVALID_SESSION) {
  25588. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  25589. int port_id = get_port_id(bedai->port_id);
  25590. if (session_type == SESSION_TYPE_TX &&
  25591. fdai->be_srate &&
  25592. (fdai->be_srate != bedai->sample_rate)) {
  25593. pr_debug("%s: flush strm %d diff BE rates\n",
  25594. __func__,
  25595. fdai->strm_id);
  25596. if (fdai->event_info.event_func)
  25597. fdai->event_info.event_func(
  25598. MSM_PCM_RT_EVT_BUF_RECFG,
  25599. fdai->event_info.priv_data);
  25600. fdai->be_srate = 0; /* might not need it */
  25601. }
  25602. bits_per_sample = msm_routing_get_bit_width(
  25603. bedai->format);
  25604. app_type =
  25605. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  25606. if (app_type && is_lsm) {
  25607. app_type_idx =
  25608. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  25609. sample_rate =
  25610. fe_dai_app_type_cfg[i][session_type][be_id]
  25611. .sample_rate;
  25612. bits_per_sample =
  25613. lsm_app_type_cfg[app_type_idx].bit_width;
  25614. } else if (app_type) {
  25615. app_type_idx =
  25616. msm_pcm_routing_get_app_type_idx(app_type);
  25617. sample_rate =
  25618. fe_dai_app_type_cfg[i][session_type]
  25619. [be_id].sample_rate;
  25620. bits_per_sample =
  25621. app_type_cfg[app_type_idx].bit_width;
  25622. } else
  25623. sample_rate = bedai->sample_rate;
  25624. /*
  25625. * check if ADM needs to be configured with different
  25626. * channel mapping than backend
  25627. */
  25628. if (!bedai->adm_override_ch)
  25629. channels = bedai->channel;
  25630. else
  25631. channels = bedai->adm_override_ch;
  25632. acdb_dev_id =
  25633. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  25634. topology = msm_routing_get_adm_topology(i, session_type,
  25635. be_id);
  25636. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  25637. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  25638. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  25639. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  25640. copp_idx = adm_open(port_id, path_type,
  25641. sample_rate, channels, topology,
  25642. fdai->perf_mode, bits_per_sample,
  25643. app_type, acdb_dev_id,
  25644. session_type);
  25645. if ((copp_idx < 0) ||
  25646. (copp_idx >= MAX_COPPS_PER_PORT)) {
  25647. pr_err("%s: adm open failed\n", __func__);
  25648. mutex_unlock(&routing_lock);
  25649. return -EINVAL;
  25650. }
  25651. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  25652. __func__, i, session_type, be_id);
  25653. set_bit(copp_idx,
  25654. &session_copp_map[i][session_type][be_id]);
  25655. if (msm_is_resample_needed(
  25656. sample_rate,
  25657. bedai->sample_rate))
  25658. adm_copp_mfc_cfg(port_id, copp_idx,
  25659. bedai->sample_rate);
  25660. msm_pcm_routing_build_matrix(i, session_type, path_type,
  25661. fdai->perf_mode, fdai->passthr_mode);
  25662. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25663. (fdai->passthr_mode == LEGACY_PCM))
  25664. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  25665. topology, channels);
  25666. }
  25667. }
  25668. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25669. session_id = msm_pcm_routing_get_voc_sessionid(i);
  25670. if (session_id) {
  25671. pr_debug("%s voice session_id: 0x%x\n", __func__,
  25672. session_id);
  25673. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25674. voc_path_type = RX_PATH;
  25675. else
  25676. voc_path_type = TX_PATH;
  25677. voc_set_route_flag(session_id, voc_path_type, 1);
  25678. memset(&voc_be_media_format, 0,
  25679. sizeof(struct media_format_info));
  25680. voc_be_media_format.port_id = bedai->port_id;
  25681. voc_be_media_format.num_channels = bedai->channel;
  25682. voc_be_media_format.sample_rate = bedai->sample_rate;
  25683. voc_be_media_format.bits_per_sample = bedai->format;
  25684. /* Defaulting this to 1 for voice call usecases */
  25685. voc_be_media_format.channel_mapping[0] = 1;
  25686. voc_set_device_config(session_id, voc_path_type,
  25687. &voc_be_media_format);
  25688. if (voc_get_route_flag(session_id, RX_PATH) &&
  25689. voc_get_route_flag(session_id, TX_PATH))
  25690. voc_enable_device(session_id);
  25691. }
  25692. }
  25693. /* Check if backend is an external ec ref port and set as needed */
  25694. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  25695. memset(&voc_be_media_format, 0,
  25696. sizeof(struct media_format_info));
  25697. /* Get format info for ec ref port from msm_bedais[] */
  25698. voc_be_media_format.port_id = bedai->port_id;
  25699. voc_be_media_format.num_channels = bedai->channel;
  25700. voc_be_media_format.bits_per_sample = bedai->format;
  25701. voc_be_media_format.sample_rate = bedai->sample_rate;
  25702. /* Defaulting this to 1 for voice call usecases */
  25703. voc_be_media_format.channel_mapping[0] = 1;
  25704. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  25705. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  25706. __func__, voc_be_media_format.port_id,
  25707. voc_be_media_format.num_channels,
  25708. voc_be_media_format.bits_per_sample,
  25709. voc_be_media_format.sample_rate);
  25710. }
  25711. done:
  25712. mutex_unlock(&routing_lock);
  25713. return 0;
  25714. }
  25715. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  25716. int fe_id)
  25717. {
  25718. int index, topo_id, be_idx;
  25719. unsigned long pp_config = 0;
  25720. bool mute_on;
  25721. int latency, session_type;
  25722. bool compr_passthr_mode = true;
  25723. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  25724. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  25725. pr_err("%s: Device pp params on invalid port %d\n",
  25726. __func__, port_id);
  25727. return -EINVAL;
  25728. }
  25729. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25730. if (port_id == msm_bedais[be_idx].port_id)
  25731. break;
  25732. }
  25733. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25734. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25735. return -EINVAL;
  25736. }
  25737. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25738. if (msm_bedais_pp_params[index].port_id == port_id)
  25739. break;
  25740. }
  25741. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25742. pr_err("%s: Invalid backend pp params index %d\n",
  25743. __func__, index);
  25744. return -EINVAL;
  25745. }
  25746. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  25747. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  25748. pr_err("%s: Invalid passthrough topology 0x%x\n",
  25749. __func__, topo_id);
  25750. return -EINVAL;
  25751. }
  25752. session_type =
  25753. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25754. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25755. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  25756. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  25757. compr_passthr_mode = false;
  25758. pp_config = msm_bedais_pp_params[index].pp_params_config;
  25759. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  25760. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25761. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  25762. mute_on = msm_bedais_pp_params[index].mute_on;
  25763. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25764. adm_send_compressed_device_mute(port_id,
  25765. copp_idx,
  25766. mute_on);
  25767. }
  25768. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  25769. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25770. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  25771. &pp_config);
  25772. latency = msm_bedais_pp_params[index].latency;
  25773. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25774. adm_send_compressed_device_latency(port_id,
  25775. copp_idx,
  25776. latency);
  25777. }
  25778. return 0;
  25779. }
  25780. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  25781. {
  25782. uint32_t topology = NULL_COPP_TOPOLOGY;
  25783. void *cal_info = NULL;
  25784. uint32_t size = 0;
  25785. /* Retrieve cal_info size from cal data*/
  25786. if (data_size < sizeof(struct audio_cal_type_basic) +
  25787. sizeof(struct audio_cal_info_adm_top)) {
  25788. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  25789. goto done;
  25790. }
  25791. size = data_size - sizeof(struct audio_cal_type_basic);
  25792. cal_info = kzalloc(size, GFP_KERNEL);
  25793. if (!cal_info)
  25794. goto done;
  25795. memcpy(cal_info,
  25796. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  25797. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  25798. kfree(cal_info);
  25799. cal_info = NULL;
  25800. done:
  25801. pr_debug("%s: Using topology %d\n", __func__, topology);
  25802. return topology;
  25803. }
  25804. static void msm_routing_load_topology(size_t data_size, void *data)
  25805. {
  25806. uint32_t topology_id;
  25807. int ret = -EINVAL;
  25808. topology_id = msm_routing_get_topology(data_size, data);
  25809. if (topology_id != NULL_COPP_TOPOLOGY)
  25810. ret = q6core_load_unload_topo_modules(topology_id,
  25811. CORE_LOAD_TOPOLOGY);
  25812. if (ret < 0)
  25813. pr_debug("%s %d load topology failed\n",
  25814. __func__, topology_id);
  25815. }
  25816. static void msm_routing_unload_topology(uint32_t topology_id)
  25817. {
  25818. int ret = -EINVAL;
  25819. if (topology_id != NULL_COPP_TOPOLOGY)
  25820. ret = q6core_load_unload_topo_modules(topology_id,
  25821. CORE_UNLOAD_TOPOLOGY);
  25822. if (ret < 0)
  25823. pr_debug("%s %d unload topology failed\n",
  25824. __func__, topology_id);
  25825. }
  25826. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25827. struct snd_ctl_elem_value *ucontrol)
  25828. {
  25829. int pp_id = ucontrol->value.integer.value[0];
  25830. int port_id = 0;
  25831. int index, be_idx, i, topo_id, idx;
  25832. bool mute;
  25833. int latency, session_type;
  25834. bool compr_passthr_mode = true;
  25835. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  25836. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25837. port_id = msm_bedais[be_idx].port_id;
  25838. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  25839. break;
  25840. }
  25841. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25842. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25843. return -EINVAL;
  25844. }
  25845. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25846. if (msm_bedais_pp_params[index].port_id == port_id)
  25847. break;
  25848. }
  25849. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25850. pr_err("%s: Invalid pp params backend index %d\n",
  25851. __func__, index);
  25852. return -EINVAL;
  25853. }
  25854. session_type =
  25855. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25856. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25857. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  25858. MSM_FRONTEND_DAI_MM_SIZE) {
  25859. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  25860. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  25861. compr_passthr_mode = false;
  25862. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25863. unsigned long copp =
  25864. session_copp_map[i]
  25865. [SESSION_TYPE_RX][be_idx];
  25866. if (!test_bit(idx, &copp))
  25867. continue;
  25868. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  25869. idx);
  25870. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  25871. continue;
  25872. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  25873. __func__, port_id, copp, msm_bedais[be_idx].active,
  25874. fe_dai_map[i][session_type].passthr_mode);
  25875. switch (pp_id) {
  25876. case ADM_PP_PARAM_MUTE_ID:
  25877. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25878. mute = ucontrol->value.integer.value[1] ? true : false;
  25879. msm_bedais_pp_params[index].mute_on = mute;
  25880. set_bit(ADM_PP_PARAM_MUTE_BIT,
  25881. &msm_bedais_pp_params[index].pp_params_config);
  25882. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25883. adm_send_compressed_device_mute(port_id,
  25884. idx, mute);
  25885. break;
  25886. case ADM_PP_PARAM_LATENCY_ID:
  25887. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25888. msm_bedais_pp_params[index].latency =
  25889. ucontrol->value.integer.value[1];
  25890. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  25891. &msm_bedais_pp_params[index].pp_params_config);
  25892. latency = msm_bedais_pp_params[index].latency =
  25893. ucontrol->value.integer.value[1];
  25894. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25895. adm_send_compressed_device_latency(port_id,
  25896. idx, latency);
  25897. break;
  25898. default:
  25899. pr_info("%s, device pp param %d not supported\n",
  25900. __func__, pp_id);
  25901. break;
  25902. }
  25903. }
  25904. }
  25905. return 0;
  25906. }
  25907. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25908. struct snd_ctl_elem_value *ucontrol)
  25909. {
  25910. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  25911. return 0;
  25912. }
  25913. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  25914. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  25915. 0, 3, msm_routing_get_device_pp_params_mixer,
  25916. msm_routing_put_device_pp_params_mixer),
  25917. };
  25918. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  25919. struct snd_ctl_elem_value *ucontrol)
  25920. {
  25921. ucontrol->value.integer.value[0] =
  25922. core_get_license_status(ASM_MEDIA_FMT_APTX);
  25923. pr_debug("%s: status %ld\n", __func__,
  25924. ucontrol->value.integer.value[0]);
  25925. return 0;
  25926. }
  25927. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  25928. struct snd_ctl_elem_value *ucontrol)
  25929. {
  25930. int32_t status = 0;
  25931. status = core_set_license(ucontrol->value.integer.value[0],
  25932. APTX_CLASSIC_DEC_LICENSE_ID);
  25933. pr_debug("%s: status %d\n", __func__, status);
  25934. return status;
  25935. }
  25936. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  25937. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  25938. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  25939. msm_aptx_dec_license_control_put),
  25940. };
  25941. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  25942. struct snd_ctl_elem_value *ucontrol)
  25943. {
  25944. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  25945. uint32_t be_idx = ucontrol->value.integer.value[0];
  25946. int i;
  25947. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  25948. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  25949. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  25950. pr_err("%s: Invalid channel map %d\n",
  25951. __func__, channel_map[i]);
  25952. return -EINVAL;
  25953. }
  25954. }
  25955. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  25956. return 0;
  25957. }
  25958. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  25959. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  25960. MSM_BACKEND_DAI_MAX, 0,
  25961. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  25962. msm_routing_put_port_chmap_mixer),
  25963. };
  25964. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  25965. struct snd_ctl_elem_info *uinfo)
  25966. {
  25967. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  25968. uinfo->count = sizeof(be_dai_name_table);
  25969. return 0;
  25970. }
  25971. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  25972. unsigned int __user *bytes,
  25973. unsigned int size)
  25974. {
  25975. int i;
  25976. int ret = 0;
  25977. if (size < sizeof(be_dai_name_table)) {
  25978. pr_err("%s: invalid size %d requested, returning\n",
  25979. __func__, size);
  25980. ret = -EINVAL;
  25981. goto done;
  25982. }
  25983. /*
  25984. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  25985. * needed when adding new backends
  25986. */
  25987. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  25988. be_dai_name_table[i].be_id = i;
  25989. strlcpy(be_dai_name_table[i].be_name,
  25990. msm_bedais[i].name,
  25991. LPASS_BE_NAME_MAX_LENGTH);
  25992. }
  25993. ret = copy_to_user(bytes, &be_dai_name_table,
  25994. sizeof(be_dai_name_table));
  25995. if (ret) {
  25996. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  25997. ret = -EFAULT;
  25998. }
  25999. done:
  26000. return ret;
  26001. }
  26002. static const struct snd_kcontrol_new
  26003. msm_routing_be_dai_name_table_mixer_controls[] = {
  26004. {
  26005. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  26006. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  26007. .info = msm_routing_be_dai_name_table_info,
  26008. .name = "Backend DAI Name Table",
  26009. .tlv.c = snd_soc_bytes_tlv_callback,
  26010. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  26011. .max = sizeof(be_dai_name_table),
  26012. .get = msm_routing_be_dai_name_table_tlv_get,
  26013. }
  26014. },
  26015. };
  26016. static int msm_routing_stereo_channel_reverse_control_get(
  26017. struct snd_kcontrol *kcontrol,
  26018. struct snd_ctl_elem_value *ucontrol)
  26019. {
  26020. ucontrol->value.integer.value[0] = swap_ch;
  26021. pr_debug("%s: Swap channel value: %ld\n", __func__,
  26022. ucontrol->value.integer.value[0]);
  26023. return 0;
  26024. }
  26025. static int msm_routing_stereo_channel_reverse_control_put(
  26026. struct snd_kcontrol *kcontrol,
  26027. struct snd_ctl_elem_value *ucontrol)
  26028. {
  26029. int i, idx, be_index, port_id;
  26030. int ret = 0;
  26031. unsigned long copp;
  26032. pr_debug("%s Swap channel value:%ld\n", __func__,
  26033. ucontrol->value.integer.value[0]);
  26034. swap_ch = ucontrol->value.integer.value[0];
  26035. mutex_lock(&routing_lock);
  26036. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  26037. port_id = msm_bedais[be_index].port_id;
  26038. if (!msm_bedais[be_index].active)
  26039. continue;
  26040. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  26041. MSM_FRONTEND_DAI_MM_SIZE) {
  26042. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  26043. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  26044. if (!test_bit(idx, &copp))
  26045. continue;
  26046. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  26047. __func__, port_id, idx);
  26048. ret = adm_swap_speaker_channels(
  26049. port_id, idx,
  26050. msm_bedais[be_index].sample_rate,
  26051. swap_ch);
  26052. if (ret) {
  26053. pr_err("%s:Swap_channel failed, err=%d\n",
  26054. __func__, ret);
  26055. goto done;
  26056. }
  26057. }
  26058. }
  26059. }
  26060. done:
  26061. mutex_unlock(&routing_lock);
  26062. return ret;
  26063. }
  26064. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  26065. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  26066. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  26067. msm_routing_stereo_channel_reverse_control_put),
  26068. };
  26069. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  26070. struct snd_ctl_elem_info *uinfo)
  26071. {
  26072. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  26073. uinfo->count = 1;
  26074. return 0;
  26075. }
  26076. static int msm_routing_instance_id_support_put(
  26077. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26078. {
  26079. bool supported = ucontrol->value.integer.value[0] ? true : false;
  26080. q6common_update_instance_id_support(supported);
  26081. return 0;
  26082. }
  26083. static int msm_routing_instance_id_support_get(
  26084. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26085. {
  26086. bool supported = false;
  26087. supported = q6common_is_instance_id_supported();
  26088. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  26089. return 0;
  26090. }
  26091. static const struct snd_kcontrol_new
  26092. msm_routing_feature_support_mixer_controls[] = {
  26093. {
  26094. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  26095. SNDRV_CTL_ELEM_ACCESS_WRITE,
  26096. .info = msm_routing_instance_id_support_info,
  26097. .name = "Instance ID Support",
  26098. .put = msm_routing_instance_id_support_put,
  26099. .get = msm_routing_instance_id_support_get,
  26100. },
  26101. };
  26102. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  26103. .hw_params = msm_pcm_routing_hw_params,
  26104. .close = msm_pcm_routing_close,
  26105. .prepare = msm_pcm_routing_prepare,
  26106. };
  26107. /* Not used but frame seems to require it */
  26108. static int msm_routing_probe(struct snd_soc_component *component)
  26109. {
  26110. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  26111. ARRAY_SIZE(msm_qdsp6_widgets));
  26112. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  26113. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  26114. snd_soc_dapm_add_routes(&component->dapm, intercon,
  26115. ARRAY_SIZE(intercon));
  26116. snd_soc_dapm_new_widgets(component->dapm.card);
  26117. snd_soc_add_component_controls(component, lsm_controls,
  26118. ARRAY_SIZE(lsm_controls));
  26119. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  26120. ARRAY_SIZE(aanc_slim_0_rx_mux));
  26121. snd_soc_add_component_controls(component, aanc_noise_level,
  26122. ARRAY_SIZE(aanc_noise_level));
  26123. snd_soc_add_component_controls(component, msm_voc_session_controls,
  26124. ARRAY_SIZE(msm_voc_session_controls));
  26125. snd_soc_add_component_controls(component, app_type_cfg_controls,
  26126. ARRAY_SIZE(app_type_cfg_controls));
  26127. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  26128. ARRAY_SIZE(lsm_app_type_cfg_controls));
  26129. snd_soc_add_component_controls(component, module_cfg_controls,
  26130. ARRAY_SIZE(module_cfg_controls));
  26131. snd_soc_add_component_controls(component,
  26132. stereo_to_custom_stereo_controls,
  26133. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  26134. snd_soc_add_component_controls(component, ec_ref_param_controls,
  26135. ARRAY_SIZE(ec_ref_param_controls));
  26136. snd_soc_add_component_controls(component, channel_mixer_controls,
  26137. ARRAY_SIZE(channel_mixer_controls));
  26138. msm_qti_pp_add_controls(component);
  26139. msm_dts_srs_tm_add_controls(component);
  26140. msm_dolby_dap_add_controls(component);
  26141. snd_soc_add_component_controls(component,
  26142. use_ds1_or_ds2_controls,
  26143. ARRAY_SIZE(use_ds1_or_ds2_controls));
  26144. snd_soc_add_component_controls(component,
  26145. device_pp_params_mixer_controls,
  26146. ARRAY_SIZE(device_pp_params_mixer_controls));
  26147. snd_soc_add_component_controls(component,
  26148. msm_routing_be_dai_name_table_mixer_controls,
  26149. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  26150. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  26151. ARRAY_SIZE(msm_source_tracking_controls));
  26152. snd_soc_add_component_controls(component, adm_channel_config_controls,
  26153. ARRAY_SIZE(adm_channel_config_controls));
  26154. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  26155. ARRAY_SIZE(aptx_dec_license_controls));
  26156. snd_soc_add_component_controls(component,
  26157. stereo_channel_reverse_control,
  26158. ARRAY_SIZE(stereo_channel_reverse_control));
  26159. snd_soc_add_component_controls(
  26160. component, msm_routing_feature_support_mixer_controls,
  26161. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  26162. snd_soc_add_component_controls(component,
  26163. port_multi_channel_map_mixer_controls,
  26164. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  26165. return 0;
  26166. }
  26167. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  26168. {
  26169. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  26170. }
  26171. void msm_routing_pcm_free(struct snd_pcm *pcm)
  26172. {
  26173. msm_pcm_routing_hwdep_free(pcm);
  26174. }
  26175. static struct snd_soc_component_driver msm_soc_routing_component = {
  26176. .name = DRV_NAME,
  26177. .ops = &msm_routing_pcm_ops,
  26178. .probe = msm_routing_probe,
  26179. .pcm_new = msm_routing_pcm_new,
  26180. .pcm_free = msm_routing_pcm_free,
  26181. };
  26182. static int msm_routing_pcm_probe(struct platform_device *pdev)
  26183. {
  26184. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  26185. return snd_soc_register_component(&pdev->dev,
  26186. &msm_soc_routing_component,
  26187. NULL, 0);
  26188. }
  26189. static int msm_routing_pcm_remove(struct platform_device *pdev)
  26190. {
  26191. snd_soc_unregister_component(&pdev->dev);
  26192. return 0;
  26193. }
  26194. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  26195. {.compatible = "qcom,msm-pcm-routing"},
  26196. {}
  26197. };
  26198. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  26199. static struct platform_driver msm_routing_pcm_driver = {
  26200. .driver = {
  26201. .name = "msm-pcm-routing",
  26202. .owner = THIS_MODULE,
  26203. .of_match_table = msm_pcm_routing_dt_match,
  26204. .suppress_bind_attrs = true,
  26205. },
  26206. .probe = msm_routing_pcm_probe,
  26207. .remove = msm_routing_pcm_remove,
  26208. };
  26209. int msm_routing_check_backend_enabled(int fedai_id)
  26210. {
  26211. int i;
  26212. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  26213. /* bad ID assigned in machine driver */
  26214. pr_err("%s: bad MM ID\n", __func__);
  26215. return 0;
  26216. }
  26217. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26218. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  26219. return msm_bedais[i].active;
  26220. }
  26221. return 0;
  26222. }
  26223. static int get_cal_type_index(int32_t cal_type)
  26224. {
  26225. int ret = -EINVAL;
  26226. switch (cal_type) {
  26227. case ADM_TOPOLOGY_CAL_TYPE:
  26228. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  26229. break;
  26230. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  26231. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  26232. break;
  26233. default:
  26234. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  26235. }
  26236. return ret;
  26237. }
  26238. static int msm_routing_set_cal(int32_t cal_type,
  26239. size_t data_size, void *data)
  26240. {
  26241. int ret = 0;
  26242. int cal_index;
  26243. pr_debug("%s\n", __func__);
  26244. cal_index = get_cal_type_index(cal_type);
  26245. if (cal_index < 0) {
  26246. pr_err("%s: Could not get cal index %d\n",
  26247. __func__, cal_index);
  26248. ret = -EINVAL;
  26249. goto done;
  26250. }
  26251. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  26252. if (ret < 0) {
  26253. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  26254. __func__, ret, cal_type);
  26255. ret = -EINVAL;
  26256. goto done;
  26257. }
  26258. /* Pre-load if it is ADM topology */
  26259. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  26260. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  26261. msm_routing_load_topology(data_size, data);
  26262. }
  26263. done:
  26264. return ret;
  26265. }
  26266. static void msm_routing_delete_cal_data(void)
  26267. {
  26268. pr_debug("%s\n", __func__);
  26269. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  26270. }
  26271. static int msm_routing_init_cal_data(void)
  26272. {
  26273. int ret = 0;
  26274. struct cal_type_info cal_type_info[] = {
  26275. {{ADM_TOPOLOGY_CAL_TYPE,
  26276. {NULL, NULL, NULL,
  26277. msm_routing_set_cal, NULL, NULL} },
  26278. {NULL, NULL, cal_utils_match_buf_num} },
  26279. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  26280. {NULL, NULL, NULL,
  26281. msm_routing_set_cal, NULL, NULL} },
  26282. {NULL, NULL, cal_utils_match_buf_num} },
  26283. };
  26284. pr_debug("%s\n", __func__);
  26285. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  26286. &cal_type_info[0]);
  26287. if (ret < 0) {
  26288. pr_err("%s: could not create cal type!\n",
  26289. __func__);
  26290. ret = -EINVAL;
  26291. goto err;
  26292. }
  26293. return ret;
  26294. err:
  26295. msm_routing_delete_cal_data();
  26296. return ret;
  26297. }
  26298. int __init msm_soc_routing_platform_init(void)
  26299. {
  26300. mutex_init(&routing_lock);
  26301. if (msm_routing_init_cal_data())
  26302. pr_err("%s: could not init cal data!\n", __func__);
  26303. afe_set_routing_callback(
  26304. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  26305. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26306. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  26307. return platform_driver_register(&msm_routing_pcm_driver);
  26308. }
  26309. void msm_soc_routing_platform_exit(void)
  26310. {
  26311. msm_routing_delete_cal_data();
  26312. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26313. mutex_destroy(&routing_lock);
  26314. platform_driver_unregister(&msm_routing_pcm_driver);
  26315. }
  26316. MODULE_DESCRIPTION("MSM routing platform driver");
  26317. MODULE_LICENSE("GPL v2");