msm-pcm-routing-v2.c 824 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  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. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. };
  576. /* Track ASM playback & capture sessions of DAI
  577. * Track LSM listen sessions
  578. */
  579. static struct msm_pcm_routing_fdai_data
  580. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  581. /* MULTIMEDIA1 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA2 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA3 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA4 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA5 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA6 */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA7*/
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA8 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA9 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA10 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA11 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA12 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA13 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA14 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA15 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA16 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA17 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA18 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA19 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA20 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA21 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA28 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* MULTIMEDIA29 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* VOIP */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* AFE_RX */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* AFE_TX */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* VOICE_STUB */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* DTMF_RX */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* QCHAT */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* VOLTE_STUB */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM1 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM2 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM3 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM4 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM5 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM6 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* LSM7 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* LSM8 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICE2_STUB */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* VOICEMMODE1 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. /* VOICEMMODE2 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  704. };
  705. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  706. [MSM_BACKEND_DAI_MAX];
  707. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  708. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  709. static struct msm_pcm_stream_app_type_cfg
  710. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  711. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  712. /* The caller of this should aqcuire routing lock */
  713. void msm_pcm_routing_get_bedai_info(int be_idx,
  714. struct msm_pcm_routing_bdai_data *be_dai)
  715. {
  716. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  717. memcpy(be_dai, &msm_bedais[be_idx],
  718. sizeof(struct msm_pcm_routing_bdai_data));
  719. }
  720. /* The caller of this should aqcuire routing lock */
  721. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  722. struct msm_pcm_routing_fdai_data *fe_dai)
  723. {
  724. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  725. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  726. sizeof(struct msm_pcm_routing_fdai_data));
  727. }
  728. void msm_pcm_routing_acquire_lock(void)
  729. {
  730. mutex_lock(&routing_lock);
  731. }
  732. void msm_pcm_routing_release_lock(void)
  733. {
  734. mutex_unlock(&routing_lock);
  735. }
  736. static int msm_pcm_routing_get_app_type_idx(int app_type)
  737. {
  738. int idx;
  739. pr_debug("%s: app_type: %d\n", __func__, app_type);
  740. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  741. if (app_type_cfg[idx].app_type == app_type)
  742. return idx;
  743. }
  744. pr_info("%s: App type not available, fallback to default\n", __func__);
  745. return 0;
  746. }
  747. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  748. {
  749. int idx;
  750. pr_debug("%s: app_type: %d\n", __func__, app_type);
  751. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  752. if (lsm_app_type_cfg[idx].app_type == app_type)
  753. return idx;
  754. }
  755. pr_debug("%s: App type not available, fallback to default\n", __func__);
  756. return 0;
  757. }
  758. static bool is_mm_lsm_fe_id(int fe_id)
  759. {
  760. bool rc = true;
  761. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  762. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  763. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  764. rc = false;
  765. }
  766. return rc;
  767. }
  768. /*
  769. * msm_pcm_routing_send_chmix_cfg:
  770. * send the channel mixer command to mix the input channels
  771. * into output channels.
  772. *
  773. * @fe_id: front end id
  774. * @ip_channel_cnt: input channel count
  775. * @op_channel_cnt: output channel count
  776. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  777. * @session_type: indicates session is of type TX or RX
  778. * @stream_type: indicates either Audio or Listen stream type
  779. */
  780. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  781. int op_channel_cnt, int *ch_wght_coeff,
  782. int session_type, int stream_type)
  783. {
  784. int rc = 0, idx = 0;
  785. int be_index = 0, port_id;
  786. unsigned int session_id = 0;
  787. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  788. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  789. stream_type);
  790. if (!is_mm_lsm_fe_id(fe_id)) {
  791. /* bad ID assigned in machine driver */
  792. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  793. return -EINVAL;
  794. }
  795. if (ch_wght_coeff == NULL) {
  796. pr_err("%s: Null channel weightage coefficients passed\n",
  797. __func__);
  798. return -EINVAL;
  799. }
  800. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  801. port_id = msm_bedais[be_index].port_id;
  802. if (!msm_bedais[be_index].active ||
  803. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  804. continue;
  805. session_id = fe_dai_map[fe_id][session_type].strm_id;
  806. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  807. unsigned long copp =
  808. session_copp_map[fe_id][session_type][be_index];
  809. if (!test_bit(idx, &copp))
  810. continue;
  811. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  812. session_id, ip_channel_cnt,
  813. op_channel_cnt, ch_wght_coeff,
  814. session_type, stream_type);
  815. if (rc < 0)
  816. pr_err("%s: err setting channel mix config\n",
  817. __func__);
  818. }
  819. }
  820. return 0;
  821. }
  822. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  823. int msm_pcm_routing_reg_stream_app_type_cfg(
  824. int fedai_id, int session_type, int be_id,
  825. struct msm_pcm_stream_app_type_cfg *cfg_data)
  826. {
  827. int ret = 0;
  828. if (cfg_data == NULL) {
  829. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  830. ret = -EINVAL;
  831. goto done;
  832. }
  833. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  834. __func__, fedai_id, session_type, be_id,
  835. cfg_data->app_type, cfg_data->acdb_dev_id,
  836. cfg_data->sample_rate);
  837. if (!is_mm_lsm_fe_id(fedai_id)) {
  838. pr_err("%s: Invalid machine driver ID %d\n",
  839. __func__, fedai_id);
  840. ret = -EINVAL;
  841. goto done;
  842. }
  843. if (session_type != SESSION_TYPE_RX &&
  844. session_type != SESSION_TYPE_TX) {
  845. pr_err("%s: Invalid session type %d\n",
  846. __func__, session_type);
  847. ret = -EINVAL;
  848. goto done;
  849. }
  850. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  851. pr_err("%s: Received out of bounds be_id %d\n",
  852. __func__, be_id);
  853. ret = -EINVAL;
  854. goto done;
  855. }
  856. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  857. /*
  858. * Store the BE ID of the configuration information set as the latest so
  859. * the get mixer control knows what to return.
  860. */
  861. last_be_id_configured[fedai_id][session_type] = be_id;
  862. done:
  863. return ret;
  864. }
  865. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  866. /**
  867. * msm_pcm_routing_get_stream_app_type_cfg
  868. *
  869. * Receives fedai_id, session_type, be_id, and populates app_type,
  870. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  871. * -EINVAL and does not alter passed values.
  872. *
  873. * fedai_id - Passed value, front end ID for which app type config is wanted
  874. * session_type - Passed value, session type for which app type config
  875. * is wanted
  876. * be_id - Returned value, back end device id the app type config data is for
  877. * cfg_data - Returned value, configuration data used by app type config
  878. */
  879. int msm_pcm_routing_get_stream_app_type_cfg(
  880. int fedai_id, int session_type, int *bedai_id,
  881. struct msm_pcm_stream_app_type_cfg *cfg_data)
  882. {
  883. int be_id;
  884. int ret = 0;
  885. if (bedai_id == NULL) {
  886. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  887. ret = -EINVAL;
  888. goto done;
  889. } else if (cfg_data == NULL) {
  890. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  891. ret = -EINVAL;
  892. goto done;
  893. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  894. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  895. ret = -EINVAL;
  896. goto done;
  897. } else if (session_type != SESSION_TYPE_RX &&
  898. session_type != SESSION_TYPE_TX) {
  899. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  900. ret = -EINVAL;
  901. goto done;
  902. }
  903. be_id = last_be_id_configured[fedai_id][session_type];
  904. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  905. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  906. ret = -EINVAL;
  907. goto done;
  908. }
  909. *bedai_id = be_id;
  910. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  911. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  912. __func__, fedai_id, session_type, *bedai_id,
  913. cfg_data->app_type, cfg_data->acdb_dev_id,
  914. cfg_data->sample_rate);
  915. done:
  916. return ret;
  917. }
  918. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  919. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  920. int cal_index)
  921. {
  922. struct list_head *ptr, *next;
  923. struct cal_block_data *cal_block = NULL;
  924. pr_debug("%s\n", __func__);
  925. list_for_each_safe(ptr, next,
  926. &cal_data[cal_index]->cal_blocks) {
  927. cal_block = list_entry(ptr,
  928. struct cal_block_data, list);
  929. if (cal_utils_is_cal_stale(cal_block))
  930. continue;
  931. if (((struct audio_cal_info_adm_top *)cal_block
  932. ->cal_info)->path == path) {
  933. return cal_block;
  934. }
  935. }
  936. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  937. return NULL;
  938. }
  939. static struct cal_block_data *msm_routing_find_topology(int path,
  940. int app_type,
  941. int acdb_id,
  942. int cal_index)
  943. {
  944. struct list_head *ptr, *next;
  945. struct cal_block_data *cal_block = NULL;
  946. struct audio_cal_info_adm_top *cal_info;
  947. pr_debug("%s\n", __func__);
  948. list_for_each_safe(ptr, next,
  949. &cal_data[cal_index]->cal_blocks) {
  950. cal_block = list_entry(ptr,
  951. struct cal_block_data, list);
  952. if (cal_utils_is_cal_stale(cal_block))
  953. continue;
  954. cal_info = (struct audio_cal_info_adm_top *)
  955. cal_block->cal_info;
  956. if ((cal_info->path == path) &&
  957. (cal_info->app_type == app_type) &&
  958. (cal_info->acdb_id == acdb_id)) {
  959. return cal_block;
  960. }
  961. }
  962. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  963. __func__, path, app_type, acdb_id);
  964. return msm_routing_find_topology_by_path(path, cal_index);
  965. }
  966. /*
  967. * Retrieving cal_block will mark cal_block as stale.
  968. * Hence it cannot be reused or resent unless the flag
  969. * is reset.
  970. */
  971. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  972. int be_id)
  973. {
  974. int topology = NULL_COPP_TOPOLOGY;
  975. struct cal_block_data *cal_block = NULL;
  976. int app_type = 0, acdb_dev_id = 0;
  977. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  978. __func__, fedai_id, session_type, be_id);
  979. if (cal_data == NULL)
  980. goto done;
  981. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  982. acdb_dev_id =
  983. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  984. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  985. cal_block = msm_routing_find_topology(session_type, app_type,
  986. acdb_dev_id,
  987. ADM_TOPOLOGY_CAL_TYPE_IDX);
  988. if (cal_block != NULL) {
  989. topology = ((struct audio_cal_info_adm_top *)
  990. cal_block->cal_info)->topology;
  991. cal_utils_mark_cal_used(cal_block);
  992. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  993. } else {
  994. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  995. pr_debug("%s: Check for LSM topology\n", __func__);
  996. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  997. cal_block = msm_routing_find_topology(session_type, app_type,
  998. acdb_dev_id,
  999. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1000. if (cal_block != NULL) {
  1001. topology = ((struct audio_cal_info_adm_top *)
  1002. cal_block->cal_info)->topology;
  1003. cal_utils_mark_cal_used(cal_block);
  1004. }
  1005. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1006. }
  1007. done:
  1008. pr_debug("%s: Using topology %d\n", __func__, topology);
  1009. return topology;
  1010. }
  1011. static uint8_t is_be_dai_extproc(int be_dai)
  1012. {
  1013. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1014. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1015. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1016. return 1;
  1017. else
  1018. return 0;
  1019. }
  1020. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1021. int path_type, int perf_mode,
  1022. uint32_t passthr_mode)
  1023. {
  1024. int i, port_type, j, num_copps = 0;
  1025. struct route_payload payload;
  1026. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1027. path_type == ADM_PATH_COMPRESSED_RX) ?
  1028. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1029. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1030. if (!is_be_dai_extproc(i) &&
  1031. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1032. (msm_bedais[i].active) &&
  1033. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1034. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1035. unsigned long copp =
  1036. session_copp_map[fedai_id][sess_type][i];
  1037. if (test_bit(j, &copp)) {
  1038. payload.port_id[num_copps] =
  1039. msm_bedais[i].port_id;
  1040. payload.copp_idx[num_copps] = j;
  1041. payload.app_type[num_copps] =
  1042. fe_dai_app_type_cfg
  1043. [fedai_id][sess_type][i]
  1044. .app_type;
  1045. payload.acdb_dev_id[num_copps] =
  1046. fe_dai_app_type_cfg
  1047. [fedai_id][sess_type][i]
  1048. .acdb_dev_id;
  1049. payload.sample_rate[num_copps] =
  1050. fe_dai_app_type_cfg
  1051. [fedai_id][sess_type][i]
  1052. .sample_rate;
  1053. num_copps++;
  1054. }
  1055. }
  1056. }
  1057. }
  1058. if (num_copps) {
  1059. payload.num_copps = num_copps;
  1060. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1061. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1062. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1063. }
  1064. }
  1065. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1066. int stream_type)
  1067. {
  1068. int i, session_type, path_type, port_type;
  1069. u32 mode = 0;
  1070. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1071. /* bad ID assigned in machine driver */
  1072. pr_err("%s: bad MM ID\n", __func__);
  1073. return;
  1074. }
  1075. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1076. session_type = SESSION_TYPE_RX;
  1077. path_type = ADM_PATH_PLAYBACK;
  1078. port_type = MSM_AFE_PORT_TYPE_RX;
  1079. } else {
  1080. session_type = SESSION_TYPE_TX;
  1081. path_type = ADM_PATH_LIVE_REC;
  1082. port_type = MSM_AFE_PORT_TYPE_TX;
  1083. }
  1084. mutex_lock(&routing_lock);
  1085. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1086. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1087. if (!is_be_dai_extproc(i) &&
  1088. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1089. (msm_bedais[i].active) &&
  1090. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1091. mode = afe_get_port_type(msm_bedais[i].port_id);
  1092. adm_connect_afe_port(mode, dspst_id,
  1093. msm_bedais[i].port_id);
  1094. break;
  1095. }
  1096. }
  1097. mutex_unlock(&routing_lock);
  1098. }
  1099. static bool route_check_fe_id_adm_support(int fe_id)
  1100. {
  1101. bool rc = true;
  1102. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1103. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1104. /* fe id is listen while port is set to afe */
  1105. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1106. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1107. __func__, fe_id, lsm_port_index);
  1108. rc = false;
  1109. }
  1110. }
  1111. return rc;
  1112. }
  1113. /*
  1114. * msm_pcm_routing_get_pp_ch_cnt:
  1115. * Read the processed channel count
  1116. *
  1117. * @fe_id: Front end ID
  1118. * @session_type: Inidicates RX or TX session type
  1119. */
  1120. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1121. {
  1122. struct msm_pcm_stream_app_type_cfg cfg_data;
  1123. int be_id = 0, app_type_idx = 0, app_type = 0;
  1124. int ret = -EINVAL;
  1125. memset(&cfg_data, 0, sizeof(cfg_data));
  1126. if (!is_mm_lsm_fe_id(fe_id)) {
  1127. pr_err("%s: bad MM ID\n", __func__);
  1128. return -EINVAL;
  1129. }
  1130. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1131. &be_id, &cfg_data);
  1132. if (ret) {
  1133. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1134. return ret;
  1135. }
  1136. app_type = cfg_data.app_type;
  1137. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1138. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1139. }
  1140. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1141. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1142. int dspst_id, int stream_type,
  1143. uint32_t passthr_mode)
  1144. {
  1145. int i, j, session_type, path_type, port_type, topology;
  1146. int num_copps = 0;
  1147. struct route_payload payload;
  1148. u32 channels, sample_rate;
  1149. u16 bit_width = 16;
  1150. bool is_lsm;
  1151. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1152. __func__, fe_id, perf_mode, dspst_id,
  1153. stream_type, passthr_mode);
  1154. if (!is_mm_lsm_fe_id(fe_id)) {
  1155. /* bad ID assigned in machine driver */
  1156. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1157. return -EINVAL;
  1158. }
  1159. if (!route_check_fe_id_adm_support(fe_id)) {
  1160. /* ignore adm open if not supported for fe_id */
  1161. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1162. return 0;
  1163. }
  1164. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1165. session_type = SESSION_TYPE_RX;
  1166. if (passthr_mode != LEGACY_PCM)
  1167. path_type = ADM_PATH_COMPRESSED_RX;
  1168. else
  1169. path_type = ADM_PATH_PLAYBACK;
  1170. port_type = MSM_AFE_PORT_TYPE_RX;
  1171. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1172. session_type = SESSION_TYPE_TX;
  1173. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1174. path_type = ADM_PATH_COMPRESSED_TX;
  1175. else
  1176. path_type = ADM_PATH_LIVE_REC;
  1177. port_type = MSM_AFE_PORT_TYPE_TX;
  1178. } else {
  1179. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1180. return -EINVAL;
  1181. }
  1182. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1183. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1184. mutex_lock(&routing_lock);
  1185. payload.num_copps = 0; /* only RX needs to use payload */
  1186. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1187. /* re-enable EQ if active */
  1188. msm_qti_pp_send_eq_values(fe_id);
  1189. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1190. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1191. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1192. if (!is_be_dai_extproc(i) &&
  1193. (afe_get_port_type(msm_bedais[i].port_id) ==
  1194. port_type) &&
  1195. (msm_bedais[i].active) &&
  1196. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1197. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1198. /*
  1199. * check if ADM needs to be configured with different
  1200. * channel mapping than backend
  1201. */
  1202. if (!msm_bedais[i].adm_override_ch)
  1203. channels = msm_bedais[i].channel;
  1204. else
  1205. channels = msm_bedais[i].adm_override_ch;
  1206. bit_width = msm_routing_get_bit_width(
  1207. msm_bedais[i].format);
  1208. app_type =
  1209. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1210. if (app_type && is_lsm) {
  1211. app_type_idx =
  1212. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1213. sample_rate =
  1214. fe_dai_app_type_cfg[fe_id][session_type][i]
  1215. .sample_rate;
  1216. bit_width =
  1217. lsm_app_type_cfg[app_type_idx].bit_width;
  1218. } else if (app_type) {
  1219. app_type_idx =
  1220. msm_pcm_routing_get_app_type_idx(
  1221. app_type);
  1222. sample_rate =
  1223. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1224. bit_width =
  1225. app_type_cfg[app_type_idx].bit_width;
  1226. } else {
  1227. sample_rate = msm_bedais[i].sample_rate;
  1228. }
  1229. acdb_dev_id =
  1230. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1231. topology = msm_routing_get_adm_topology(fe_id,
  1232. session_type,
  1233. i);
  1234. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1235. || (passthr_mode ==
  1236. COMPRESSED_PASSTHROUGH_GEN))
  1237. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1238. pr_debug("%s: Before adm open topology %d\n", __func__,
  1239. topology);
  1240. copp_idx =
  1241. adm_open(msm_bedais[i].port_id,
  1242. path_type, sample_rate, channels,
  1243. topology, perf_mode, bit_width,
  1244. app_type, acdb_dev_id);
  1245. if ((copp_idx < 0) ||
  1246. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1247. pr_err("%s:adm open failed coppid:%d\n",
  1248. __func__, copp_idx);
  1249. mutex_unlock(&routing_lock);
  1250. return -EINVAL;
  1251. }
  1252. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1253. __func__, fe_id, session_type, i);
  1254. set_bit(copp_idx,
  1255. &session_copp_map[fe_id][session_type][i]);
  1256. if (msm_is_resample_needed(
  1257. sample_rate,
  1258. msm_bedais[i].sample_rate))
  1259. adm_copp_mfc_cfg(
  1260. msm_bedais[i].port_id, copp_idx,
  1261. msm_bedais[i].sample_rate);
  1262. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1263. unsigned long copp =
  1264. session_copp_map[fe_id][session_type][i];
  1265. if (test_bit(j, &copp)) {
  1266. payload.port_id[num_copps] =
  1267. msm_bedais[i].port_id;
  1268. payload.copp_idx[num_copps] = j;
  1269. payload.app_type[num_copps] =
  1270. fe_dai_app_type_cfg
  1271. [fe_id][session_type][i]
  1272. .app_type;
  1273. payload.acdb_dev_id[num_copps] =
  1274. fe_dai_app_type_cfg
  1275. [fe_id][session_type][i]
  1276. .acdb_dev_id;
  1277. payload.sample_rate[num_copps] =
  1278. fe_dai_app_type_cfg
  1279. [fe_id][session_type][i]
  1280. .sample_rate;
  1281. num_copps++;
  1282. }
  1283. }
  1284. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1285. && passthr_mode !=
  1286. COMPRESSED_PASSTHROUGH_GEN) {
  1287. msm_routing_send_device_pp_params(
  1288. msm_bedais[i].port_id,
  1289. copp_idx, fe_id);
  1290. }
  1291. }
  1292. }
  1293. if (num_copps) {
  1294. payload.num_copps = num_copps;
  1295. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1296. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1297. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1298. }
  1299. mutex_unlock(&routing_lock);
  1300. return 0;
  1301. }
  1302. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1303. {
  1304. u32 session_id;
  1305. switch (val) {
  1306. case MSM_FRONTEND_DAI_QCHAT:
  1307. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1308. break;
  1309. case MSM_FRONTEND_DAI_VOIP:
  1310. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1311. break;
  1312. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1313. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1314. break;
  1315. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1316. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1317. break;
  1318. default:
  1319. session_id = 0;
  1320. }
  1321. pr_debug("%s session_id 0x%x", __func__, session_id);
  1322. return session_id;
  1323. }
  1324. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1325. int dspst_id, int stream_type)
  1326. {
  1327. int copp_idx = 0;
  1328. int sess_type = 0;
  1329. int i = 0, j = 0, be_id;
  1330. int ret = 0;
  1331. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1332. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1333. return 0;
  1334. }
  1335. if (!(channel_mixer[fe_id].enable)) {
  1336. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1337. __func__, fe_id);
  1338. return 0;
  1339. }
  1340. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1341. sess_type = SESSION_TYPE_RX;
  1342. else
  1343. sess_type = SESSION_TYPE_TX;
  1344. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1345. ++i) {
  1346. be_id = channel_input[fe_id][i] - 1;
  1347. channel_mixer[fe_id].input_channels[i] =
  1348. msm_bedais[be_id].channel;
  1349. if ((msm_bedais[be_id].active) &&
  1350. test_bit(fe_id,
  1351. &msm_bedais[be_id].fe_sessions[0])) {
  1352. unsigned long copp =
  1353. session_copp_map[fe_id][sess_type][be_id];
  1354. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1355. if (test_bit(j, &copp)) {
  1356. copp_idx = j;
  1357. break;
  1358. }
  1359. }
  1360. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1361. __func__,
  1362. fe_id, be_id, msm_bedais[be_id].channel,
  1363. copp_idx);
  1364. ret = adm_programable_channel_mixer(
  1365. msm_bedais[be_id].port_id,
  1366. copp_idx, dspst_id, sess_type,
  1367. channel_mixer + fe_id, i);
  1368. }
  1369. }
  1370. return ret;
  1371. }
  1372. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1373. int dspst_id, int stream_type)
  1374. {
  1375. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1376. struct route_payload payload;
  1377. u32 channels, sample_rate;
  1378. uint16_t bits_per_sample = 16;
  1379. uint32_t passthr_mode = LEGACY_PCM;
  1380. int ret = 0;
  1381. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1382. /* bad ID assigned in machine driver */
  1383. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1384. return -EINVAL;
  1385. }
  1386. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1387. session_type = SESSION_TYPE_RX;
  1388. path_type = ADM_PATH_PLAYBACK;
  1389. port_type = MSM_AFE_PORT_TYPE_RX;
  1390. } else {
  1391. session_type = SESSION_TYPE_TX;
  1392. path_type = ADM_PATH_LIVE_REC;
  1393. port_type = MSM_AFE_PORT_TYPE_TX;
  1394. }
  1395. mutex_lock(&routing_lock);
  1396. payload.num_copps = 0; /* only RX needs to use payload */
  1397. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1398. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1399. /* re-enable EQ if active */
  1400. msm_qti_pp_send_eq_values(fedai_id);
  1401. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1402. if (!is_be_dai_extproc(i) &&
  1403. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1404. (msm_bedais[i].active) &&
  1405. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1406. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1407. /*
  1408. * check if ADM needs to be configured with different
  1409. * channel mapping than backend
  1410. */
  1411. if (!msm_bedais[i].adm_override_ch)
  1412. channels = msm_bedais[i].channel;
  1413. else
  1414. channels = msm_bedais[i].adm_override_ch;
  1415. msm_bedais[i].passthr_mode[fedai_id] =
  1416. LEGACY_PCM;
  1417. bits_per_sample = msm_routing_get_bit_width(
  1418. msm_bedais[i].format);
  1419. app_type =
  1420. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1421. if (app_type) {
  1422. app_type_idx =
  1423. msm_pcm_routing_get_app_type_idx(app_type);
  1424. sample_rate =
  1425. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1426. .sample_rate;
  1427. bits_per_sample =
  1428. app_type_cfg[app_type_idx].bit_width;
  1429. } else
  1430. sample_rate = msm_bedais[i].sample_rate;
  1431. acdb_dev_id =
  1432. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1433. .acdb_dev_id;
  1434. topology = msm_routing_get_adm_topology(fedai_id,
  1435. session_type,
  1436. i);
  1437. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1438. sample_rate, channels, topology,
  1439. perf_mode, bits_per_sample,
  1440. app_type, acdb_dev_id);
  1441. if ((copp_idx < 0) ||
  1442. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1443. pr_err("%s: adm open failed copp_idx:%d\n",
  1444. __func__, copp_idx);
  1445. mutex_unlock(&routing_lock);
  1446. return -EINVAL;
  1447. }
  1448. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1449. __func__, fedai_id, session_type, i);
  1450. set_bit(copp_idx,
  1451. &session_copp_map[fedai_id][session_type][i]);
  1452. if (msm_is_resample_needed(
  1453. sample_rate,
  1454. msm_bedais[i].sample_rate))
  1455. adm_copp_mfc_cfg(
  1456. msm_bedais[i].port_id, copp_idx,
  1457. msm_bedais[i].sample_rate);
  1458. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1459. unsigned long copp =
  1460. session_copp_map[fedai_id][session_type][i];
  1461. if (test_bit(j, &copp)) {
  1462. payload.port_id[num_copps] =
  1463. msm_bedais[i].port_id;
  1464. payload.copp_idx[num_copps] = j;
  1465. payload.app_type[num_copps] =
  1466. fe_dai_app_type_cfg
  1467. [fedai_id][session_type]
  1468. [i].app_type;
  1469. payload.acdb_dev_id[num_copps] =
  1470. fe_dai_app_type_cfg
  1471. [fedai_id][session_type]
  1472. [i].acdb_dev_id;
  1473. payload.sample_rate[num_copps] =
  1474. fe_dai_app_type_cfg
  1475. [fedai_id][session_type]
  1476. [i].sample_rate;
  1477. num_copps++;
  1478. }
  1479. }
  1480. if ((perf_mode == LEGACY_PCM_MODE) &&
  1481. (msm_bedais[i].passthr_mode[fedai_id] ==
  1482. LEGACY_PCM))
  1483. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1484. copp_idx, topology,
  1485. channels);
  1486. }
  1487. }
  1488. if (num_copps) {
  1489. payload.num_copps = num_copps;
  1490. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1491. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1492. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1493. }
  1494. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1495. dspst_id, stream_type);
  1496. mutex_unlock(&routing_lock);
  1497. return ret;
  1498. }
  1499. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1500. int dspst_id, int stream_type,
  1501. struct msm_pcm_routing_evt event_info)
  1502. {
  1503. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1504. stream_type)) {
  1505. pr_err("%s: failed to reg phy stream\n", __func__);
  1506. return -EINVAL;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1510. else
  1511. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1512. return 0;
  1513. }
  1514. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1515. {
  1516. int i, port_type, session_type, path_type, topology;
  1517. struct msm_pcm_routing_fdai_data *fdai;
  1518. if (!is_mm_lsm_fe_id(fedai_id)) {
  1519. /* bad ID assigned in machine driver */
  1520. pr_err("%s: bad MM ID\n", __func__);
  1521. return;
  1522. }
  1523. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1524. port_type = MSM_AFE_PORT_TYPE_RX;
  1525. session_type = SESSION_TYPE_RX;
  1526. path_type = ADM_PATH_PLAYBACK;
  1527. } else {
  1528. port_type = MSM_AFE_PORT_TYPE_TX;
  1529. session_type = SESSION_TYPE_TX;
  1530. path_type = ADM_PATH_LIVE_REC;
  1531. }
  1532. mutex_lock(&routing_lock);
  1533. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1534. if (!is_be_dai_extproc(i) &&
  1535. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1536. (msm_bedais[i].active) &&
  1537. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1538. int idx;
  1539. unsigned long copp =
  1540. session_copp_map[fedai_id][session_type][i];
  1541. fdai = &fe_dai_map[fedai_id][session_type];
  1542. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1543. if (test_bit(idx, &copp))
  1544. break;
  1545. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1546. pr_debug("%s: copp idx is invalid, exiting\n",
  1547. __func__);
  1548. continue;
  1549. }
  1550. topology = adm_get_topology_for_port_copp_idx(
  1551. msm_bedais[i].port_id, idx);
  1552. msm_routing_unload_topology(topology);
  1553. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1554. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1555. __func__, copp, fedai_id, session_type, i);
  1556. clear_bit(idx,
  1557. &session_copp_map[fedai_id][session_type][i]);
  1558. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1559. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1560. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1561. (msm_bedais[i].passthr_mode[fedai_id] ==
  1562. LEGACY_PCM))
  1563. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1564. topology);
  1565. }
  1566. }
  1567. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1568. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1569. mutex_unlock(&routing_lock);
  1570. }
  1571. /* Check if FE/BE route is set */
  1572. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1573. {
  1574. bool rc = false;
  1575. if (!is_mm_lsm_fe_id(fe_id)) {
  1576. /* recheck FE ID in the mixer control defined in this file */
  1577. pr_err("%s: bad MM ID\n", __func__);
  1578. return rc;
  1579. }
  1580. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1581. rc = true;
  1582. return rc;
  1583. }
  1584. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1585. {
  1586. int session_type, path_type, topology;
  1587. u32 channels, sample_rate;
  1588. uint16_t bits_per_sample = 16;
  1589. struct msm_pcm_routing_fdai_data *fdai;
  1590. uint32_t passthr_mode;
  1591. bool is_lsm;
  1592. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1593. if (!is_mm_lsm_fe_id(val)) {
  1594. /* recheck FE ID in the mixer control defined in this file */
  1595. pr_err("%s: bad MM ID\n", __func__);
  1596. return;
  1597. }
  1598. if (!route_check_fe_id_adm_support(val)) {
  1599. /* ignore adm open if not supported for fe_id */
  1600. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1601. return;
  1602. }
  1603. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1604. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1605. MSM_AFE_PORT_TYPE_RX) {
  1606. session_type = SESSION_TYPE_RX;
  1607. if (passthr_mode != LEGACY_PCM)
  1608. path_type = ADM_PATH_COMPRESSED_RX;
  1609. else
  1610. path_type = ADM_PATH_PLAYBACK;
  1611. } else {
  1612. session_type = SESSION_TYPE_TX;
  1613. if (passthr_mode != LEGACY_PCM)
  1614. path_type = ADM_PATH_COMPRESSED_TX;
  1615. else
  1616. path_type = ADM_PATH_LIVE_REC;
  1617. }
  1618. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1619. (val <= MSM_FRONTEND_DAI_LSM8);
  1620. mutex_lock(&routing_lock);
  1621. if (set) {
  1622. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1623. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1624. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1625. voc_start_playback(set, msm_bedais[reg].port_id);
  1626. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1627. fdai = &fe_dai_map[val][session_type];
  1628. if (msm_bedais[reg].active && fdai->strm_id !=
  1629. INVALID_SESSION) {
  1630. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1631. /*
  1632. * check if ADM needs to be configured with different
  1633. * channel mapping than backend
  1634. */
  1635. if (!msm_bedais[reg].adm_override_ch)
  1636. channels = msm_bedais[reg].channel;
  1637. else
  1638. channels = msm_bedais[reg].adm_override_ch;
  1639. if (session_type == SESSION_TYPE_TX &&
  1640. fdai->be_srate &&
  1641. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1642. pr_debug("%s: flush strm %d diff BE rates\n",
  1643. __func__, fdai->strm_id);
  1644. if (fdai->event_info.event_func)
  1645. fdai->event_info.event_func(
  1646. MSM_PCM_RT_EVT_BUF_RECFG,
  1647. fdai->event_info.priv_data);
  1648. fdai->be_srate = 0; /* might not need it */
  1649. }
  1650. bits_per_sample = msm_routing_get_bit_width(
  1651. msm_bedais[reg].format);
  1652. app_type =
  1653. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1654. if (app_type && is_lsm) {
  1655. app_type_idx =
  1656. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1657. sample_rate =
  1658. fe_dai_app_type_cfg[val][session_type][reg]
  1659. .sample_rate;
  1660. bits_per_sample =
  1661. lsm_app_type_cfg[app_type_idx].bit_width;
  1662. } else if (app_type) {
  1663. app_type_idx =
  1664. msm_pcm_routing_get_app_type_idx(app_type);
  1665. sample_rate =
  1666. fe_dai_app_type_cfg[val][session_type][reg]
  1667. .sample_rate;
  1668. bits_per_sample =
  1669. app_type_cfg[app_type_idx].bit_width;
  1670. } else
  1671. sample_rate = msm_bedais[reg].sample_rate;
  1672. topology = msm_routing_get_adm_topology(val,
  1673. session_type,
  1674. reg);
  1675. acdb_dev_id =
  1676. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1677. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1678. sample_rate, channels, topology,
  1679. fdai->perf_mode, bits_per_sample,
  1680. app_type, acdb_dev_id);
  1681. if ((copp_idx < 0) ||
  1682. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1683. pr_err("%s: adm open failed\n", __func__);
  1684. mutex_unlock(&routing_lock);
  1685. return;
  1686. }
  1687. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1688. __func__, val, session_type, reg);
  1689. set_bit(copp_idx,
  1690. &session_copp_map[val][session_type][reg]);
  1691. if (msm_is_resample_needed(
  1692. sample_rate,
  1693. msm_bedais[reg].sample_rate))
  1694. adm_copp_mfc_cfg(
  1695. msm_bedais[reg].port_id, copp_idx,
  1696. msm_bedais[reg].sample_rate);
  1697. if (session_type == SESSION_TYPE_RX &&
  1698. fdai->event_info.event_func)
  1699. fdai->event_info.event_func(
  1700. MSM_PCM_RT_EVT_DEVSWITCH,
  1701. fdai->event_info.priv_data);
  1702. msm_pcm_routing_build_matrix(val, session_type,
  1703. path_type,
  1704. fdai->perf_mode,
  1705. passthr_mode);
  1706. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1707. (passthr_mode == LEGACY_PCM))
  1708. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1709. copp_idx, topology,
  1710. channels);
  1711. }
  1712. } else {
  1713. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1714. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1715. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1716. voc_start_playback(set, msm_bedais[reg].port_id);
  1717. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1718. fdai = &fe_dai_map[val][session_type];
  1719. if (msm_bedais[reg].active && fdai->strm_id !=
  1720. INVALID_SESSION) {
  1721. int idx;
  1722. int port_id;
  1723. unsigned long copp =
  1724. session_copp_map[val][session_type][reg];
  1725. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1726. if (test_bit(idx, &copp))
  1727. break;
  1728. port_id = msm_bedais[reg].port_id;
  1729. topology = adm_get_topology_for_port_copp_idx(port_id,
  1730. idx);
  1731. msm_routing_unload_topology(topology);
  1732. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1733. idx);
  1734. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1735. __func__, copp, val, session_type, reg,
  1736. topology);
  1737. clear_bit(idx,
  1738. &session_copp_map[val][session_type][reg]);
  1739. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1740. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1741. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1742. (passthr_mode == LEGACY_PCM))
  1743. msm_pcm_routing_deinit_pp(
  1744. msm_bedais[reg].port_id,
  1745. topology);
  1746. msm_pcm_routing_build_matrix(val, session_type,
  1747. path_type,
  1748. fdai->perf_mode,
  1749. passthr_mode);
  1750. }
  1751. }
  1752. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1753. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1754. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1755. mutex_unlock(&routing_lock);
  1756. }
  1757. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1758. struct snd_ctl_elem_value *ucontrol)
  1759. {
  1760. struct soc_mixer_control *mc =
  1761. (struct soc_mixer_control *)kcontrol->private_value;
  1762. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1763. ucontrol->value.integer.value[0] = 1;
  1764. else
  1765. ucontrol->value.integer.value[0] = 0;
  1766. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1767. ucontrol->value.integer.value[0]);
  1768. return 0;
  1769. }
  1770. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1771. struct snd_ctl_elem_value *ucontrol)
  1772. {
  1773. struct snd_soc_dapm_widget *widget =
  1774. snd_soc_dapm_kcontrol_widget(kcontrol);
  1775. struct soc_mixer_control *mc =
  1776. (struct soc_mixer_control *)kcontrol->private_value;
  1777. struct snd_soc_dapm_update *update = NULL;
  1778. if (ucontrol->value.integer.value[0] &&
  1779. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1780. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1781. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1782. update);
  1783. } else if (!ucontrol->value.integer.value[0] &&
  1784. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1785. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1786. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1787. update);
  1788. }
  1789. return 1;
  1790. }
  1791. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1792. struct snd_ctl_elem_value *ucontrol)
  1793. {
  1794. struct soc_mixer_control *mc =
  1795. (struct soc_mixer_control *)kcontrol->private_value;
  1796. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1797. ucontrol->value.integer.value[0] = 1;
  1798. else
  1799. ucontrol->value.integer.value[0] = 0;
  1800. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1801. ucontrol->value.integer.value[0]);
  1802. return 0;
  1803. }
  1804. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1805. struct snd_ctl_elem_value *ucontrol)
  1806. {
  1807. struct snd_soc_dapm_widget *widget =
  1808. snd_soc_dapm_kcontrol_widget(kcontrol);
  1809. struct soc_mixer_control *mc =
  1810. (struct soc_mixer_control *)kcontrol->private_value;
  1811. struct snd_soc_dapm_update *update = NULL;
  1812. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1813. ucontrol->value.integer.value[0]);
  1814. if (ucontrol->value.integer.value[0]) {
  1815. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1816. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1817. snd_soc_dapm_mixer_update_power(widget->dapm,
  1818. kcontrol, 1, update);
  1819. } else if (!ucontrol->value.integer.value[0]) {
  1820. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1821. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1822. snd_soc_dapm_mixer_update_power(widget->dapm,
  1823. kcontrol, 0, update);
  1824. }
  1825. return 1;
  1826. }
  1827. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1828. {
  1829. u32 session_id = 0;
  1830. u16 path_type;
  1831. struct media_format_info voc_be_media_format;
  1832. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1833. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1834. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1835. __func__, val, session_id);
  1836. mutex_lock(&routing_lock);
  1837. if (set)
  1838. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1839. else
  1840. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1841. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1842. afe_get_port_type(msm_bedais[reg].port_id) ==
  1843. MSM_AFE_PORT_TYPE_RX) {
  1844. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1845. __func__, set, msm_bedais[reg].port_id);
  1846. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1847. }
  1848. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1849. MSM_AFE_PORT_TYPE_RX)
  1850. path_type = RX_PATH;
  1851. else
  1852. path_type = TX_PATH;
  1853. if (set) {
  1854. if (msm_bedais[reg].active) {
  1855. voc_set_route_flag(session_id, path_type, 1);
  1856. memset(&voc_be_media_format, 0,
  1857. sizeof(struct media_format_info));
  1858. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1859. voc_be_media_format.num_channels =
  1860. msm_bedais[reg].channel;
  1861. voc_be_media_format.sample_rate =
  1862. msm_bedais[reg].sample_rate;
  1863. voc_be_media_format.bits_per_sample =
  1864. msm_bedais[reg].format;
  1865. /* Defaulting this to 1 for voice call usecases */
  1866. voc_be_media_format.channel_mapping[0] = 1;
  1867. voc_set_device_config(session_id, path_type,
  1868. &voc_be_media_format);
  1869. if (voc_get_route_flag(session_id, TX_PATH) &&
  1870. voc_get_route_flag(session_id, RX_PATH))
  1871. voc_enable_device(session_id);
  1872. } else {
  1873. pr_debug("%s BE is not active\n", __func__);
  1874. }
  1875. } else {
  1876. voc_set_route_flag(session_id, path_type, 0);
  1877. voc_disable_device(session_id);
  1878. }
  1879. mutex_unlock(&routing_lock);
  1880. }
  1881. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1882. struct snd_ctl_elem_value *ucontrol)
  1883. {
  1884. struct soc_mixer_control *mc =
  1885. (struct soc_mixer_control *)kcontrol->private_value;
  1886. mutex_lock(&routing_lock);
  1887. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1888. ucontrol->value.integer.value[0] = 1;
  1889. else
  1890. ucontrol->value.integer.value[0] = 0;
  1891. mutex_unlock(&routing_lock);
  1892. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1893. ucontrol->value.integer.value[0]);
  1894. return 0;
  1895. }
  1896. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1897. struct snd_ctl_elem_value *ucontrol)
  1898. {
  1899. struct snd_soc_dapm_widget *widget =
  1900. snd_soc_dapm_kcontrol_widget(kcontrol);
  1901. struct soc_mixer_control *mc =
  1902. (struct soc_mixer_control *)kcontrol->private_value;
  1903. struct snd_soc_dapm_update *update = NULL;
  1904. if (ucontrol->value.integer.value[0]) {
  1905. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1906. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1907. update);
  1908. } else {
  1909. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1910. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1911. update);
  1912. }
  1913. return 1;
  1914. }
  1915. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1916. struct snd_ctl_elem_value *ucontrol)
  1917. {
  1918. struct soc_mixer_control *mc =
  1919. (struct soc_mixer_control *)kcontrol->private_value;
  1920. mutex_lock(&routing_lock);
  1921. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1922. ucontrol->value.integer.value[0] = 1;
  1923. else
  1924. ucontrol->value.integer.value[0] = 0;
  1925. mutex_unlock(&routing_lock);
  1926. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1927. ucontrol->value.integer.value[0]);
  1928. return 0;
  1929. }
  1930. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1931. struct snd_ctl_elem_value *ucontrol)
  1932. {
  1933. struct snd_soc_dapm_widget *widget =
  1934. snd_soc_dapm_kcontrol_widget(kcontrol);
  1935. struct soc_mixer_control *mc =
  1936. (struct soc_mixer_control *)kcontrol->private_value;
  1937. struct snd_soc_dapm_update *update = NULL;
  1938. if (ucontrol->value.integer.value[0]) {
  1939. mutex_lock(&routing_lock);
  1940. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1941. mutex_unlock(&routing_lock);
  1942. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1943. update);
  1944. } else {
  1945. mutex_lock(&routing_lock);
  1946. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1947. mutex_unlock(&routing_lock);
  1948. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1949. update);
  1950. }
  1951. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1952. ucontrol->value.integer.value[0]);
  1953. return 1;
  1954. }
  1955. /*
  1956. * Return the mapping between port ID and backend ID to enable the AFE callback
  1957. * to determine the acdb_dev_id from the port id
  1958. */
  1959. int msm_pcm_get_be_id_from_port_id(int port_id)
  1960. {
  1961. int i;
  1962. int be_id = -EINVAL;
  1963. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1964. if (msm_bedais[i].port_id == port_id) {
  1965. be_id = i;
  1966. break;
  1967. }
  1968. }
  1969. return be_id;
  1970. }
  1971. /*
  1972. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1973. * correct AFE calibration information by comparing the header information.
  1974. */
  1975. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1976. {
  1977. int acdb_id = -EINVAL;
  1978. int i = 0;
  1979. int session;
  1980. int port_type = afe_get_port_type(port_id);
  1981. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1982. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1983. __func__, port_id, be_id, port_type);
  1984. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1985. session = SESSION_TYPE_TX;
  1986. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1987. session = SESSION_TYPE_RX;
  1988. } else {
  1989. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1990. acdb_id = -EINVAL;
  1991. goto exit;
  1992. }
  1993. if (be_id < 0) {
  1994. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1995. goto exit;
  1996. }
  1997. mutex_lock(&routing_lock);
  1998. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1999. MSM_FRONTEND_DAI_MAX);
  2000. if (i < MSM_FRONTEND_DAI_MAX)
  2001. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2002. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2003. __func__, i, session, be_id, acdb_id);
  2004. mutex_unlock(&routing_lock);
  2005. exit:
  2006. return acdb_id;
  2007. }
  2008. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2009. struct snd_ctl_elem_value *ucontrol)
  2010. {
  2011. ucontrol->value.integer.value[0] = fm_switch_enable;
  2012. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2013. ucontrol->value.integer.value[0]);
  2014. return 0;
  2015. }
  2016. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2017. struct snd_ctl_elem_value *ucontrol)
  2018. {
  2019. struct snd_soc_dapm_widget *widget =
  2020. snd_soc_dapm_kcontrol_widget(kcontrol);
  2021. struct snd_soc_dapm_update *update = NULL;
  2022. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2023. ucontrol->value.integer.value[0]);
  2024. if (ucontrol->value.integer.value[0])
  2025. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2026. update);
  2027. else
  2028. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2029. update);
  2030. fm_switch_enable = ucontrol->value.integer.value[0];
  2031. return 1;
  2032. }
  2033. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2034. struct snd_ctl_elem_value *ucontrol)
  2035. {
  2036. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2037. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2038. ucontrol->value.integer.value[0]);
  2039. return 0;
  2040. }
  2041. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2042. struct snd_ctl_elem_value *ucontrol)
  2043. {
  2044. struct snd_soc_dapm_widget *widget =
  2045. snd_soc_dapm_kcontrol_widget(kcontrol);
  2046. struct snd_soc_dapm_update *update = NULL;
  2047. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2048. ucontrol->value.integer.value[0]);
  2049. if (ucontrol->value.integer.value[0])
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2051. 1, update);
  2052. else
  2053. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2054. 0, update);
  2055. hfp_switch_enable = ucontrol->value.integer.value[0];
  2056. return 1;
  2057. }
  2058. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2059. struct snd_ctl_elem_value *ucontrol)
  2060. {
  2061. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2062. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2063. ucontrol->value.integer.value[0]);
  2064. return 0;
  2065. }
  2066. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. struct snd_soc_dapm_widget *widget =
  2070. snd_soc_dapm_kcontrol_widget(kcontrol);
  2071. struct snd_soc_dapm_update *update = NULL;
  2072. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2073. ucontrol->value.integer.value[0]);
  2074. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2075. if (a2dp_switch_enable)
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2077. 1, update);
  2078. else
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2080. 0, update);
  2081. return 1;
  2082. }
  2083. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2084. struct snd_ctl_elem_value *ucontrol)
  2085. {
  2086. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2087. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2088. ucontrol->value.integer.value[0]);
  2089. return 0;
  2090. }
  2091. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2092. struct snd_ctl_elem_value *ucontrol)
  2093. {
  2094. struct snd_soc_dapm_widget *widget =
  2095. snd_soc_dapm_kcontrol_widget(kcontrol);
  2096. struct snd_soc_dapm_update *update = NULL;
  2097. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2098. ucontrol->value.integer.value[0]);
  2099. if (ucontrol->value.integer.value[0])
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2101. update);
  2102. else
  2103. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2104. update);
  2105. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2106. return 1;
  2107. }
  2108. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2112. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2113. ucontrol->value.integer.value[0]);
  2114. return 0;
  2115. }
  2116. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2117. struct snd_ctl_elem_value *ucontrol)
  2118. {
  2119. struct snd_soc_dapm_widget *widget =
  2120. snd_soc_dapm_kcontrol_widget(kcontrol);
  2121. struct snd_soc_dapm_update *update = NULL;
  2122. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2123. ucontrol->value.integer.value[0]);
  2124. if (ucontrol->value.integer.value[0])
  2125. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2126. update);
  2127. else
  2128. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2129. update);
  2130. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2131. return 1;
  2132. }
  2133. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2134. struct snd_ctl_elem_value *ucontrol)
  2135. {
  2136. ucontrol->value.integer.value[0] = usb_switch_enable;
  2137. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2138. ucontrol->value.integer.value[0]);
  2139. return 0;
  2140. }
  2141. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2142. struct snd_ctl_elem_value *ucontrol)
  2143. {
  2144. struct snd_soc_dapm_widget *widget =
  2145. snd_soc_dapm_kcontrol_widget(kcontrol);
  2146. struct snd_soc_dapm_update *update = NULL;
  2147. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2148. ucontrol->value.integer.value[0]);
  2149. if (ucontrol->value.integer.value[0])
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2151. 1, update);
  2152. else
  2153. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2154. 0, update);
  2155. usb_switch_enable = ucontrol->value.integer.value[0];
  2156. return 1;
  2157. }
  2158. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2159. struct snd_ctl_elem_value *ucontrol)
  2160. {
  2161. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2162. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2163. ucontrol->value.integer.value[0]);
  2164. return 0;
  2165. }
  2166. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2167. struct snd_ctl_elem_value *ucontrol)
  2168. {
  2169. struct snd_soc_dapm_widget *widget =
  2170. snd_soc_dapm_kcontrol_widget(kcontrol);
  2171. struct snd_soc_dapm_update *update = NULL;
  2172. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2173. ucontrol->value.integer.value[0]);
  2174. if (ucontrol->value.integer.value[0])
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2176. update);
  2177. else
  2178. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2179. update);
  2180. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2181. return 1;
  2182. }
  2183. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2184. struct snd_ctl_elem_value *ucontrol)
  2185. {
  2186. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2187. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2188. ucontrol->value.integer.value[0]);
  2189. return 0;
  2190. }
  2191. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2192. struct snd_ctl_elem_value *ucontrol)
  2193. {
  2194. struct snd_soc_dapm_widget *widget =
  2195. snd_soc_dapm_kcontrol_widget(kcontrol);
  2196. struct snd_soc_dapm_update *update = NULL;
  2197. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2198. ucontrol->value.integer.value[0]);
  2199. if (ucontrol->value.integer.value[0])
  2200. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2201. update);
  2202. else
  2203. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2204. update);
  2205. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2206. return 1;
  2207. }
  2208. static int msm_routing_get_tert_mi2s_switch_mixer(
  2209. struct snd_kcontrol *kcontrol,
  2210. struct snd_ctl_elem_value *ucontrol)
  2211. {
  2212. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2213. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2214. ucontrol->value.integer.value[0]);
  2215. return 0;
  2216. }
  2217. static int msm_routing_put_tert_mi2s_switch_mixer(
  2218. struct snd_kcontrol *kcontrol,
  2219. struct snd_ctl_elem_value *ucontrol)
  2220. {
  2221. struct snd_soc_dapm_widget *widget =
  2222. snd_soc_dapm_kcontrol_widget(kcontrol);
  2223. struct snd_soc_dapm_update *update = NULL;
  2224. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2225. ucontrol->value.integer.value[0]);
  2226. if (ucontrol->value.integer.value[0])
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2228. update);
  2229. else
  2230. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2231. update);
  2232. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2233. return 1;
  2234. }
  2235. static int msm_routing_get_quat_mi2s_switch_mixer(
  2236. struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2240. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2241. ucontrol->value.integer.value[0]);
  2242. return 0;
  2243. }
  2244. static int msm_routing_put_quat_mi2s_switch_mixer(
  2245. struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. struct snd_soc_dapm_widget *widget =
  2249. snd_soc_dapm_kcontrol_widget(kcontrol);
  2250. struct snd_soc_dapm_update *update = NULL;
  2251. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2252. ucontrol->value.integer.value[0]);
  2253. if (ucontrol->value.integer.value[0])
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2255. update);
  2256. else
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2258. update);
  2259. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2260. return 1;
  2261. }
  2262. static int msm_routing_get_quin_mi2s_switch_mixer(
  2263. struct snd_kcontrol *kcontrol,
  2264. struct snd_ctl_elem_value *ucontrol)
  2265. {
  2266. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2267. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2268. ucontrol->value.integer.value[0]);
  2269. return 0;
  2270. }
  2271. static int msm_routing_put_quin_mi2s_switch_mixer(
  2272. struct snd_kcontrol *kcontrol,
  2273. struct snd_ctl_elem_value *ucontrol)
  2274. {
  2275. struct snd_soc_dapm_widget *widget =
  2276. snd_soc_dapm_kcontrol_widget(kcontrol);
  2277. struct snd_soc_dapm_update *update = NULL;
  2278. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. if (ucontrol->value.integer.value[0])
  2281. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2282. update);
  2283. else
  2284. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2285. update);
  2286. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2287. return 1;
  2288. }
  2289. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2290. struct snd_ctl_elem_value *ucontrol)
  2291. {
  2292. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2293. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2294. ucontrol->value.integer.value[0]);
  2295. return 0;
  2296. }
  2297. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2298. struct snd_ctl_elem_value *ucontrol)
  2299. {
  2300. struct snd_soc_dapm_widget *widget =
  2301. snd_soc_dapm_kcontrol_widget(kcontrol);
  2302. struct snd_soc_dapm_update *update = NULL;
  2303. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. if (ucontrol->value.integer.value[0])
  2306. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2307. update);
  2308. else
  2309. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2310. update);
  2311. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2312. return 1;
  2313. }
  2314. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. ucontrol->value.integer.value[0] = lsm_port_index;
  2318. return 0;
  2319. }
  2320. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2321. struct snd_ctl_elem_value *ucontrol)
  2322. {
  2323. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2324. int mux = ucontrol->value.enumerated.item[0];
  2325. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2326. if (mux >= e->items) {
  2327. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2328. return -EINVAL;
  2329. }
  2330. pr_debug("%s: LSM enable %ld\n", __func__,
  2331. ucontrol->value.integer.value[0]);
  2332. switch (ucontrol->value.integer.value[0]) {
  2333. case 1:
  2334. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2335. break;
  2336. case 2:
  2337. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2338. break;
  2339. case 3:
  2340. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2341. break;
  2342. case 4:
  2343. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2344. break;
  2345. case 5:
  2346. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2347. break;
  2348. case 6:
  2349. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2350. break;
  2351. case 7:
  2352. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2353. break;
  2354. case 8:
  2355. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2356. break;
  2357. case 9:
  2358. lsm_port = ADM_LSM_PORT_ID;
  2359. break;
  2360. case 10:
  2361. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2362. break;
  2363. case 11:
  2364. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2365. break;
  2366. case 12:
  2367. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2368. break;
  2369. default:
  2370. pr_err("Default lsm port");
  2371. break;
  2372. }
  2373. set_lsm_port(lsm_port);
  2374. lsm_port_index = ucontrol->value.integer.value[0];
  2375. return 0;
  2376. }
  2377. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2378. struct snd_ctl_elem_value *ucontrol)
  2379. {
  2380. int i;
  2381. u16 port_id;
  2382. enum afe_mad_type mad_type;
  2383. pr_debug("%s: enter\n", __func__);
  2384. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2385. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2386. strlen(lsm_port_text[i])))
  2387. break;
  2388. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2389. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2390. return -EINVAL;
  2391. }
  2392. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2393. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2394. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2395. strlen(lsm_port_text[7])))
  2396. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2397. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2398. strlen(lsm_port_text[8])))
  2399. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2400. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2401. strlen(lsm_port_text[10])))
  2402. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2403. mad_type = afe_port_get_mad_type(port_id);
  2404. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2405. mad_type);
  2406. switch (mad_type) {
  2407. case MAD_HW_NONE:
  2408. ucontrol->value.integer.value[0] = MADNONE;
  2409. break;
  2410. case MAD_HW_AUDIO:
  2411. ucontrol->value.integer.value[0] = MADAUDIO;
  2412. break;
  2413. case MAD_HW_BEACON:
  2414. ucontrol->value.integer.value[0] = MADBEACON;
  2415. break;
  2416. case MAD_HW_ULTRASOUND:
  2417. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2418. break;
  2419. case MAD_SW_AUDIO:
  2420. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2421. break;
  2422. default:
  2423. WARN(1, "Unknown\n");
  2424. return -EINVAL;
  2425. }
  2426. return 0;
  2427. }
  2428. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. int i;
  2432. u16 port_id;
  2433. enum afe_mad_type mad_type;
  2434. pr_debug("%s: enter\n", __func__);
  2435. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2436. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2437. strlen(lsm_port_text[i])))
  2438. break;
  2439. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2440. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2441. return -EINVAL;
  2442. }
  2443. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2444. switch (ucontrol->value.integer.value[0]) {
  2445. case MADNONE:
  2446. mad_type = MAD_HW_NONE;
  2447. break;
  2448. case MADAUDIO:
  2449. mad_type = MAD_HW_AUDIO;
  2450. break;
  2451. case MADBEACON:
  2452. mad_type = MAD_HW_BEACON;
  2453. break;
  2454. case MADULTRASOUND:
  2455. mad_type = MAD_HW_ULTRASOUND;
  2456. break;
  2457. case MADSWAUDIO:
  2458. mad_type = MAD_SW_AUDIO;
  2459. break;
  2460. default:
  2461. WARN(1, "Unknown\n");
  2462. return -EINVAL;
  2463. }
  2464. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2465. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2466. strlen(lsm_port_text[7])))
  2467. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2468. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2469. strlen(lsm_port_text[8])))
  2470. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2471. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2472. strlen(lsm_port_text[10])))
  2473. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2474. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2475. mad_type);
  2476. return afe_port_set_mad_type(port_id, mad_type);
  2477. }
  2478. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2479. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2480. adm_override_chs_text);
  2481. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2482. {
  2483. int backend_id;
  2484. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2485. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2486. } else {
  2487. pr_err("%s: unsupported backend id: %s",
  2488. __func__, kcontrol->id.name);
  2489. return -EINVAL;
  2490. }
  2491. return backend_id;
  2492. }
  2493. static int msm_routing_adm_channel_config_get(
  2494. struct snd_kcontrol *kcontrol,
  2495. struct snd_ctl_elem_value *ucontrol)
  2496. {
  2497. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2498. if (backend_id >= 0) {
  2499. mutex_lock(&routing_lock);
  2500. ucontrol->value.integer.value[0] =
  2501. msm_bedais[backend_id].adm_override_ch;
  2502. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2503. ucontrol->value.integer.value[0], backend_id);
  2504. mutex_unlock(&routing_lock);
  2505. }
  2506. return 0;
  2507. }
  2508. static int msm_routing_adm_channel_config_put(
  2509. struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2513. if (backend_id >= 0) {
  2514. mutex_lock(&routing_lock);
  2515. msm_bedais[backend_id].adm_override_ch =
  2516. ucontrol->value.integer.value[0];
  2517. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2518. __func__, backend_id,
  2519. msm_bedais[backend_id].adm_override_ch);
  2520. mutex_unlock(&routing_lock);
  2521. }
  2522. return 0;
  2523. }
  2524. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2525. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2526. msm_routing_adm_channel_config_get,
  2527. msm_routing_adm_channel_config_put),
  2528. };
  2529. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2530. struct snd_ctl_elem_value *ucontrol)
  2531. {
  2532. mutex_lock(&routing_lock);
  2533. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2534. mutex_unlock(&routing_lock);
  2535. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2536. ucontrol->value.integer.value[0]);
  2537. return 0;
  2538. };
  2539. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2540. struct snd_ctl_elem_value *ucontrol)
  2541. {
  2542. struct aanc_data aanc_info;
  2543. mutex_lock(&routing_lock);
  2544. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2545. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2546. ucontrol->value.integer.value[0]);
  2547. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2548. if (ucontrol->value.integer.value[0] == 0) {
  2549. aanc_info.aanc_active = false;
  2550. aanc_info.aanc_tx_port = 0;
  2551. aanc_info.aanc_rx_port = 0;
  2552. } else {
  2553. aanc_info.aanc_active = true;
  2554. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2555. aanc_info.aanc_tx_port =
  2556. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2557. }
  2558. afe_set_aanc_info(&aanc_info);
  2559. mutex_unlock(&routing_lock);
  2560. return 0;
  2561. };
  2562. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. int idx = 0, shift = 0;
  2566. struct soc_mixer_control *mc =
  2567. (struct soc_mixer_control *)kcontrol->private_value;
  2568. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2569. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2570. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2571. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2572. return -EINVAL;
  2573. }
  2574. if (test_bit(shift,
  2575. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2576. ucontrol->value.integer.value[0] = 1;
  2577. else
  2578. ucontrol->value.integer.value[0] = 0;
  2579. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2580. ucontrol->value.integer.value[0]);
  2581. return 0;
  2582. }
  2583. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2584. struct snd_ctl_elem_value *ucontrol)
  2585. {
  2586. int idx = 0, shift = 0;
  2587. struct soc_mixer_control *mc =
  2588. (struct soc_mixer_control *)kcontrol->private_value;
  2589. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2590. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2591. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2592. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2593. return -EINVAL;
  2594. }
  2595. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2596. __func__, mc->shift, mc->rshift,
  2597. ucontrol->value.integer.value[0], idx, shift);
  2598. if (ucontrol->value.integer.value[0]) {
  2599. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2600. msm_bedais[mc->rshift].port_id);
  2601. set_bit(shift,
  2602. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2603. } else {
  2604. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2605. msm_bedais[mc->rshift].port_id);
  2606. clear_bit(shift,
  2607. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2608. }
  2609. return 1;
  2610. }
  2611. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2612. struct snd_ctl_elem_value *ucontrol)
  2613. {
  2614. u16 fe_id = 0;
  2615. fe_id = ((struct soc_mixer_control *)
  2616. kcontrol->private_value)->shift;
  2617. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2618. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2619. return -EINVAL;
  2620. }
  2621. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2622. return 0;
  2623. }
  2624. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2625. struct snd_ctl_elem_value *ucontrol)
  2626. {
  2627. u16 fe_id = 0;
  2628. fe_id = ((struct soc_mixer_control *)
  2629. kcontrol->private_value)->shift;
  2630. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2631. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2632. return -EINVAL;
  2633. }
  2634. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2635. return 1;
  2636. }
  2637. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2638. struct snd_ctl_elem_value *ucontrol)
  2639. {
  2640. u16 fe_id = 0;
  2641. fe_id = ((struct soc_multi_mixer_control *)
  2642. kcontrol->private_value)->shift;
  2643. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2644. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2645. return -EINVAL;
  2646. }
  2647. ucontrol->value.integer.value[0] =
  2648. channel_mixer[fe_id].output_channel;
  2649. return 0;
  2650. }
  2651. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. u16 fe_id = 0;
  2655. fe_id = ((struct soc_multi_mixer_control *)
  2656. kcontrol->private_value)->shift;
  2657. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2658. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2659. return -EINVAL;
  2660. }
  2661. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2662. fe_id,
  2663. (unsigned int)(ucontrol->value.integer.value[0]));
  2664. channel_mixer[fe_id].output_channel =
  2665. (unsigned int)(ucontrol->value.integer.value[0]);
  2666. return 1;
  2667. }
  2668. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2669. /* If new backend is added, need update this array */
  2670. static const char *const be_name[] = {
  2671. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2672. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2673. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2674. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2675. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2676. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2677. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2678. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2679. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2680. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2681. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2682. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2683. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2684. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2685. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2686. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2687. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2688. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2689. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2690. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2691. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2692. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2693. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2694. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2695. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2696. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2697. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2698. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2699. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2700. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2701. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2702. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2703. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2704. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2705. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2706. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2707. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2708. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2709. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2710. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2711. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2712. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2713. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2714. };
  2715. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2716. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2717. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2718. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2719. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2720. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2721. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2722. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2723. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2724. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2725. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2726. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2727. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2728. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2729. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2730. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2731. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2732. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2733. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2734. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2735. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2736. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2737. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2738. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2739. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2740. unsigned int channels,
  2741. unsigned int items, const char *const names[])
  2742. {
  2743. if (uinfo->value.enumerated.item >= items)
  2744. uinfo->value.enumerated.item = items - 1;
  2745. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2746. sizeof(uinfo->value.enumerated.name),
  2747. "ALSA: too long item name '%s'\n",
  2748. names[uinfo->value.enumerated.item]);
  2749. strlcpy(uinfo->value.enumerated.name,
  2750. names[uinfo->value.enumerated.item],
  2751. sizeof(uinfo->value.enumerated.name));
  2752. return 0;
  2753. }
  2754. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2755. struct snd_ctl_elem_info *uinfo)
  2756. {
  2757. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2758. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2759. uinfo->count = 1;
  2760. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2761. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2762. return 0;
  2763. }
  2764. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2765. struct snd_ctl_elem_value *ucontrol)
  2766. {
  2767. u16 fe_id = 0;
  2768. fe_id = ((struct soc_enum *)
  2769. kcontrol->private_value)->shift_l;
  2770. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2771. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2772. return -EINVAL;
  2773. }
  2774. pr_debug("%s: FE %d %s\n", __func__,
  2775. fe_id,
  2776. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2777. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2778. return 0;
  2779. }
  2780. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2781. struct snd_ctl_elem_value *ucontrol)
  2782. {
  2783. u16 fe_id = 0;
  2784. fe_id = ((struct soc_enum *)
  2785. kcontrol->private_value)->shift_l;
  2786. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2787. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2788. return -EINVAL;
  2789. }
  2790. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2791. pr_debug("%s: %s FE %d\n", __func__,
  2792. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2793. fe_id);
  2794. return 0;
  2795. }
  2796. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2797. struct snd_ctl_elem_info *uinfo)
  2798. {
  2799. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2800. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2801. uinfo->count = 1;
  2802. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2803. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2804. return 0;
  2805. }
  2806. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2807. struct snd_ctl_elem_value *ucontrol)
  2808. {
  2809. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2810. u16 fe_id = 0, in_ch = 0;
  2811. fe_id = e->shift_l;
  2812. in_ch = e->shift_r;
  2813. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2814. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2815. return -EINVAL;
  2816. }
  2817. if (in_ch >= ADM_MAX_CHANNELS) {
  2818. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2819. return -EINVAL;
  2820. }
  2821. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2822. return 1;
  2823. }
  2824. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2825. struct snd_ctl_elem_value *ucontrol)
  2826. {
  2827. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2828. u16 fe_id = 0, in_ch = 0;
  2829. fe_id = e->shift_l;
  2830. in_ch = e->shift_r;
  2831. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2832. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2833. return -EINVAL;
  2834. }
  2835. if (in_ch >= ADM_MAX_CHANNELS) {
  2836. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2837. return -EINVAL;
  2838. }
  2839. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2840. return 1;
  2841. }
  2842. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2843. struct snd_ctl_elem_info *uinfo)
  2844. {
  2845. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2846. uinfo->count = ADM_MAX_CHANNELS;
  2847. uinfo->value.integer.min = 0;
  2848. uinfo->value.integer.max = WEIGHT_0_DB;
  2849. return 0;
  2850. }
  2851. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2852. struct snd_ctl_elem_value *ucontrol)
  2853. {
  2854. u16 fe_id = 0, out_ch = 0;
  2855. int i, weight;
  2856. fe_id = ((struct soc_multi_mixer_control *)
  2857. kcontrol->private_value)->shift;
  2858. out_ch = ((struct soc_multi_mixer_control *)
  2859. kcontrol->private_value)->rshift;
  2860. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2861. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2862. return -EINVAL;
  2863. }
  2864. if (out_ch >= ADM_MAX_CHANNELS) {
  2865. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2866. return -EINVAL;
  2867. }
  2868. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2869. __func__, fe_id,
  2870. ucontrol->value.integer.value[0],
  2871. ucontrol->value.integer.value[1],
  2872. ucontrol->value.integer.value[2],
  2873. ucontrol->value.integer.value[3],
  2874. ucontrol->value.integer.value[4],
  2875. ucontrol->value.integer.value[5],
  2876. ucontrol->value.integer.value[6],
  2877. ucontrol->value.integer.value[7]);
  2878. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2879. weight = ucontrol->value.integer.value[i];
  2880. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2881. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2882. __func__, fe_id, out_ch, i,
  2883. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2884. }
  2885. return 0;
  2886. }
  2887. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2888. struct snd_ctl_elem_value *ucontrol)
  2889. {
  2890. u16 fe_id = 0, out_ch = 0;
  2891. int i;
  2892. fe_id = ((struct soc_multi_mixer_control *)
  2893. kcontrol->private_value)->shift;
  2894. out_ch = ((struct soc_multi_mixer_control *)
  2895. kcontrol->private_value)->rshift;
  2896. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2897. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2898. return -EINVAL;
  2899. }
  2900. if (out_ch >= ADM_MAX_CHANNELS) {
  2901. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2902. return -EINVAL;
  2903. }
  2904. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2905. ucontrol->value.integer.value[i] =
  2906. channel_mixer[fe_id].channel_weight[out_ch][i];
  2907. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2908. __func__, fe_id,
  2909. ucontrol->value.integer.value[0],
  2910. ucontrol->value.integer.value[1],
  2911. ucontrol->value.integer.value[2],
  2912. ucontrol->value.integer.value[3],
  2913. ucontrol->value.integer.value[4],
  2914. ucontrol->value.integer.value[5],
  2915. ucontrol->value.integer.value[6],
  2916. ucontrol->value.integer.value[7]);
  2917. return 0;
  2918. }
  2919. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2920. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2921. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2922. msm_pcm_get_channel_rule_index,
  2923. msm_pcm_put_channel_rule_index),
  2924. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2925. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2926. msm_pcm_get_channel_rule_index,
  2927. msm_pcm_put_channel_rule_index),
  2928. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2929. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2930. msm_pcm_get_channel_rule_index,
  2931. msm_pcm_put_channel_rule_index),
  2932. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2933. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2934. msm_pcm_get_channel_rule_index,
  2935. msm_pcm_put_channel_rule_index),
  2936. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2937. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2938. msm_pcm_get_channel_rule_index,
  2939. msm_pcm_put_channel_rule_index),
  2940. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2941. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2942. msm_pcm_get_channel_rule_index,
  2943. msm_pcm_put_channel_rule_index),
  2944. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2945. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2946. msm_pcm_get_out_chs,
  2947. msm_pcm_put_out_chs),
  2948. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2949. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2950. msm_pcm_get_out_chs,
  2951. msm_pcm_put_out_chs),
  2952. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2953. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2954. msm_pcm_get_out_chs,
  2955. msm_pcm_put_out_chs),
  2956. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2957. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2958. msm_pcm_get_out_chs,
  2959. msm_pcm_put_out_chs),
  2960. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2961. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2962. msm_pcm_get_out_chs,
  2963. msm_pcm_put_out_chs),
  2964. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2965. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2966. msm_pcm_get_out_chs,
  2967. msm_pcm_put_out_chs),
  2968. {
  2969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2971. .name = "MultiMedia1 Channel Mixer",
  2972. .info = msm_pcm_channel_mixer_info,
  2973. .get = msm_pcm_channel_mixer_get,
  2974. .put = msm_pcm_channel_mixer_put,
  2975. .private_value = (unsigned long)&(mm1_channel_mux)
  2976. },
  2977. {
  2978. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2979. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2980. .name = "MultiMedia2 Channel Mixer",
  2981. .info = msm_pcm_channel_mixer_info,
  2982. .get = msm_pcm_channel_mixer_get,
  2983. .put = msm_pcm_channel_mixer_put,
  2984. .private_value = (unsigned long)&(mm2_channel_mux)
  2985. },
  2986. {
  2987. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2988. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2989. .name = "MultiMedia3 Channel Mixer",
  2990. .info = msm_pcm_channel_mixer_info,
  2991. .get = msm_pcm_channel_mixer_get,
  2992. .put = msm_pcm_channel_mixer_put,
  2993. .private_value = (unsigned long)&(mm3_channel_mux)
  2994. },
  2995. {
  2996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2998. .name = "MultiMedia4 Channel Mixer",
  2999. .info = msm_pcm_channel_mixer_info,
  3000. .get = msm_pcm_channel_mixer_get,
  3001. .put = msm_pcm_channel_mixer_put,
  3002. .private_value = (unsigned long)&(mm4_channel_mux)
  3003. },
  3004. {
  3005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3007. .name = "MultiMedia1 Output Channel1",
  3008. .info = msm_pcm_channel_weight_info,
  3009. .get = msm_pcm_channel_weight_get,
  3010. .put = msm_pcm_channel_weight_put,
  3011. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3012. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3013. },
  3014. {
  3015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3017. .name = "MultiMedia1 Output Channel2",
  3018. .info = msm_pcm_channel_weight_info,
  3019. .get = msm_pcm_channel_weight_get,
  3020. .put = msm_pcm_channel_weight_put,
  3021. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3022. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3023. },
  3024. {
  3025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3027. .name = "MultiMedia1 Output Channel3",
  3028. .info = msm_pcm_channel_weight_info,
  3029. .get = msm_pcm_channel_weight_get,
  3030. .put = msm_pcm_channel_weight_put,
  3031. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3032. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3033. },
  3034. {
  3035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3037. .name = "MultiMedia1 Output Channel4",
  3038. .info = msm_pcm_channel_weight_info,
  3039. .get = msm_pcm_channel_weight_get,
  3040. .put = msm_pcm_channel_weight_put,
  3041. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3042. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3043. },
  3044. {
  3045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3047. .name = "MultiMedia1 Output Channel5",
  3048. .info = msm_pcm_channel_weight_info,
  3049. .get = msm_pcm_channel_weight_get,
  3050. .put = msm_pcm_channel_weight_put,
  3051. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3052. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3053. },
  3054. {
  3055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3057. .name = "MultiMedia1 Output Channel6",
  3058. .info = msm_pcm_channel_weight_info,
  3059. .get = msm_pcm_channel_weight_get,
  3060. .put = msm_pcm_channel_weight_put,
  3061. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3062. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3063. },
  3064. {
  3065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3067. .name = "MultiMedia1 Output Channel7",
  3068. .info = msm_pcm_channel_weight_info,
  3069. .get = msm_pcm_channel_weight_get,
  3070. .put = msm_pcm_channel_weight_put,
  3071. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3072. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3073. },
  3074. {
  3075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3077. .name = "MultiMedia1 Output Channel8",
  3078. .info = msm_pcm_channel_weight_info,
  3079. .get = msm_pcm_channel_weight_get,
  3080. .put = msm_pcm_channel_weight_put,
  3081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3083. },
  3084. {
  3085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3087. .name = "MultiMedia2 Output Channel1",
  3088. .info = msm_pcm_channel_weight_info,
  3089. .get = msm_pcm_channel_weight_get,
  3090. .put = msm_pcm_channel_weight_put,
  3091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3092. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3093. },
  3094. {
  3095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3097. .name = "MultiMedia2 Output Channel2",
  3098. .info = msm_pcm_channel_weight_info,
  3099. .get = msm_pcm_channel_weight_get,
  3100. .put = msm_pcm_channel_weight_put,
  3101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3102. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3103. },
  3104. {
  3105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3107. .name = "MultiMedia2 Output Channel3",
  3108. .info = msm_pcm_channel_weight_info,
  3109. .get = msm_pcm_channel_weight_get,
  3110. .put = msm_pcm_channel_weight_put,
  3111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3112. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3113. },
  3114. {
  3115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3117. .name = "MultiMedia3 Output Channel1",
  3118. .info = msm_pcm_channel_weight_info,
  3119. .get = msm_pcm_channel_weight_get,
  3120. .put = msm_pcm_channel_weight_put,
  3121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3122. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3123. },
  3124. {
  3125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3127. .name = "MultiMedia3 Output Channel2",
  3128. .info = msm_pcm_channel_weight_info,
  3129. .get = msm_pcm_channel_weight_get,
  3130. .put = msm_pcm_channel_weight_put,
  3131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3132. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3133. },
  3134. {
  3135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3137. .name = "MultiMedia1 Channel1",
  3138. .info = msm_pcm_channel_input_be_info,
  3139. .get = msm_pcm_channel_input_be_get,
  3140. .put = msm_pcm_channel_input_be_put,
  3141. .private_value = (unsigned long)&(mm1_ch1_enum)
  3142. },
  3143. {
  3144. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3145. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3146. .name = "MultiMedia1 Channel2",
  3147. .info = msm_pcm_channel_input_be_info,
  3148. .get = msm_pcm_channel_input_be_get,
  3149. .put = msm_pcm_channel_input_be_put,
  3150. .private_value = (unsigned long)&(mm1_ch2_enum)
  3151. },
  3152. {
  3153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3155. .name = "MultiMedia1 Channel3",
  3156. .info = msm_pcm_channel_input_be_info,
  3157. .get = msm_pcm_channel_input_be_get,
  3158. .put = msm_pcm_channel_input_be_put,
  3159. .private_value = (unsigned long)&(mm1_ch3_enum)
  3160. },
  3161. {
  3162. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3163. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3164. .name = "MultiMedia1 Channel4",
  3165. .info = msm_pcm_channel_input_be_info,
  3166. .get = msm_pcm_channel_input_be_get,
  3167. .put = msm_pcm_channel_input_be_put,
  3168. .private_value = (unsigned long)&(mm1_ch4_enum)
  3169. },
  3170. {
  3171. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3172. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3173. .name = "MultiMedia1 Channel5",
  3174. .info = msm_pcm_channel_input_be_info,
  3175. .get = msm_pcm_channel_input_be_get,
  3176. .put = msm_pcm_channel_input_be_put,
  3177. .private_value = (unsigned long)&(mm1_ch5_enum)
  3178. },
  3179. {
  3180. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3181. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3182. .name = "MultiMedia1 Channel6",
  3183. .info = msm_pcm_channel_input_be_info,
  3184. .get = msm_pcm_channel_input_be_get,
  3185. .put = msm_pcm_channel_input_be_put,
  3186. .private_value = (unsigned long)&(mm1_ch6_enum)
  3187. },
  3188. {
  3189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3191. .name = "MultiMedia1 Channel7",
  3192. .info = msm_pcm_channel_input_be_info,
  3193. .get = msm_pcm_channel_input_be_get,
  3194. .put = msm_pcm_channel_input_be_put,
  3195. .private_value = (unsigned long)&(mm1_ch7_enum)
  3196. },
  3197. {
  3198. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3199. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3200. .name = "MultiMedia1 Channel8",
  3201. .info = msm_pcm_channel_input_be_info,
  3202. .get = msm_pcm_channel_input_be_get,
  3203. .put = msm_pcm_channel_input_be_put,
  3204. .private_value = (unsigned long)&(mm1_ch8_enum)
  3205. },
  3206. };
  3207. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3211. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3212. ucontrol->value.integer.value[0]);
  3213. return 0;
  3214. }
  3215. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3216. struct snd_ctl_elem_value *ucontrol)
  3217. {
  3218. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3219. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3220. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3221. return 0;
  3222. }
  3223. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3224. "Four", "Five", "Six", "Seven", "Eight"};
  3225. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. switch (msm_ec_ref_bit_format) {
  3229. case SNDRV_PCM_FORMAT_S24_LE:
  3230. ucontrol->value.integer.value[0] = 2;
  3231. break;
  3232. case SNDRV_PCM_FORMAT_S16_LE:
  3233. ucontrol->value.integer.value[0] = 1;
  3234. break;
  3235. default:
  3236. ucontrol->value.integer.value[0] = 0;
  3237. break;
  3238. }
  3239. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3240. __func__, ucontrol->value.integer.value[0]);
  3241. return 0;
  3242. }
  3243. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. u16 bit_width = 0;
  3247. switch (ucontrol->value.integer.value[0]) {
  3248. case 2:
  3249. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3250. break;
  3251. case 1:
  3252. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3253. break;
  3254. default:
  3255. msm_ec_ref_bit_format = 0;
  3256. break;
  3257. }
  3258. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3259. bit_width = 16;
  3260. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3261. bit_width = 24;
  3262. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3263. __func__, msm_ec_ref_bit_format);
  3264. adm_ec_ref_rx_bit_width(bit_width);
  3265. return 0;
  3266. }
  3267. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3268. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3269. struct snd_ctl_elem_value *ucontrol)
  3270. {
  3271. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3272. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3273. __func__, ucontrol->value.integer.value[0]);
  3274. return 0;
  3275. }
  3276. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. switch (ucontrol->value.integer.value[0]) {
  3280. case 0:
  3281. msm_ec_ref_sampling_rate = 0;
  3282. break;
  3283. case 1:
  3284. msm_ec_ref_sampling_rate = 8000;
  3285. break;
  3286. case 2:
  3287. msm_ec_ref_sampling_rate = 16000;
  3288. break;
  3289. case 3:
  3290. msm_ec_ref_sampling_rate = 32000;
  3291. break;
  3292. case 4:
  3293. msm_ec_ref_sampling_rate = 44100;
  3294. break;
  3295. case 5:
  3296. msm_ec_ref_sampling_rate = 48000;
  3297. break;
  3298. case 6:
  3299. msm_ec_ref_sampling_rate = 96000;
  3300. break;
  3301. case 7:
  3302. msm_ec_ref_sampling_rate = 192000;
  3303. break;
  3304. case 8:
  3305. msm_ec_ref_sampling_rate = 384000;
  3306. break;
  3307. default:
  3308. msm_ec_ref_sampling_rate = 48000;
  3309. break;
  3310. }
  3311. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3312. __func__, msm_ec_ref_sampling_rate);
  3313. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3314. return 0;
  3315. }
  3316. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3317. "32000", "44100", "48000", "96000", "192000", "384000"};
  3318. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3319. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3320. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3321. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3322. };
  3323. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3324. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3325. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3326. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3327. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3328. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3329. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3330. };
  3331. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3332. struct snd_ctl_elem_value *ucontrol)
  3333. {
  3334. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3335. mutex_lock(&routing_lock);
  3336. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3337. mutex_unlock(&routing_lock);
  3338. return 0;
  3339. }
  3340. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3341. struct snd_ctl_elem_value *ucontrol)
  3342. {
  3343. int ec_ref_port_id;
  3344. struct snd_soc_dapm_widget *widget =
  3345. snd_soc_dapm_kcontrol_widget(kcontrol);
  3346. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3347. struct snd_soc_dapm_update *update = NULL;
  3348. mutex_lock(&routing_lock);
  3349. switch (ucontrol->value.integer.value[0]) {
  3350. case 0:
  3351. msm_route_ec_ref_rx = 0;
  3352. ec_ref_port_id = AFE_PORT_INVALID;
  3353. break;
  3354. case 1:
  3355. msm_route_ec_ref_rx = 1;
  3356. ec_ref_port_id = SLIMBUS_0_RX;
  3357. break;
  3358. case 2:
  3359. msm_route_ec_ref_rx = 2;
  3360. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3361. break;
  3362. case 3:
  3363. msm_route_ec_ref_rx = 3;
  3364. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3365. break;
  3366. case 4:
  3367. msm_route_ec_ref_rx = 4;
  3368. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3369. break;
  3370. case 5:
  3371. msm_route_ec_ref_rx = 5;
  3372. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3373. break;
  3374. case 6:
  3375. msm_route_ec_ref_rx = 6;
  3376. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3377. break;
  3378. case 7:
  3379. msm_route_ec_ref_rx = 7;
  3380. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3381. break;
  3382. case 9:
  3383. msm_route_ec_ref_rx = 9;
  3384. ec_ref_port_id = SLIMBUS_5_RX;
  3385. break;
  3386. case 10:
  3387. msm_route_ec_ref_rx = 10;
  3388. ec_ref_port_id = SLIMBUS_1_TX;
  3389. break;
  3390. case 11:
  3391. msm_route_ec_ref_rx = 11;
  3392. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3393. break;
  3394. case 12:
  3395. msm_route_ec_ref_rx = 12;
  3396. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3397. break;
  3398. case 13:
  3399. msm_route_ec_ref_rx = 13;
  3400. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3401. break;
  3402. case 14:
  3403. msm_route_ec_ref_rx = 14;
  3404. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3405. break;
  3406. case 15:
  3407. msm_route_ec_ref_rx = 15;
  3408. ec_ref_port_id = SLIMBUS_6_RX;
  3409. break;
  3410. case 16:
  3411. msm_route_ec_ref_rx = 16;
  3412. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3413. break;
  3414. case 17:
  3415. msm_route_ec_ref_rx = 17;
  3416. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3417. break;
  3418. case 18:
  3419. msm_route_ec_ref_rx = 18;
  3420. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3421. break;
  3422. case 19:
  3423. msm_route_ec_ref_rx = 19;
  3424. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3425. break;
  3426. case 20:
  3427. msm_route_ec_ref_rx = 20;
  3428. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3429. break;
  3430. case 21:
  3431. msm_route_ec_ref_rx = 21;
  3432. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3433. break;
  3434. case 22:
  3435. msm_route_ec_ref_rx = 22;
  3436. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3437. break;
  3438. case 23:
  3439. msm_route_ec_ref_rx = 23;
  3440. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3441. break;
  3442. case 24:
  3443. msm_route_ec_ref_rx = 24;
  3444. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3445. break;
  3446. case 25:
  3447. msm_route_ec_ref_rx = 25;
  3448. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3449. break;
  3450. case 26:
  3451. msm_route_ec_ref_rx = 26;
  3452. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3453. break;
  3454. case 27:
  3455. msm_route_ec_ref_rx = 27;
  3456. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3457. break;
  3458. case 28:
  3459. msm_route_ec_ref_rx = 28;
  3460. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3461. break;
  3462. case 29:
  3463. msm_route_ec_ref_rx = 29;
  3464. ec_ref_port_id = SLIMBUS_7_RX;
  3465. break;
  3466. default:
  3467. msm_route_ec_ref_rx = 0; /* NONE */
  3468. pr_err("%s EC ref rx %ld not valid\n",
  3469. __func__, ucontrol->value.integer.value[0]);
  3470. ec_ref_port_id = AFE_PORT_INVALID;
  3471. break;
  3472. }
  3473. adm_ec_ref_rx_id(ec_ref_port_id);
  3474. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3475. __func__, msm_route_ec_ref_rx);
  3476. mutex_unlock(&routing_lock);
  3477. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3478. msm_route_ec_ref_rx, e, update);
  3479. return 0;
  3480. }
  3481. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3482. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3483. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3484. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3485. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3486. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3487. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3488. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3489. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3490. "SLIM_7_RX"
  3491. };
  3492. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3493. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3494. };
  3495. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3496. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3497. msm_route_ec_ref_rx_enum[0],
  3498. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3499. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3500. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3501. msm_route_ec_ref_rx_enum[0],
  3502. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3503. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3504. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3505. msm_route_ec_ref_rx_enum[0],
  3506. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3507. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3508. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3509. msm_route_ec_ref_rx_enum[0],
  3510. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3511. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3512. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3513. msm_route_ec_ref_rx_enum[0],
  3514. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3515. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3516. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3517. msm_route_ec_ref_rx_enum[0],
  3518. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3519. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3520. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3521. msm_route_ec_ref_rx_enum[0],
  3522. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3523. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3524. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3525. msm_route_ec_ref_rx_enum[0],
  3526. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3527. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3528. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3529. msm_route_ec_ref_rx_enum[0],
  3530. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3531. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3532. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3533. msm_route_ec_ref_rx_enum[0],
  3534. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3535. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3536. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3537. msm_route_ec_ref_rx_enum[0],
  3538. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3539. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3540. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3541. msm_route_ec_ref_rx_enum[0],
  3542. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3543. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3544. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3545. msm_route_ec_ref_rx_enum[0],
  3546. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3547. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3548. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3549. msm_route_ec_ref_rx_enum[0],
  3550. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3551. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3552. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3553. msm_route_ec_ref_rx_enum[0],
  3554. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3555. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3556. struct snd_ctl_elem_value *ucontrol)
  3557. {
  3558. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3559. mutex_lock(&routing_lock);
  3560. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3561. mutex_unlock(&routing_lock);
  3562. return 0;
  3563. }
  3564. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3565. struct snd_ctl_elem_value *ucontrol)
  3566. {
  3567. struct snd_soc_dapm_widget *widget =
  3568. snd_soc_dapm_kcontrol_widget(kcontrol);
  3569. int mux = ucontrol->value.enumerated.item[0];
  3570. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3571. int ret = 1;
  3572. bool state = true;
  3573. uint16_t ext_ec_ref_port_id;
  3574. struct snd_soc_dapm_update *update = NULL;
  3575. if (mux >= e->items) {
  3576. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3577. return -EINVAL;
  3578. }
  3579. mutex_lock(&routing_lock);
  3580. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3581. switch (msm_route_ext_ec_ref) {
  3582. case EXT_EC_REF_PRI_MI2S_TX:
  3583. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3584. break;
  3585. case EXT_EC_REF_SEC_MI2S_TX:
  3586. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3587. break;
  3588. case EXT_EC_REF_TERT_MI2S_TX:
  3589. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3590. break;
  3591. case EXT_EC_REF_QUAT_MI2S_TX:
  3592. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3593. break;
  3594. case EXT_EC_REF_QUIN_MI2S_TX:
  3595. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3596. break;
  3597. case EXT_EC_REF_SLIM_1_TX:
  3598. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3599. break;
  3600. case EXT_EC_REF_SEC_TDM_TX:
  3601. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3602. break;
  3603. case EXT_EC_REF_NONE:
  3604. default:
  3605. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3606. state = false;
  3607. break;
  3608. }
  3609. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3610. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3611. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3612. mutex_unlock(&routing_lock);
  3613. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3614. update);
  3615. } else {
  3616. ret = -EINVAL;
  3617. mutex_unlock(&routing_lock);
  3618. }
  3619. return ret;
  3620. }
  3621. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3622. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3623. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3624. "SLIM_1_TX", "SEC_TDM_TX"};
  3625. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3626. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3627. };
  3628. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3629. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3630. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3631. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3632. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_PRI_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_PRI_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_PRI_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_PRI_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_PRI_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_PRI_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3657. MSM_BACKEND_DAI_PRI_I2S_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3661. MSM_BACKEND_DAI_PRI_I2S_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3665. MSM_BACKEND_DAI_PRI_I2S_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3669. MSM_BACKEND_DAI_PRI_I2S_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3673. MSM_BACKEND_DAI_PRI_I2S_RX,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3675. msm_routing_put_audio_mixer),
  3676. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3677. MSM_BACKEND_DAI_PRI_I2S_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3681. MSM_BACKEND_DAI_PRI_I2S_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3685. MSM_BACKEND_DAI_PRI_I2S_RX,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3687. msm_routing_put_audio_mixer),
  3688. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3689. MSM_BACKEND_DAI_PRI_I2S_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3693. MSM_BACKEND_DAI_PRI_I2S_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3697. MSM_BACKEND_DAI_PRI_I2S_RX,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3699. msm_routing_put_audio_mixer),
  3700. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3701. MSM_BACKEND_DAI_PRI_I2S_RX,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3703. msm_routing_put_audio_mixer),
  3704. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3705. MSM_BACKEND_DAI_PRI_I2S_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3709. MSM_BACKEND_DAI_PRI_I2S_RX,
  3710. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3711. msm_routing_put_audio_mixer),
  3712. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3713. MSM_BACKEND_DAI_PRI_I2S_RX,
  3714. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3715. msm_routing_put_audio_mixer),
  3716. };
  3717. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3718. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SEC_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SEC_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SEC_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SEC_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SEC_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SEC_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_SEC_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_SEC_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_SEC_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_SEC_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_SEC_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_SEC_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_SEC_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_SEC_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_SEC_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3779. MSM_BACKEND_DAI_SEC_I2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3783. MSM_BACKEND_DAI_SEC_I2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3787. MSM_BACKEND_DAI_SEC_I2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3791. MSM_BACKEND_DAI_SEC_I2S_RX,
  3792. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3793. msm_routing_put_audio_mixer),
  3794. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3795. MSM_BACKEND_DAI_SEC_I2S_RX,
  3796. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3797. msm_routing_put_audio_mixer),
  3798. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3799. MSM_BACKEND_DAI_SEC_I2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. };
  3803. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SPDIF_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SPDIF_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SPDIF_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SPDIF_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SPDIF_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SPDIF_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SPDIF_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SPDIF_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SPDIF_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SPDIF_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SPDIF_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SPDIF_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SPDIF_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SPDIF_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SPDIF_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3865. MSM_BACKEND_DAI_SPDIF_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3869. MSM_BACKEND_DAI_SPDIF_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3873. MSM_BACKEND_DAI_SPDIF_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3877. MSM_BACKEND_DAI_SPDIF_RX,
  3878. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3879. msm_routing_put_audio_mixer),
  3880. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3881. MSM_BACKEND_DAI_SPDIF_RX,
  3882. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3883. msm_routing_put_audio_mixer),
  3884. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3885. MSM_BACKEND_DAI_SPDIF_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. };
  3889. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3890. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3943. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3947. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3951. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3952. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3953. msm_routing_put_audio_mixer),
  3954. };
  3955. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3956. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4033. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4037. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. };
  4041. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4042. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4111. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4115. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4119. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4123. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. };
  4127. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4128. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_MI2S_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4197. MSM_BACKEND_DAI_MI2S_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4201. MSM_BACKEND_DAI_MI2S_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4205. MSM_BACKEND_DAI_MI2S_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4209. MSM_BACKEND_DAI_MI2S_RX,
  4210. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4211. msm_routing_put_audio_mixer),
  4212. };
  4213. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4214. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4283. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4287. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4291. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4295. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4296. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4297. msm_routing_put_audio_mixer),
  4298. };
  4299. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4300. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4373. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4377. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4381. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4382. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4383. msm_routing_put_audio_mixer),
  4384. };
  4385. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4386. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. };
  4463. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4464. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. };
  4469. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. };
  4555. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4556. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. };
  4641. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. };
  4707. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. };
  4773. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_HDMI_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_HDMI_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_HDMI_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_HDMI_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_HDMI_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_HDMI_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_HDMI_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_HDMI_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_HDMI_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_HDMI_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_HDMI_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_HDMI_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_HDMI_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_HDMI_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_HDMI_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_HDMI_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_HDMI_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_HDMI_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_HDMI_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_HDMI_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_HDMI_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. };
  4859. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. };
  4925. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4983. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4987. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. };
  4991. /* incall music delivery mixer */
  4992. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. };
  5010. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. };
  5028. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5029. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5038. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5042. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. };
  5046. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. };
  5112. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5170. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5174. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5176. msm_routing_put_audio_mixer),
  5177. };
  5178. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5179. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. };
  5244. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5298. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5302. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5306. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. };
  5310. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_USB_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_USB_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_USB_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_USB_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_USB_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_USB_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_USB_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_USB_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_USB_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_USB_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_USB_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_USB_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_USB_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_USB_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_USB_RX,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_USB_RX,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. };
  5376. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. };
  5462. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5463. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. };
  5528. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5529. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_FM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_FM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_FM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_FM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_FM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_FM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_INT_FM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_INT_FM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_INT_FM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_INT_FM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_INT_FM_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_INT_FM_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_INT_FM_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_INT_FM_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_INT_FM_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_INT_FM_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_INT_FM_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_INT_FM_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_INT_FM_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_INT_FM_RX,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_INT_FM_RX,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. };
  5614. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_AFE_PCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_AFE_PCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_AFE_PCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_AFE_PCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_AFE_PCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_AFE_PCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_AFE_PCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_AFE_PCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_AFE_PCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_AFE_PCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_AFE_PCM_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_AFE_PCM_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_AFE_PCM_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_AFE_PCM_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_AFE_PCM_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_AFE_PCM_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_AFE_PCM_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_AFE_PCM_RX,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_AFE_PCM_RX,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_AFE_PCM_RX,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_AFE_PCM_RX,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. };
  5700. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_AUXPCM_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_AUXPCM_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_AUXPCM_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_AUXPCM_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_AUXPCM_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_AUXPCM_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_AUXPCM_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_AUXPCM_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_AUXPCM_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_AUXPCM_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_AUXPCM_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_AUXPCM_RX,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_AUXPCM_RX,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_AUXPCM_RX,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_AUXPCM_RX,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_AUXPCM_RX,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. };
  5790. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5791. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. };
  5880. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. };
  5946. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5947. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. };
  6012. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. };
  6078. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6079. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. };
  6148. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6149. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. };
  6218. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6219. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. };
  6288. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. };
  6358. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6359. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. };
  6424. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. };
  6494. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. };
  6564. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. };
  6634. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6635. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. };
  6704. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. };
  6770. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. };
  6840. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6841. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. };
  6906. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6907. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. };
  6976. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. };
  7046. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. };
  7260. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. };
  7326. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. };
  7400. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. };
  7474. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. };
  7548. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7549. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. };
  7622. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. };
  7688. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7689. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. };
  7762. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7763. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. };
  7836. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7837. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. };
  7910. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7911. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_PRI_I2S_TX,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_MI2S_TX,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_AUXPCM_TX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_INT_FM_TX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_AFE_PCM_TX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_TX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. };
  8112. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_INT_FM_TX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_MI2S_TX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_USB_TX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. };
  8270. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8271. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_FM_TX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_MI2S_TX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_AFE_PCM_TX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_AUXPCM_TX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. };
  8428. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT_FM_TX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_AFE_PCM_TX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_USB_TX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. };
  8582. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8583. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_INT_FM_TX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_MI2S_TX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_AFE_PCM_TX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_AUXPCM_TX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_USB_TX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. };
  8760. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8761. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_INT_FM_TX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_AUXPCM_TX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_USB_TX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. };
  8918. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8919. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_INT_FM_TX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_AFE_PCM_TX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_USB_TX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. };
  9080. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9081. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_INT_FM_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_AFE_PCM_TX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_USB_TX,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_MI2S_TX,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_AUXPCM_TX,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. };
  9242. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9243. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_INT_FM_TX,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_AFE_PCM_TX,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. };
  9344. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9345. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_INT_FM_TX,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_AFE_PCM_TX,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_USB_TX,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_MI2S_TX,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_AUXPCM_TX,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. };
  9470. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9471. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_INT_FM_TX,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_AFE_PCM_TX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. };
  9532. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9533. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_INT_FM_TX,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_AFE_PCM_TX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. };
  9594. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9595. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_INT_FM_TX,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_AFE_PCM_TX,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. };
  9656. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9657. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. };
  9758. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  9759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_AUXPCM_TX,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. };
  9868. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_INT_FM_TX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_AFE_PCM_TX,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. };
  9930. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9931. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_INT_FM_TX,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_AFE_PCM_TX,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. };
  9992. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9993. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_PRI_I2S_RX,
  9995. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9996. msm_routing_put_voice_mixer),
  9997. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_PRI_I2S_RX,
  9999. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10000. msm_routing_put_voice_mixer),
  10001. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_PRI_I2S_RX,
  10003. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10004. msm_routing_put_voice_mixer),
  10005. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_PRI_I2S_RX,
  10007. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10008. msm_routing_put_voice_mixer),
  10009. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_PRI_I2S_RX,
  10011. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10012. msm_routing_put_voice_mixer),
  10013. };
  10014. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  10015. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_SEC_I2S_RX,
  10017. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10018. msm_routing_put_voice_mixer),
  10019. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_SEC_I2S_RX,
  10021. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10022. msm_routing_put_voice_mixer),
  10023. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_SEC_I2S_RX,
  10025. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10026. msm_routing_put_voice_mixer),
  10027. };
  10028. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  10029. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10031. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10032. msm_routing_put_voice_mixer),
  10033. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10035. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10036. msm_routing_put_voice_mixer),
  10037. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10039. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10040. msm_routing_put_voice_mixer),
  10041. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10043. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10044. msm_routing_put_voice_mixer),
  10045. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10047. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10048. msm_routing_put_voice_mixer),
  10049. };
  10050. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  10051. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10053. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10054. msm_routing_put_voice_mixer),
  10055. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10057. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10058. msm_routing_put_voice_mixer),
  10059. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10061. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10062. msm_routing_put_voice_mixer),
  10063. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10065. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10066. msm_routing_put_voice_mixer),
  10067. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10069. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10070. msm_routing_put_voice_mixer),
  10071. };
  10072. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  10073. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10075. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10076. msm_routing_put_voice_mixer),
  10077. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10079. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10080. msm_routing_put_voice_mixer),
  10081. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10083. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10084. msm_routing_put_voice_mixer),
  10085. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10087. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10088. msm_routing_put_voice_mixer),
  10089. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  10091. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10092. msm_routing_put_voice_mixer),
  10093. };
  10094. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  10095. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_USB_RX,
  10097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10098. msm_routing_put_voice_mixer),
  10099. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_USB_RX,
  10101. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10102. msm_routing_put_voice_mixer),
  10103. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_USB_RX,
  10105. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10106. msm_routing_put_voice_mixer),
  10107. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_USB_RX,
  10109. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10110. msm_routing_put_voice_mixer),
  10111. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_USB_RX,
  10113. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10114. msm_routing_put_voice_mixer),
  10115. };
  10116. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  10117. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10119. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10120. msm_routing_put_voice_mixer),
  10121. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10123. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10124. msm_routing_put_voice_mixer),
  10125. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10128. msm_routing_put_voice_mixer),
  10129. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10131. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10132. msm_routing_put_voice_mixer),
  10133. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  10135. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10136. msm_routing_put_voice_mixer),
  10137. };
  10138. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  10139. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10141. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10142. msm_routing_put_voice_mixer),
  10143. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10145. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10146. msm_routing_put_voice_mixer),
  10147. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10149. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10150. msm_routing_put_voice_mixer),
  10151. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10153. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10154. msm_routing_put_voice_mixer),
  10155. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  10157. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10158. msm_routing_put_voice_mixer),
  10159. };
  10160. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  10161. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10163. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10164. msm_routing_put_voice_mixer),
  10165. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10167. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10168. msm_routing_put_voice_mixer),
  10169. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10171. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10172. msm_routing_put_voice_mixer),
  10173. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10175. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10176. msm_routing_put_voice_mixer),
  10177. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  10179. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10180. msm_routing_put_voice_mixer),
  10181. };
  10182. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  10183. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_MI2S_RX,
  10185. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10186. msm_routing_put_voice_mixer),
  10187. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_MI2S_RX,
  10189. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10190. msm_routing_put_voice_mixer),
  10191. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_MI2S_RX,
  10193. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10194. msm_routing_put_voice_mixer),
  10195. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_MI2S_RX,
  10197. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10198. msm_routing_put_voice_mixer),
  10199. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_MI2S_RX,
  10201. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10202. msm_routing_put_voice_mixer),
  10203. };
  10204. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10205. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10207. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10208. msm_routing_put_voice_mixer),
  10209. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10211. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10212. msm_routing_put_voice_mixer),
  10213. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10215. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10216. msm_routing_put_voice_mixer),
  10217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10220. msm_routing_put_voice_mixer),
  10221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10224. msm_routing_put_voice_mixer),
  10225. };
  10226. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10227. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10230. msm_routing_put_voice_mixer),
  10231. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10233. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10234. msm_routing_put_voice_mixer),
  10235. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10238. msm_routing_put_voice_mixer),
  10239. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10241. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10242. msm_routing_put_voice_mixer),
  10243. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10245. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10246. msm_routing_put_voice_mixer),
  10247. };
  10248. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10252. msm_routing_put_voice_mixer),
  10253. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10255. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10256. msm_routing_put_voice_mixer),
  10257. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10259. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10260. msm_routing_put_voice_mixer),
  10261. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10263. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10264. msm_routing_put_voice_mixer),
  10265. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10267. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10268. msm_routing_put_voice_mixer),
  10269. };
  10270. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10274. msm_routing_put_voice_mixer),
  10275. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10277. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10278. msm_routing_put_voice_mixer),
  10279. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10281. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10282. msm_routing_put_voice_mixer),
  10283. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10285. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10286. msm_routing_put_voice_mixer),
  10287. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10289. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10290. msm_routing_put_voice_mixer),
  10291. };
  10292. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10295. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10296. msm_routing_put_voice_mixer),
  10297. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10299. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10300. msm_routing_put_voice_mixer),
  10301. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10304. msm_routing_put_voice_mixer),
  10305. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10307. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10308. msm_routing_put_voice_mixer),
  10309. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10311. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10312. msm_routing_put_voice_mixer),
  10313. };
  10314. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10318. msm_routing_put_voice_mixer),
  10319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10322. msm_routing_put_voice_mixer),
  10323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10326. msm_routing_put_voice_mixer),
  10327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10330. msm_routing_put_voice_mixer),
  10331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10334. msm_routing_put_voice_mixer),
  10335. };
  10336. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_AFE_PCM_RX,
  10339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10340. msm_routing_put_voice_mixer),
  10341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_AFE_PCM_RX,
  10343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10344. msm_routing_put_voice_mixer),
  10345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_AFE_PCM_RX,
  10347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10348. msm_routing_put_voice_mixer),
  10349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_AFE_PCM_RX,
  10351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10352. msm_routing_put_voice_mixer),
  10353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_AFE_PCM_RX,
  10355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10356. msm_routing_put_voice_mixer),
  10357. };
  10358. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_AUXPCM_RX,
  10361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10362. msm_routing_put_voice_mixer),
  10363. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_AUXPCM_RX,
  10365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10366. msm_routing_put_voice_mixer),
  10367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_AUXPCM_RX,
  10369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10370. msm_routing_put_voice_mixer),
  10371. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_AUXPCM_RX,
  10373. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10374. msm_routing_put_voice_mixer),
  10375. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_AUXPCM_RX,
  10377. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10378. msm_routing_put_voice_mixer),
  10379. };
  10380. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10381. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10383. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10384. msm_routing_put_voice_mixer),
  10385. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10387. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10388. msm_routing_put_voice_mixer),
  10389. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10392. msm_routing_put_voice_mixer),
  10393. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10396. msm_routing_put_voice_mixer),
  10397. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10399. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10400. msm_routing_put_voice_mixer),
  10401. };
  10402. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10403. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10405. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10406. msm_routing_put_voice_mixer),
  10407. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10409. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10410. msm_routing_put_voice_mixer),
  10411. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10413. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10414. msm_routing_put_voice_mixer),
  10415. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10417. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10418. msm_routing_put_voice_mixer),
  10419. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10421. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10422. msm_routing_put_voice_mixer),
  10423. };
  10424. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10425. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10427. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10428. msm_routing_put_voice_mixer),
  10429. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10431. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10432. msm_routing_put_voice_mixer),
  10433. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10435. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10436. msm_routing_put_voice_mixer),
  10437. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10439. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10440. msm_routing_put_voice_mixer),
  10441. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10443. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10444. msm_routing_put_voice_mixer),
  10445. };
  10446. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10447. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10449. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10450. msm_routing_put_voice_mixer),
  10451. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10453. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10454. msm_routing_put_voice_mixer),
  10455. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10457. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10458. msm_routing_put_voice_mixer),
  10459. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10461. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10462. msm_routing_put_voice_mixer),
  10463. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10465. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10466. msm_routing_put_voice_mixer),
  10467. };
  10468. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10469. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_HDMI_RX,
  10471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10472. msm_routing_put_voice_mixer),
  10473. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_HDMI_RX,
  10475. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10476. msm_routing_put_voice_mixer),
  10477. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_HDMI_RX,
  10479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10480. msm_routing_put_voice_mixer),
  10481. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_HDMI_RX,
  10483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10484. msm_routing_put_voice_mixer),
  10485. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_HDMI_RX,
  10487. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10488. msm_routing_put_voice_mixer),
  10489. };
  10490. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10491. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10493. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10494. msm_routing_put_voice_mixer),
  10495. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10497. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10498. msm_routing_put_voice_mixer),
  10499. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10501. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10502. msm_routing_put_voice_mixer),
  10503. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10505. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10506. msm_routing_put_voice_mixer),
  10507. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10509. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10510. msm_routing_put_voice_mixer),
  10511. };
  10512. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10513. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10516. msm_routing_put_voice_mixer),
  10517. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10519. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10520. msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10524. msm_routing_put_voice_mixer),
  10525. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10528. msm_routing_put_voice_mixer),
  10529. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10532. msm_routing_put_voice_mixer),
  10533. };
  10534. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10535. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10537. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10538. msm_routing_put_voice_mixer),
  10539. };
  10540. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10541. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10543. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10544. msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10547. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10551. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10555. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10556. msm_routing_put_voice_mixer),
  10557. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10559. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10560. msm_routing_put_voice_mixer),
  10561. };
  10562. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10563. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10565. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10566. msm_routing_put_voice_mixer),
  10567. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10569. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10570. msm_routing_put_voice_mixer),
  10571. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10573. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10574. msm_routing_put_voice_mixer),
  10575. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10577. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10578. msm_routing_put_voice_mixer),
  10579. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10581. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10582. msm_routing_put_voice_mixer),
  10583. };
  10584. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10585. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_EXTPROC_RX,
  10587. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10588. msm_routing_put_voice_mixer),
  10589. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_EXTPROC_RX,
  10591. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10592. msm_routing_put_voice_mixer),
  10593. };
  10594. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10598. msm_routing_put_voice_mixer),
  10599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10602. msm_routing_put_voice_mixer),
  10603. };
  10604. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10605. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10607. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10608. msm_routing_put_voice_mixer),
  10609. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10611. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10612. msm_routing_put_voice_mixer),
  10613. };
  10614. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10615. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_PRI_I2S_TX,
  10617. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10618. msm_routing_put_voice_mixer),
  10619. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_MI2S_TX,
  10621. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10622. msm_routing_put_voice_mixer),
  10623. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10625. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10626. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10628. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10629. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10631. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10632. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10634. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10635. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10637. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10638. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10640. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10641. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10643. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10644. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10646. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10647. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10649. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10650. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10652. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10653. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10655. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10656. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10658. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10659. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10661. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10662. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_USB_TX,
  10664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10665. msm_routing_put_voice_mixer),
  10666. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10668. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10669. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10671. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10672. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10674. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10675. };
  10676. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10677. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_PRI_I2S_TX,
  10679. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10680. msm_routing_put_voice_mixer),
  10681. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_MI2S_TX,
  10683. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10684. msm_routing_put_voice_mixer),
  10685. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10687. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10688. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10690. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10691. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10693. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10694. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10696. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10697. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10699. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10700. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10701. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10702. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10703. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10705. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10706. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10708. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10709. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10711. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10712. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10713. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10714. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10715. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10717. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10718. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10720. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10721. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10723. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10724. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10726. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10729. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10730. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10732. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10733. };
  10734. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10735. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_PRI_I2S_TX,
  10737. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10738. msm_routing_put_voice_mixer),
  10739. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_MI2S_TX,
  10741. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10742. msm_routing_put_voice_mixer),
  10743. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10745. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10746. msm_routing_put_voice_mixer),
  10747. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10749. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10750. msm_routing_put_voice_mixer),
  10751. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_AFE_PCM_TX,
  10753. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10754. msm_routing_put_voice_mixer),
  10755. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_AUXPCM_TX,
  10757. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10758. msm_routing_put_voice_mixer),
  10759. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10761. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10762. msm_routing_put_voice_mixer),
  10763. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10765. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10766. msm_routing_put_voice_mixer),
  10767. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10769. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10770. msm_routing_put_voice_mixer),
  10771. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10774. msm_routing_put_voice_mixer),
  10775. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10777. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10778. msm_routing_put_voice_mixer),
  10779. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10781. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10782. msm_routing_put_voice_mixer),
  10783. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10785. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10786. msm_routing_put_voice_mixer),
  10787. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10789. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10790. msm_routing_put_voice_mixer),
  10791. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10793. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10794. msm_routing_put_voice_mixer),
  10795. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_USB_TX,
  10797. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10798. msm_routing_put_voice_mixer),
  10799. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10801. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10802. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10804. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10805. };
  10806. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10807. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_EXTPROC_TX,
  10809. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10810. msm_routing_put_voice_stub_mixer),
  10811. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10813. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10814. msm_routing_put_voice_stub_mixer),
  10815. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10817. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10818. msm_routing_put_voice_stub_mixer),
  10819. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10821. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10822. msm_routing_put_voice_stub_mixer),
  10823. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_MI2S_TX,
  10825. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10826. msm_routing_put_voice_stub_mixer),
  10827. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10829. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10830. msm_routing_put_voice_stub_mixer),
  10831. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10833. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10834. msm_routing_put_voice_stub_mixer),
  10835. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10837. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10838. msm_routing_put_voice_stub_mixer),
  10839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10841. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10842. msm_routing_put_voice_stub_mixer),
  10843. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_AUXPCM_TX,
  10845. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10846. msm_routing_put_voice_stub_mixer),
  10847. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10849. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10850. msm_routing_put_voice_stub_mixer),
  10851. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10853. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10854. msm_routing_put_voice_stub_mixer),
  10855. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10857. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10858. msm_routing_put_voice_stub_mixer),
  10859. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10861. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10862. msm_routing_put_voice_stub_mixer),
  10863. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10865. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10866. msm_routing_put_voice_stub_mixer),
  10867. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10869. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10870. msm_routing_put_voice_stub_mixer),
  10871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_AFE_PCM_TX,
  10873. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10874. msm_routing_put_voice_stub_mixer),
  10875. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10877. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10878. msm_routing_put_voice_stub_mixer),
  10879. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10881. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10882. msm_routing_put_voice_stub_mixer),
  10883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10885. 1, 0, msm_routing_get_voice_stub_mixer,
  10886. msm_routing_put_voice_stub_mixer),
  10887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10889. 1, 0, msm_routing_get_voice_stub_mixer,
  10890. msm_routing_put_voice_stub_mixer),
  10891. };
  10892. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10893. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_EXTPROC_TX,
  10895. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10896. msm_routing_put_voice_stub_mixer),
  10897. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10899. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10900. msm_routing_put_voice_stub_mixer),
  10901. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10903. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10904. msm_routing_put_voice_stub_mixer),
  10905. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_AUXPCM_TX,
  10907. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10908. msm_routing_put_voice_stub_mixer),
  10909. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10911. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10912. msm_routing_put_voice_stub_mixer),
  10913. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10915. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10916. msm_routing_put_voice_stub_mixer),
  10917. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10919. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10920. msm_routing_put_voice_stub_mixer),
  10921. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10923. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10924. msm_routing_put_voice_stub_mixer),
  10925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10927. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10928. msm_routing_put_voice_stub_mixer),
  10929. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10931. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10932. msm_routing_put_voice_stub_mixer),
  10933. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_AFE_PCM_TX,
  10935. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10936. msm_routing_put_voice_stub_mixer),
  10937. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10939. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10940. msm_routing_put_voice_stub_mixer),
  10941. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10943. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10944. msm_routing_put_voice_stub_mixer),
  10945. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10947. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10948. msm_routing_put_voice_stub_mixer),
  10949. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10951. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10952. msm_routing_put_voice_stub_mixer),
  10953. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10955. 1, 0, msm_routing_get_voice_stub_mixer,
  10956. msm_routing_put_voice_stub_mixer),
  10957. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10959. 1, 0, msm_routing_get_voice_stub_mixer,
  10960. msm_routing_put_voice_stub_mixer),
  10961. };
  10962. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10963. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_EXTPROC_TX,
  10965. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10966. msm_routing_put_voice_stub_mixer),
  10967. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10969. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10970. msm_routing_put_voice_stub_mixer),
  10971. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10973. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10974. msm_routing_put_voice_stub_mixer),
  10975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_AUXPCM_TX,
  10977. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10978. msm_routing_put_voice_stub_mixer),
  10979. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10981. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10982. msm_routing_put_voice_stub_mixer),
  10983. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10985. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10986. msm_routing_put_voice_stub_mixer),
  10987. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10989. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10990. msm_routing_put_voice_stub_mixer),
  10991. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10993. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10994. msm_routing_put_voice_stub_mixer),
  10995. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10997. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10998. msm_routing_put_voice_stub_mixer),
  10999. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11001. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11002. msm_routing_put_voice_stub_mixer),
  11003. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_AFE_PCM_TX,
  11005. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11006. msm_routing_put_voice_stub_mixer),
  11007. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11009. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11010. msm_routing_put_voice_stub_mixer),
  11011. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11013. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11014. msm_routing_put_voice_stub_mixer),
  11015. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11017. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11018. msm_routing_put_voice_stub_mixer),
  11019. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11021. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  11022. msm_routing_put_voice_stub_mixer),
  11023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  11025. 1, 0, msm_routing_get_voice_stub_mixer,
  11026. msm_routing_put_voice_stub_mixer),
  11027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  11029. 1, 0, msm_routing_get_voice_stub_mixer,
  11030. msm_routing_put_voice_stub_mixer),
  11031. };
  11032. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  11033. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_PRI_I2S_TX,
  11035. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11036. msm_routing_put_voice_mixer),
  11037. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11039. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11040. msm_routing_put_voice_mixer),
  11041. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11043. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  11044. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11045. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_AFE_PCM_TX,
  11047. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11048. msm_routing_put_voice_mixer),
  11049. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_AUXPCM_TX,
  11051. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11052. msm_routing_put_voice_mixer),
  11053. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11055. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11056. msm_routing_put_voice_mixer),
  11057. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11060. msm_routing_put_voice_mixer),
  11061. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11063. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11064. msm_routing_put_voice_mixer),
  11065. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11067. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11068. msm_routing_put_voice_mixer),
  11069. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_MI2S_TX,
  11071. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11072. msm_routing_put_voice_mixer),
  11073. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11076. msm_routing_put_voice_mixer),
  11077. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11079. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11080. msm_routing_put_voice_mixer),
  11081. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11083. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11084. msm_routing_put_voice_mixer),
  11085. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11087. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11088. msm_routing_put_voice_mixer),
  11089. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11091. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11092. msm_routing_put_voice_mixer),
  11093. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_USB_TX,
  11095. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11096. msm_routing_put_voice_mixer),
  11097. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  11099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  11102. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11103. };
  11104. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  11105. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11107. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11108. msm_routing_put_port_mixer),
  11109. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11111. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11112. msm_routing_put_port_mixer),
  11113. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11115. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11116. msm_routing_put_port_mixer),
  11117. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11119. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11120. msm_routing_put_port_mixer),
  11121. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11123. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11124. msm_routing_put_port_mixer),
  11125. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11127. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11128. msm_routing_put_port_mixer),
  11129. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11131. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11132. msm_routing_put_port_mixer),
  11133. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11135. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11139. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11140. msm_routing_put_port_mixer),
  11141. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11143. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11144. msm_routing_put_port_mixer),
  11145. };
  11146. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  11147. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11149. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11153. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11154. msm_routing_put_port_mixer),
  11155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11157. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11158. msm_routing_put_port_mixer),
  11159. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11161. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11162. msm_routing_put_port_mixer),
  11163. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11165. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11166. msm_routing_put_port_mixer),
  11167. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11169. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11170. msm_routing_put_port_mixer),
  11171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11173. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11174. msm_routing_put_port_mixer),
  11175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11177. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11181. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11182. msm_routing_put_port_mixer),
  11183. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11185. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11186. msm_routing_put_port_mixer),
  11187. };
  11188. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  11189. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11191. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11192. msm_routing_put_port_mixer),
  11193. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11195. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11196. msm_routing_put_port_mixer),
  11197. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11199. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11200. msm_routing_put_port_mixer),
  11201. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11203. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11204. msm_routing_put_port_mixer),
  11205. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11207. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11211. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11212. msm_routing_put_port_mixer),
  11213. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11215. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11216. msm_routing_put_port_mixer),
  11217. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11219. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11220. msm_routing_put_port_mixer),
  11221. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11223. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11224. msm_routing_put_port_mixer),
  11225. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11227. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11228. msm_routing_put_port_mixer),
  11229. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11231. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11232. msm_routing_put_port_mixer),
  11233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11235. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11236. msm_routing_put_port_mixer),
  11237. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11239. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11240. msm_routing_put_port_mixer),
  11241. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11243. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11244. msm_routing_put_port_mixer),
  11245. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11247. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11248. msm_routing_put_port_mixer),
  11249. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11251. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11252. msm_routing_put_port_mixer),
  11253. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11255. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11256. msm_routing_put_port_mixer),
  11257. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11259. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11260. msm_routing_put_port_mixer),
  11261. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11263. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11264. msm_routing_put_port_mixer),
  11265. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11267. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11268. msm_routing_put_port_mixer),
  11269. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11272. msm_routing_put_port_mixer),
  11273. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11275. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11276. msm_routing_put_port_mixer),
  11277. };
  11278. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11279. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AUXPCM_RX,
  11281. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11282. msm_routing_put_port_mixer),
  11283. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_AUXPCM_RX,
  11285. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11286. msm_routing_put_port_mixer),
  11287. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_AUXPCM_RX,
  11289. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11290. msm_routing_put_port_mixer),
  11291. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_AUXPCM_RX,
  11293. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11294. msm_routing_put_port_mixer),
  11295. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_AUXPCM_RX,
  11297. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11298. msm_routing_put_port_mixer),
  11299. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_AUXPCM_RX,
  11301. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11302. msm_routing_put_port_mixer),
  11303. };
  11304. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11308. msm_routing_put_port_mixer),
  11309. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11311. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11312. msm_routing_put_port_mixer),
  11313. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11315. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11316. msm_routing_put_port_mixer),
  11317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11319. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11320. msm_routing_put_port_mixer),
  11321. };
  11322. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11323. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11325. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11326. msm_routing_put_port_mixer),
  11327. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11329. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11333. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11334. msm_routing_put_port_mixer),
  11335. };
  11336. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11337. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11339. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11340. msm_routing_put_port_mixer),
  11341. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11343. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11344. msm_routing_put_port_mixer),
  11345. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11347. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11348. msm_routing_put_port_mixer),
  11349. };
  11350. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11351. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11353. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11354. msm_routing_put_port_mixer),
  11355. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11357. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11358. msm_routing_put_port_mixer),
  11359. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11361. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11362. msm_routing_put_port_mixer),
  11363. };
  11364. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11365. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11367. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11368. msm_routing_put_port_mixer),
  11369. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11371. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11372. msm_routing_put_port_mixer),
  11373. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11375. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11376. msm_routing_put_port_mixer),
  11377. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11379. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11380. msm_routing_put_port_mixer),
  11381. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11383. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11384. msm_routing_put_port_mixer),
  11385. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11387. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11388. msm_routing_put_port_mixer),
  11389. };
  11390. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11391. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11393. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11394. msm_routing_put_port_mixer),
  11395. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11397. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11398. msm_routing_put_port_mixer),
  11399. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11401. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11402. msm_routing_put_port_mixer),
  11403. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11405. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11406. msm_routing_put_port_mixer),
  11407. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11409. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11410. msm_routing_put_port_mixer),
  11411. };
  11412. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11413. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11415. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11419. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11420. msm_routing_put_port_mixer),
  11421. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11423. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11424. msm_routing_put_port_mixer),
  11425. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11427. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11428. msm_routing_put_port_mixer),
  11429. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11431. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11432. msm_routing_put_port_mixer),
  11433. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11435. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11439. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11440. msm_routing_put_port_mixer),
  11441. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11443. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11444. msm_routing_put_port_mixer),
  11445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11447. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11448. msm_routing_put_port_mixer),
  11449. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11455. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11456. msm_routing_put_port_mixer),
  11457. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11459. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11460. msm_routing_put_port_mixer),
  11461. };
  11462. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11463. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11465. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11466. msm_routing_put_port_mixer),
  11467. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11469. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11470. msm_routing_put_port_mixer),
  11471. };
  11472. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11473. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_AFE_PCM_RX,
  11475. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11476. msm_routing_put_port_mixer),
  11477. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_AFE_PCM_RX,
  11479. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11480. msm_routing_put_port_mixer),
  11481. };
  11482. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11483. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_HDMI_RX,
  11485. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11486. msm_routing_put_port_mixer),
  11487. };
  11488. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11489. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11491. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11492. msm_routing_put_port_mixer),
  11493. };
  11494. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11495. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11497. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11498. msm_routing_put_port_mixer),
  11499. };
  11500. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11501. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_SEC_I2S_RX,
  11503. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11504. msm_routing_put_port_mixer),
  11505. };
  11506. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11507. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_MI2S_RX,
  11509. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11510. msm_routing_put_port_mixer),
  11511. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_MI2S_RX,
  11513. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11514. msm_routing_put_port_mixer),
  11515. };
  11516. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11517. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11519. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11520. msm_routing_put_port_mixer),
  11521. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11524. msm_routing_put_port_mixer),
  11525. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11527. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11528. msm_routing_put_port_mixer),
  11529. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11531. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11532. msm_routing_put_port_mixer),
  11533. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11535. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11536. msm_routing_put_port_mixer),
  11537. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11539. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11540. msm_routing_put_port_mixer),
  11541. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11543. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11544. msm_routing_put_port_mixer),
  11545. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11547. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11548. msm_routing_put_port_mixer),
  11549. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11551. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11552. msm_routing_put_port_mixer),
  11553. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11555. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11556. msm_routing_put_port_mixer),
  11557. };
  11558. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11559. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_USB_RX,
  11561. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11562. msm_routing_put_port_mixer),
  11563. };
  11564. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11565. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11567. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11568. msm_routing_put_port_mixer),
  11569. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11571. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11572. msm_routing_put_port_mixer),
  11573. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11575. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11576. msm_routing_put_port_mixer),
  11577. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11579. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11580. msm_routing_put_port_mixer),
  11581. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11583. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11584. msm_routing_put_port_mixer),
  11585. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11587. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11588. msm_routing_put_port_mixer),
  11589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11591. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11592. msm_routing_put_port_mixer),
  11593. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11595. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11596. msm_routing_put_port_mixer),
  11597. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11599. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11600. msm_routing_put_port_mixer),
  11601. };
  11602. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11603. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11605. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11606. msm_routing_put_port_mixer),
  11607. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11609. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11610. msm_routing_put_port_mixer),
  11611. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11613. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11614. msm_routing_put_port_mixer),
  11615. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11618. msm_routing_put_port_mixer),
  11619. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11621. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11622. msm_routing_put_port_mixer),
  11623. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11625. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11626. msm_routing_put_port_mixer),
  11627. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11629. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11630. msm_routing_put_port_mixer),
  11631. };
  11632. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11635. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11636. msm_routing_get_port_mixer,
  11637. msm_routing_put_port_mixer),
  11638. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11640. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11641. msm_routing_get_port_mixer,
  11642. msm_routing_put_port_mixer),
  11643. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11645. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11646. msm_routing_get_port_mixer,
  11647. msm_routing_put_port_mixer),
  11648. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11650. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11651. msm_routing_get_port_mixer,
  11652. msm_routing_put_port_mixer),
  11653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11656. msm_routing_get_port_mixer,
  11657. msm_routing_put_port_mixer),
  11658. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11660. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11661. msm_routing_get_port_mixer,
  11662. msm_routing_put_port_mixer),
  11663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11665. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11666. msm_routing_get_port_mixer,
  11667. msm_routing_put_port_mixer),
  11668. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11670. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11671. msm_routing_get_port_mixer,
  11672. msm_routing_put_port_mixer),
  11673. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11675. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11676. msm_routing_get_port_mixer,
  11677. msm_routing_put_port_mixer),
  11678. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11680. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11681. msm_routing_get_port_mixer,
  11682. msm_routing_put_port_mixer),
  11683. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11685. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11686. msm_routing_get_port_mixer,
  11687. msm_routing_put_port_mixer),
  11688. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11691. msm_routing_get_port_mixer,
  11692. msm_routing_put_port_mixer),
  11693. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11695. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11696. msm_routing_get_port_mixer,
  11697. msm_routing_put_port_mixer),
  11698. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11700. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11701. msm_routing_get_port_mixer,
  11702. msm_routing_put_port_mixer),
  11703. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11705. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11706. msm_routing_get_port_mixer,
  11707. msm_routing_put_port_mixer),
  11708. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11710. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11711. msm_routing_get_port_mixer,
  11712. msm_routing_put_port_mixer),
  11713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11715. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11716. msm_routing_get_port_mixer,
  11717. msm_routing_put_port_mixer),
  11718. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11720. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11721. msm_routing_get_port_mixer,
  11722. msm_routing_put_port_mixer),
  11723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11725. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11726. msm_routing_get_port_mixer,
  11727. msm_routing_put_port_mixer),
  11728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11730. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11731. msm_routing_get_port_mixer,
  11732. msm_routing_put_port_mixer),
  11733. };
  11734. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11737. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11738. msm_routing_get_port_mixer,
  11739. msm_routing_put_port_mixer),
  11740. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11742. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11743. msm_routing_get_port_mixer,
  11744. msm_routing_put_port_mixer),
  11745. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11747. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11748. msm_routing_get_port_mixer,
  11749. msm_routing_put_port_mixer),
  11750. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11752. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11753. msm_routing_get_port_mixer,
  11754. msm_routing_put_port_mixer),
  11755. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11757. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11758. msm_routing_get_port_mixer,
  11759. msm_routing_put_port_mixer),
  11760. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11762. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11763. msm_routing_get_port_mixer,
  11764. msm_routing_put_port_mixer),
  11765. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11767. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11768. msm_routing_get_port_mixer,
  11769. msm_routing_put_port_mixer),
  11770. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11772. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11773. msm_routing_get_port_mixer,
  11774. msm_routing_put_port_mixer),
  11775. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11777. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11778. msm_routing_get_port_mixer,
  11779. msm_routing_put_port_mixer),
  11780. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11782. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11783. msm_routing_get_port_mixer,
  11784. msm_routing_put_port_mixer),
  11785. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11787. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11788. msm_routing_get_port_mixer,
  11789. msm_routing_put_port_mixer),
  11790. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11792. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11793. msm_routing_get_port_mixer,
  11794. msm_routing_put_port_mixer),
  11795. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11797. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11798. msm_routing_get_port_mixer,
  11799. msm_routing_put_port_mixer),
  11800. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11802. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11803. msm_routing_get_port_mixer,
  11804. msm_routing_put_port_mixer),
  11805. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11807. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11808. msm_routing_get_port_mixer,
  11809. msm_routing_put_port_mixer),
  11810. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11812. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11813. msm_routing_get_port_mixer,
  11814. msm_routing_put_port_mixer),
  11815. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11817. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11818. msm_routing_get_port_mixer,
  11819. msm_routing_put_port_mixer),
  11820. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11822. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11823. msm_routing_get_port_mixer,
  11824. msm_routing_put_port_mixer),
  11825. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11827. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11828. msm_routing_get_port_mixer,
  11829. msm_routing_put_port_mixer),
  11830. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11832. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11833. msm_routing_get_port_mixer,
  11834. msm_routing_put_port_mixer),
  11835. };
  11836. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11837. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11839. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11840. msm_routing_get_port_mixer,
  11841. msm_routing_put_port_mixer),
  11842. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11844. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11845. msm_routing_get_port_mixer,
  11846. msm_routing_put_port_mixer),
  11847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11850. msm_routing_get_port_mixer,
  11851. msm_routing_put_port_mixer),
  11852. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11854. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11855. msm_routing_get_port_mixer,
  11856. msm_routing_put_port_mixer),
  11857. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11859. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11860. msm_routing_get_port_mixer,
  11861. msm_routing_put_port_mixer),
  11862. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11864. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11865. msm_routing_get_port_mixer,
  11866. msm_routing_put_port_mixer),
  11867. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11869. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11870. msm_routing_get_port_mixer,
  11871. msm_routing_put_port_mixer),
  11872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11874. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11875. msm_routing_get_port_mixer,
  11876. msm_routing_put_port_mixer),
  11877. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11879. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11880. msm_routing_get_port_mixer,
  11881. msm_routing_put_port_mixer),
  11882. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11884. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11885. msm_routing_get_port_mixer,
  11886. msm_routing_put_port_mixer),
  11887. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11889. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11890. msm_routing_get_port_mixer,
  11891. msm_routing_put_port_mixer),
  11892. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11894. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11895. msm_routing_get_port_mixer,
  11896. msm_routing_put_port_mixer),
  11897. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11899. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11900. msm_routing_get_port_mixer,
  11901. msm_routing_put_port_mixer),
  11902. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11904. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11905. msm_routing_get_port_mixer,
  11906. msm_routing_put_port_mixer),
  11907. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11909. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11910. msm_routing_get_port_mixer,
  11911. msm_routing_put_port_mixer),
  11912. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11914. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11915. msm_routing_get_port_mixer,
  11916. msm_routing_put_port_mixer),
  11917. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11919. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11920. msm_routing_get_port_mixer,
  11921. msm_routing_put_port_mixer),
  11922. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11924. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11925. msm_routing_get_port_mixer,
  11926. msm_routing_put_port_mixer),
  11927. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11929. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11930. msm_routing_get_port_mixer,
  11931. msm_routing_put_port_mixer),
  11932. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11934. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11935. msm_routing_get_port_mixer,
  11936. msm_routing_put_port_mixer),
  11937. };
  11938. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11939. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11941. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11942. msm_routing_get_port_mixer,
  11943. msm_routing_put_port_mixer),
  11944. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11946. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11947. msm_routing_get_port_mixer,
  11948. msm_routing_put_port_mixer),
  11949. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11951. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11952. msm_routing_get_port_mixer,
  11953. msm_routing_put_port_mixer),
  11954. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11956. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11957. msm_routing_get_port_mixer,
  11958. msm_routing_put_port_mixer),
  11959. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11961. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11962. msm_routing_get_port_mixer,
  11963. msm_routing_put_port_mixer),
  11964. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11966. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11967. msm_routing_get_port_mixer,
  11968. msm_routing_put_port_mixer),
  11969. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11971. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11972. msm_routing_get_port_mixer,
  11973. msm_routing_put_port_mixer),
  11974. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11976. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11977. msm_routing_get_port_mixer,
  11978. msm_routing_put_port_mixer),
  11979. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11981. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11982. msm_routing_get_port_mixer,
  11983. msm_routing_put_port_mixer),
  11984. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11986. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11987. msm_routing_get_port_mixer,
  11988. msm_routing_put_port_mixer),
  11989. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11991. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11992. msm_routing_get_port_mixer,
  11993. msm_routing_put_port_mixer),
  11994. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11996. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11997. msm_routing_get_port_mixer,
  11998. msm_routing_put_port_mixer),
  11999. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12001. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12002. msm_routing_get_port_mixer,
  12003. msm_routing_put_port_mixer),
  12004. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12006. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12007. msm_routing_get_port_mixer,
  12008. msm_routing_put_port_mixer),
  12009. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12011. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12012. msm_routing_get_port_mixer,
  12013. msm_routing_put_port_mixer),
  12014. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12016. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12017. msm_routing_get_port_mixer,
  12018. msm_routing_put_port_mixer),
  12019. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12021. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12022. msm_routing_get_port_mixer,
  12023. msm_routing_put_port_mixer),
  12024. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12026. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12027. msm_routing_get_port_mixer,
  12028. msm_routing_put_port_mixer),
  12029. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12031. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12032. msm_routing_get_port_mixer,
  12033. msm_routing_put_port_mixer),
  12034. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12036. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12037. msm_routing_get_port_mixer,
  12038. msm_routing_put_port_mixer),
  12039. };
  12040. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  12041. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12043. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12044. msm_routing_get_port_mixer,
  12045. msm_routing_put_port_mixer),
  12046. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12048. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12049. msm_routing_get_port_mixer,
  12050. msm_routing_put_port_mixer),
  12051. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12053. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12054. msm_routing_get_port_mixer,
  12055. msm_routing_put_port_mixer),
  12056. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12058. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12059. msm_routing_get_port_mixer,
  12060. msm_routing_put_port_mixer),
  12061. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12063. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12064. msm_routing_get_port_mixer,
  12065. msm_routing_put_port_mixer),
  12066. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12068. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12069. msm_routing_get_port_mixer,
  12070. msm_routing_put_port_mixer),
  12071. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12073. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12074. msm_routing_get_port_mixer,
  12075. msm_routing_put_port_mixer),
  12076. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12078. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12079. msm_routing_get_port_mixer,
  12080. msm_routing_put_port_mixer),
  12081. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12083. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12084. msm_routing_get_port_mixer,
  12085. msm_routing_put_port_mixer),
  12086. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12088. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12089. msm_routing_get_port_mixer,
  12090. msm_routing_put_port_mixer),
  12091. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12093. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12094. msm_routing_get_port_mixer,
  12095. msm_routing_put_port_mixer),
  12096. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12098. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12099. msm_routing_get_port_mixer,
  12100. msm_routing_put_port_mixer),
  12101. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12103. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12104. msm_routing_get_port_mixer,
  12105. msm_routing_put_port_mixer),
  12106. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12108. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12109. msm_routing_get_port_mixer,
  12110. msm_routing_put_port_mixer),
  12111. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12113. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12114. msm_routing_get_port_mixer,
  12115. msm_routing_put_port_mixer),
  12116. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12118. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12119. msm_routing_get_port_mixer,
  12120. msm_routing_put_port_mixer),
  12121. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12123. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12124. msm_routing_get_port_mixer,
  12125. msm_routing_put_port_mixer),
  12126. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12128. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12129. msm_routing_get_port_mixer,
  12130. msm_routing_put_port_mixer),
  12131. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12133. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12134. msm_routing_get_port_mixer,
  12135. msm_routing_put_port_mixer),
  12136. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  12138. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12139. msm_routing_get_port_mixer,
  12140. msm_routing_put_port_mixer),
  12141. };
  12142. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  12143. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12145. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12146. msm_routing_get_port_mixer,
  12147. msm_routing_put_port_mixer),
  12148. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12150. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12151. msm_routing_get_port_mixer,
  12152. msm_routing_put_port_mixer),
  12153. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12155. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12156. msm_routing_get_port_mixer,
  12157. msm_routing_put_port_mixer),
  12158. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12160. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12161. msm_routing_get_port_mixer,
  12162. msm_routing_put_port_mixer),
  12163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12165. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12166. msm_routing_get_port_mixer,
  12167. msm_routing_put_port_mixer),
  12168. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12170. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12171. msm_routing_get_port_mixer,
  12172. msm_routing_put_port_mixer),
  12173. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12175. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12176. msm_routing_get_port_mixer,
  12177. msm_routing_put_port_mixer),
  12178. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12180. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12181. msm_routing_get_port_mixer,
  12182. msm_routing_put_port_mixer),
  12183. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12185. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12186. msm_routing_get_port_mixer,
  12187. msm_routing_put_port_mixer),
  12188. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12190. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12191. msm_routing_get_port_mixer,
  12192. msm_routing_put_port_mixer),
  12193. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12195. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12196. msm_routing_get_port_mixer,
  12197. msm_routing_put_port_mixer),
  12198. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12200. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12201. msm_routing_get_port_mixer,
  12202. msm_routing_put_port_mixer),
  12203. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12205. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12206. msm_routing_get_port_mixer,
  12207. msm_routing_put_port_mixer),
  12208. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12210. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12211. msm_routing_get_port_mixer,
  12212. msm_routing_put_port_mixer),
  12213. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12215. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12216. msm_routing_get_port_mixer,
  12217. msm_routing_put_port_mixer),
  12218. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12220. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12221. msm_routing_get_port_mixer,
  12222. msm_routing_put_port_mixer),
  12223. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12225. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12226. msm_routing_get_port_mixer,
  12227. msm_routing_put_port_mixer),
  12228. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12230. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12231. msm_routing_get_port_mixer,
  12232. msm_routing_put_port_mixer),
  12233. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12235. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12236. msm_routing_get_port_mixer,
  12237. msm_routing_put_port_mixer),
  12238. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12240. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12241. msm_routing_get_port_mixer,
  12242. msm_routing_put_port_mixer),
  12243. };
  12244. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12245. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12247. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12248. msm_routing_get_port_mixer,
  12249. msm_routing_put_port_mixer),
  12250. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12251. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12252. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12253. msm_routing_get_port_mixer,
  12254. msm_routing_put_port_mixer),
  12255. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12257. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12258. msm_routing_get_port_mixer,
  12259. msm_routing_put_port_mixer),
  12260. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12262. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12263. msm_routing_get_port_mixer,
  12264. msm_routing_put_port_mixer),
  12265. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12267. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12268. msm_routing_get_port_mixer,
  12269. msm_routing_put_port_mixer),
  12270. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12272. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12273. msm_routing_get_port_mixer,
  12274. msm_routing_put_port_mixer),
  12275. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12277. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12278. msm_routing_get_port_mixer,
  12279. msm_routing_put_port_mixer),
  12280. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12282. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12283. msm_routing_get_port_mixer,
  12284. msm_routing_put_port_mixer),
  12285. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12287. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12288. msm_routing_get_port_mixer,
  12289. msm_routing_put_port_mixer),
  12290. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12292. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12293. msm_routing_get_port_mixer,
  12294. msm_routing_put_port_mixer),
  12295. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12297. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12298. msm_routing_get_port_mixer,
  12299. msm_routing_put_port_mixer),
  12300. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12302. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12303. msm_routing_get_port_mixer,
  12304. msm_routing_put_port_mixer),
  12305. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12307. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12308. msm_routing_get_port_mixer,
  12309. msm_routing_put_port_mixer),
  12310. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12312. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12313. msm_routing_get_port_mixer,
  12314. msm_routing_put_port_mixer),
  12315. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12317. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12318. msm_routing_get_port_mixer,
  12319. msm_routing_put_port_mixer),
  12320. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12322. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12323. msm_routing_get_port_mixer,
  12324. msm_routing_put_port_mixer),
  12325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12327. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12328. msm_routing_get_port_mixer,
  12329. msm_routing_put_port_mixer),
  12330. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12332. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12333. msm_routing_get_port_mixer,
  12334. msm_routing_put_port_mixer),
  12335. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12337. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12338. msm_routing_get_port_mixer,
  12339. msm_routing_put_port_mixer),
  12340. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12342. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12343. msm_routing_get_port_mixer,
  12344. msm_routing_put_port_mixer),
  12345. };
  12346. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12347. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12349. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12350. msm_routing_get_port_mixer,
  12351. msm_routing_put_port_mixer),
  12352. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12354. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12355. msm_routing_get_port_mixer,
  12356. msm_routing_put_port_mixer),
  12357. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12359. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12360. msm_routing_get_port_mixer,
  12361. msm_routing_put_port_mixer),
  12362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12364. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12365. msm_routing_get_port_mixer,
  12366. msm_routing_put_port_mixer),
  12367. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12369. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12370. msm_routing_get_port_mixer,
  12371. msm_routing_put_port_mixer),
  12372. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12374. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12375. msm_routing_get_port_mixer,
  12376. msm_routing_put_port_mixer),
  12377. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12379. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12380. msm_routing_get_port_mixer,
  12381. msm_routing_put_port_mixer),
  12382. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12384. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12385. msm_routing_get_port_mixer,
  12386. msm_routing_put_port_mixer),
  12387. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12389. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12390. msm_routing_get_port_mixer,
  12391. msm_routing_put_port_mixer),
  12392. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12394. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12395. msm_routing_get_port_mixer,
  12396. msm_routing_put_port_mixer),
  12397. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12399. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12400. msm_routing_get_port_mixer,
  12401. msm_routing_put_port_mixer),
  12402. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12404. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12405. msm_routing_get_port_mixer,
  12406. msm_routing_put_port_mixer),
  12407. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12409. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12410. msm_routing_get_port_mixer,
  12411. msm_routing_put_port_mixer),
  12412. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12414. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12415. msm_routing_get_port_mixer,
  12416. msm_routing_put_port_mixer),
  12417. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12419. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12420. msm_routing_get_port_mixer,
  12421. msm_routing_put_port_mixer),
  12422. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12424. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12425. msm_routing_get_port_mixer,
  12426. msm_routing_put_port_mixer),
  12427. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12429. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12430. msm_routing_get_port_mixer,
  12431. msm_routing_put_port_mixer),
  12432. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12434. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12435. msm_routing_get_port_mixer,
  12436. msm_routing_put_port_mixer),
  12437. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12439. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12440. msm_routing_get_port_mixer,
  12441. msm_routing_put_port_mixer),
  12442. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12444. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12445. msm_routing_get_port_mixer,
  12446. msm_routing_put_port_mixer),
  12447. };
  12448. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12451. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12452. msm_routing_get_port_mixer,
  12453. msm_routing_put_port_mixer),
  12454. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12456. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12457. msm_routing_get_port_mixer,
  12458. msm_routing_put_port_mixer),
  12459. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12461. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12462. msm_routing_get_port_mixer,
  12463. msm_routing_put_port_mixer),
  12464. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12466. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12467. msm_routing_get_port_mixer,
  12468. msm_routing_put_port_mixer),
  12469. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12471. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12472. msm_routing_get_port_mixer,
  12473. msm_routing_put_port_mixer),
  12474. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12476. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12477. msm_routing_get_port_mixer,
  12478. msm_routing_put_port_mixer),
  12479. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12481. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12482. msm_routing_get_port_mixer,
  12483. msm_routing_put_port_mixer),
  12484. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12486. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12487. msm_routing_get_port_mixer,
  12488. msm_routing_put_port_mixer),
  12489. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12491. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12492. msm_routing_get_port_mixer,
  12493. msm_routing_put_port_mixer),
  12494. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12496. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12497. msm_routing_get_port_mixer,
  12498. msm_routing_put_port_mixer),
  12499. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12501. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12502. msm_routing_get_port_mixer,
  12503. msm_routing_put_port_mixer),
  12504. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12506. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12507. msm_routing_get_port_mixer,
  12508. msm_routing_put_port_mixer),
  12509. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12511. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12512. msm_routing_get_port_mixer,
  12513. msm_routing_put_port_mixer),
  12514. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12516. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12517. msm_routing_get_port_mixer,
  12518. msm_routing_put_port_mixer),
  12519. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12521. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12522. msm_routing_get_port_mixer,
  12523. msm_routing_put_port_mixer),
  12524. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12526. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12527. msm_routing_get_port_mixer,
  12528. msm_routing_put_port_mixer),
  12529. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12531. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12532. msm_routing_get_port_mixer,
  12533. msm_routing_put_port_mixer),
  12534. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12536. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12537. msm_routing_get_port_mixer,
  12538. msm_routing_put_port_mixer),
  12539. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12541. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12542. msm_routing_get_port_mixer,
  12543. msm_routing_put_port_mixer),
  12544. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12547. msm_routing_get_port_mixer,
  12548. msm_routing_put_port_mixer),
  12549. };
  12550. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12551. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12553. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12554. msm_routing_get_port_mixer,
  12555. msm_routing_put_port_mixer),
  12556. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12558. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12559. msm_routing_get_port_mixer,
  12560. msm_routing_put_port_mixer),
  12561. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12563. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12564. msm_routing_get_port_mixer,
  12565. msm_routing_put_port_mixer),
  12566. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12568. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12569. msm_routing_get_port_mixer,
  12570. msm_routing_put_port_mixer),
  12571. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12573. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12574. msm_routing_get_port_mixer,
  12575. msm_routing_put_port_mixer),
  12576. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12578. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12579. msm_routing_get_port_mixer,
  12580. msm_routing_put_port_mixer),
  12581. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12583. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12584. msm_routing_get_port_mixer,
  12585. msm_routing_put_port_mixer),
  12586. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12588. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12589. msm_routing_get_port_mixer,
  12590. msm_routing_put_port_mixer),
  12591. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12593. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12594. msm_routing_get_port_mixer,
  12595. msm_routing_put_port_mixer),
  12596. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12598. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12599. msm_routing_get_port_mixer,
  12600. msm_routing_put_port_mixer),
  12601. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12603. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12604. msm_routing_get_port_mixer,
  12605. msm_routing_put_port_mixer),
  12606. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12608. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12609. msm_routing_get_port_mixer,
  12610. msm_routing_put_port_mixer),
  12611. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12613. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12614. msm_routing_get_port_mixer,
  12615. msm_routing_put_port_mixer),
  12616. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12617. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12618. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12619. msm_routing_get_port_mixer,
  12620. msm_routing_put_port_mixer),
  12621. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12623. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12624. msm_routing_get_port_mixer,
  12625. msm_routing_put_port_mixer),
  12626. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12628. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12629. msm_routing_get_port_mixer,
  12630. msm_routing_put_port_mixer),
  12631. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12633. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12634. msm_routing_get_port_mixer,
  12635. msm_routing_put_port_mixer),
  12636. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12638. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12639. msm_routing_get_port_mixer,
  12640. msm_routing_put_port_mixer),
  12641. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12643. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12644. msm_routing_get_port_mixer,
  12645. msm_routing_put_port_mixer),
  12646. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12648. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12649. msm_routing_get_port_mixer,
  12650. msm_routing_put_port_mixer),
  12651. };
  12652. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12653. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12655. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12656. msm_routing_get_port_mixer,
  12657. msm_routing_put_port_mixer),
  12658. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12660. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12661. msm_routing_get_port_mixer,
  12662. msm_routing_put_port_mixer),
  12663. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12665. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12666. msm_routing_get_port_mixer,
  12667. msm_routing_put_port_mixer),
  12668. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12670. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12671. msm_routing_get_port_mixer,
  12672. msm_routing_put_port_mixer),
  12673. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12675. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12676. msm_routing_get_port_mixer,
  12677. msm_routing_put_port_mixer),
  12678. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12680. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12681. msm_routing_get_port_mixer,
  12682. msm_routing_put_port_mixer),
  12683. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12685. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12686. msm_routing_get_port_mixer,
  12687. msm_routing_put_port_mixer),
  12688. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12690. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12691. msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12695. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12696. msm_routing_get_port_mixer,
  12697. msm_routing_put_port_mixer),
  12698. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12700. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12701. msm_routing_get_port_mixer,
  12702. msm_routing_put_port_mixer),
  12703. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12705. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12706. msm_routing_get_port_mixer,
  12707. msm_routing_put_port_mixer),
  12708. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12710. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12711. msm_routing_get_port_mixer,
  12712. msm_routing_put_port_mixer),
  12713. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12715. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12716. msm_routing_get_port_mixer,
  12717. msm_routing_put_port_mixer),
  12718. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12720. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12721. msm_routing_get_port_mixer,
  12722. msm_routing_put_port_mixer),
  12723. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12725. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12726. msm_routing_get_port_mixer,
  12727. msm_routing_put_port_mixer),
  12728. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12730. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12731. msm_routing_get_port_mixer,
  12732. msm_routing_put_port_mixer),
  12733. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12735. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12736. msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12740. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12741. msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12745. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12746. msm_routing_get_port_mixer,
  12747. msm_routing_put_port_mixer),
  12748. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12750. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12751. msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. };
  12754. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12755. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12757. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12758. msm_routing_get_port_mixer,
  12759. msm_routing_put_port_mixer),
  12760. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12762. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12763. msm_routing_get_port_mixer,
  12764. msm_routing_put_port_mixer),
  12765. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12767. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12768. msm_routing_get_port_mixer,
  12769. msm_routing_put_port_mixer),
  12770. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12772. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12773. msm_routing_get_port_mixer,
  12774. msm_routing_put_port_mixer),
  12775. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12777. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12778. msm_routing_get_port_mixer,
  12779. msm_routing_put_port_mixer),
  12780. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12782. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12783. msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12787. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12788. msm_routing_get_port_mixer,
  12789. msm_routing_put_port_mixer),
  12790. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12792. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12793. msm_routing_get_port_mixer,
  12794. msm_routing_put_port_mixer),
  12795. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12797. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12798. msm_routing_get_port_mixer,
  12799. msm_routing_put_port_mixer),
  12800. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12802. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12803. msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12807. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12808. msm_routing_get_port_mixer,
  12809. msm_routing_put_port_mixer),
  12810. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12812. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12813. msm_routing_get_port_mixer,
  12814. msm_routing_put_port_mixer),
  12815. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12817. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12818. msm_routing_get_port_mixer,
  12819. msm_routing_put_port_mixer),
  12820. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12822. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12823. msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12827. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12828. msm_routing_get_port_mixer,
  12829. msm_routing_put_port_mixer),
  12830. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12832. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12833. msm_routing_get_port_mixer,
  12834. msm_routing_put_port_mixer),
  12835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12837. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12838. msm_routing_get_port_mixer,
  12839. msm_routing_put_port_mixer),
  12840. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12842. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12843. msm_routing_get_port_mixer,
  12844. msm_routing_put_port_mixer),
  12845. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12847. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12848. msm_routing_get_port_mixer,
  12849. msm_routing_put_port_mixer),
  12850. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12852. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12853. msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. };
  12856. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12857. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12859. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12860. msm_routing_get_port_mixer,
  12861. msm_routing_put_port_mixer),
  12862. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12865. msm_routing_get_port_mixer,
  12866. msm_routing_put_port_mixer),
  12867. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12869. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12870. msm_routing_get_port_mixer,
  12871. msm_routing_put_port_mixer),
  12872. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12874. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12875. msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12879. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12880. msm_routing_get_port_mixer,
  12881. msm_routing_put_port_mixer),
  12882. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12884. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12885. msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12889. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12890. msm_routing_get_port_mixer,
  12891. msm_routing_put_port_mixer),
  12892. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12894. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12895. msm_routing_get_port_mixer,
  12896. msm_routing_put_port_mixer),
  12897. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12899. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12900. msm_routing_get_port_mixer,
  12901. msm_routing_put_port_mixer),
  12902. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12904. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12905. msm_routing_get_port_mixer,
  12906. msm_routing_put_port_mixer),
  12907. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12909. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12910. msm_routing_get_port_mixer,
  12911. msm_routing_put_port_mixer),
  12912. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12914. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12915. msm_routing_get_port_mixer,
  12916. msm_routing_put_port_mixer),
  12917. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12919. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12920. msm_routing_get_port_mixer,
  12921. msm_routing_put_port_mixer),
  12922. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12924. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12925. msm_routing_get_port_mixer,
  12926. msm_routing_put_port_mixer),
  12927. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12929. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12930. msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12934. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12935. msm_routing_get_port_mixer,
  12936. msm_routing_put_port_mixer),
  12937. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12939. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12940. msm_routing_get_port_mixer,
  12941. msm_routing_put_port_mixer),
  12942. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12944. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12945. msm_routing_get_port_mixer,
  12946. msm_routing_put_port_mixer),
  12947. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12949. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12950. msm_routing_get_port_mixer,
  12951. msm_routing_put_port_mixer),
  12952. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12954. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12955. msm_routing_get_port_mixer,
  12956. msm_routing_put_port_mixer),
  12957. };
  12958. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12959. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12961. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12962. msm_routing_get_port_mixer,
  12963. msm_routing_put_port_mixer),
  12964. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12966. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12967. msm_routing_get_port_mixer,
  12968. msm_routing_put_port_mixer),
  12969. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12971. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12972. msm_routing_get_port_mixer,
  12973. msm_routing_put_port_mixer),
  12974. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12976. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12977. msm_routing_get_port_mixer,
  12978. msm_routing_put_port_mixer),
  12979. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12981. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12982. msm_routing_get_port_mixer,
  12983. msm_routing_put_port_mixer),
  12984. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12986. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12987. msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12991. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12992. msm_routing_get_port_mixer,
  12993. msm_routing_put_port_mixer),
  12994. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12996. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12997. msm_routing_get_port_mixer,
  12998. msm_routing_put_port_mixer),
  12999. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13001. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13002. msm_routing_get_port_mixer,
  13003. msm_routing_put_port_mixer),
  13004. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13006. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13007. msm_routing_get_port_mixer,
  13008. msm_routing_put_port_mixer),
  13009. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13011. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13012. msm_routing_get_port_mixer,
  13013. msm_routing_put_port_mixer),
  13014. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13016. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13017. msm_routing_get_port_mixer,
  13018. msm_routing_put_port_mixer),
  13019. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13021. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13022. msm_routing_get_port_mixer,
  13023. msm_routing_put_port_mixer),
  13024. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13025. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13026. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13027. msm_routing_get_port_mixer,
  13028. msm_routing_put_port_mixer),
  13029. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13031. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13032. msm_routing_get_port_mixer,
  13033. msm_routing_put_port_mixer),
  13034. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13036. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13037. msm_routing_get_port_mixer,
  13038. msm_routing_put_port_mixer),
  13039. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13041. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13042. msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13046. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13047. msm_routing_get_port_mixer,
  13048. msm_routing_put_port_mixer),
  13049. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13051. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13052. msm_routing_get_port_mixer,
  13053. msm_routing_put_port_mixer),
  13054. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  13056. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13057. msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. };
  13060. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  13061. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13063. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13064. msm_routing_get_port_mixer,
  13065. msm_routing_put_port_mixer),
  13066. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13068. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13069. msm_routing_get_port_mixer,
  13070. msm_routing_put_port_mixer),
  13071. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13073. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13074. msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13078. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13079. msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13083. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13084. msm_routing_get_port_mixer,
  13085. msm_routing_put_port_mixer),
  13086. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13088. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13089. msm_routing_get_port_mixer,
  13090. msm_routing_put_port_mixer),
  13091. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13093. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13094. msm_routing_get_port_mixer,
  13095. msm_routing_put_port_mixer),
  13096. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13098. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13099. msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13103. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13104. msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13108. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13109. msm_routing_get_port_mixer,
  13110. msm_routing_put_port_mixer),
  13111. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13113. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13114. msm_routing_get_port_mixer,
  13115. msm_routing_put_port_mixer),
  13116. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13118. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13119. msm_routing_get_port_mixer,
  13120. msm_routing_put_port_mixer),
  13121. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13123. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13124. msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13128. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13129. msm_routing_get_port_mixer,
  13130. msm_routing_put_port_mixer),
  13131. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13133. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13134. msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13138. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13139. msm_routing_get_port_mixer,
  13140. msm_routing_put_port_mixer),
  13141. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13143. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13144. msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13148. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13149. msm_routing_get_port_mixer,
  13150. msm_routing_put_port_mixer),
  13151. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13153. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13154. msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13158. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13159. msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. };
  13162. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  13163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13165. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13166. msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13170. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13171. msm_routing_get_port_mixer,
  13172. msm_routing_put_port_mixer),
  13173. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13175. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13176. msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13180. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13181. msm_routing_get_port_mixer,
  13182. msm_routing_put_port_mixer),
  13183. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13185. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13186. msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13190. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13191. msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13195. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13200. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13205. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13206. msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13210. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13211. msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13215. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13216. msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13220. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13221. msm_routing_get_port_mixer,
  13222. msm_routing_put_port_mixer),
  13223. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13225. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13226. msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13230. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13231. msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13235. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13236. msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13240. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13241. msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13245. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13250. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13255. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13260. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. };
  13264. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13265. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13267. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13268. msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13272. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13273. msm_routing_get_port_mixer,
  13274. msm_routing_put_port_mixer),
  13275. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13277. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13278. msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13282. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13283. msm_routing_get_port_mixer,
  13284. msm_routing_put_port_mixer),
  13285. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13287. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13288. msm_routing_get_port_mixer,
  13289. msm_routing_put_port_mixer),
  13290. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13292. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13293. msm_routing_get_port_mixer,
  13294. msm_routing_put_port_mixer),
  13295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13302. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13307. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13311. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13312. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13313. msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13317. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13318. msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13322. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13323. msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13327. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13328. msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13332. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13333. msm_routing_get_port_mixer,
  13334. msm_routing_put_port_mixer),
  13335. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13337. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13338. msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13342. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13343. msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13347. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13352. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13357. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13362. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. };
  13366. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13367. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13369. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13370. msm_routing_get_port_mixer,
  13371. msm_routing_put_port_mixer),
  13372. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13374. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13375. msm_routing_get_port_mixer,
  13376. msm_routing_put_port_mixer),
  13377. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13379. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13380. msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13384. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13385. msm_routing_get_port_mixer,
  13386. msm_routing_put_port_mixer),
  13387. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13389. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13390. msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13394. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13395. msm_routing_get_port_mixer,
  13396. msm_routing_put_port_mixer),
  13397. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13399. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13400. msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13404. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13405. msm_routing_get_port_mixer,
  13406. msm_routing_put_port_mixer),
  13407. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13409. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13410. msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13414. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13415. msm_routing_get_port_mixer,
  13416. msm_routing_put_port_mixer),
  13417. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13419. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13420. msm_routing_get_port_mixer,
  13421. msm_routing_put_port_mixer),
  13422. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13424. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13425. msm_routing_get_port_mixer,
  13426. msm_routing_put_port_mixer),
  13427. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13429. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13430. msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13434. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13435. msm_routing_get_port_mixer,
  13436. msm_routing_put_port_mixer),
  13437. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13439. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13440. msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13444. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13445. msm_routing_get_port_mixer,
  13446. msm_routing_put_port_mixer),
  13447. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13449. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13450. msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13454. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13455. msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13459. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13460. msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13464. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13465. msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. };
  13468. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13469. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13471. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13472. msm_routing_get_port_mixer,
  13473. msm_routing_put_port_mixer),
  13474. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13476. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13477. msm_routing_get_port_mixer,
  13478. msm_routing_put_port_mixer),
  13479. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13482. msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13486. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13487. msm_routing_get_port_mixer,
  13488. msm_routing_put_port_mixer),
  13489. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13491. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13492. msm_routing_get_port_mixer,
  13493. msm_routing_put_port_mixer),
  13494. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13496. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13497. msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13501. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13502. msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13506. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13507. msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13511. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13512. msm_routing_get_port_mixer,
  13513. msm_routing_put_port_mixer),
  13514. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13516. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13517. msm_routing_get_port_mixer,
  13518. msm_routing_put_port_mixer),
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13521. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13522. msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13526. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13527. msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13531. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13532. msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13536. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13537. msm_routing_get_port_mixer,
  13538. msm_routing_put_port_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13541. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13542. msm_routing_get_port_mixer,
  13543. msm_routing_put_port_mixer),
  13544. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13546. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13547. msm_routing_get_port_mixer,
  13548. msm_routing_put_port_mixer),
  13549. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13551. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13552. msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13556. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13557. msm_routing_get_port_mixer,
  13558. msm_routing_put_port_mixer),
  13559. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13561. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13562. msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13566. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13567. msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. };
  13570. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13571. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13573. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13574. msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13578. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13579. msm_routing_get_port_mixer,
  13580. msm_routing_put_port_mixer),
  13581. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13583. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13584. msm_routing_get_port_mixer,
  13585. msm_routing_put_port_mixer),
  13586. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13588. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13589. msm_routing_get_port_mixer,
  13590. msm_routing_put_port_mixer),
  13591. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13593. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13594. msm_routing_get_port_mixer,
  13595. msm_routing_put_port_mixer),
  13596. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13598. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13599. msm_routing_get_port_mixer,
  13600. msm_routing_put_port_mixer),
  13601. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13603. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13604. msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13608. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13609. msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13613. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13614. msm_routing_get_port_mixer,
  13615. msm_routing_put_port_mixer),
  13616. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13618. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13619. msm_routing_get_port_mixer,
  13620. msm_routing_put_port_mixer),
  13621. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13623. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13624. msm_routing_get_port_mixer,
  13625. msm_routing_put_port_mixer),
  13626. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13628. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13629. msm_routing_get_port_mixer,
  13630. msm_routing_put_port_mixer),
  13631. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13633. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13634. msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13638. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13639. msm_routing_get_port_mixer,
  13640. msm_routing_put_port_mixer),
  13641. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13643. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13644. msm_routing_get_port_mixer,
  13645. msm_routing_put_port_mixer),
  13646. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13648. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13649. msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13653. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13654. msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13658. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13659. msm_routing_get_port_mixer,
  13660. msm_routing_put_port_mixer),
  13661. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13663. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13664. msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13668. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13669. msm_routing_get_port_mixer,
  13670. msm_routing_put_port_mixer),
  13671. };
  13672. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13673. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13675. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13676. msm_routing_put_port_mixer),
  13677. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13679. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13680. msm_routing_put_port_mixer),
  13681. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13683. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13684. msm_routing_put_port_mixer),
  13685. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13687. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13688. msm_routing_put_port_mixer),
  13689. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13691. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13692. msm_routing_put_port_mixer),
  13693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13696. msm_routing_put_port_mixer),
  13697. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13699. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13700. msm_routing_put_port_mixer),
  13701. };
  13702. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13709. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13710. msm_routing_put_port_mixer),
  13711. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13713. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13714. msm_routing_put_port_mixer),
  13715. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13717. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13718. msm_routing_put_port_mixer),
  13719. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13721. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13725. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13726. msm_routing_put_port_mixer),
  13727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13730. msm_routing_put_port_mixer),
  13731. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13733. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13734. msm_routing_put_port_mixer),
  13735. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13737. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13738. msm_routing_put_port_mixer),
  13739. };
  13740. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13741. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13743. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13744. msm_routing_put_listen_mixer),
  13745. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13747. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13748. msm_routing_put_listen_mixer),
  13749. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13751. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13752. msm_routing_put_listen_mixer),
  13753. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13755. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13756. msm_routing_put_listen_mixer),
  13757. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13759. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13760. msm_routing_put_listen_mixer),
  13761. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13763. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13764. msm_routing_put_listen_mixer),
  13765. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13767. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13768. msm_routing_put_listen_mixer),
  13769. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13771. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13772. msm_routing_put_listen_mixer),
  13773. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13775. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13776. msm_routing_put_listen_mixer),
  13777. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13779. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13780. msm_routing_put_listen_mixer),
  13781. };
  13782. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13783. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13785. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13786. msm_routing_put_listen_mixer),
  13787. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13788. SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13790. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13791. msm_routing_put_listen_mixer),
  13792. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13794. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13795. msm_routing_put_listen_mixer),
  13796. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13798. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13799. msm_routing_put_listen_mixer),
  13800. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13802. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13803. msm_routing_put_listen_mixer),
  13804. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13806. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13807. msm_routing_put_listen_mixer),
  13808. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13810. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13811. msm_routing_put_listen_mixer),
  13812. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13814. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13815. msm_routing_put_listen_mixer),
  13816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13818. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13819. msm_routing_put_listen_mixer),
  13820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13822. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13823. msm_routing_put_listen_mixer),
  13824. };
  13825. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13826. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13828. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13829. msm_routing_put_listen_mixer),
  13830. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13832. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13833. msm_routing_put_listen_mixer),
  13834. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13836. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13837. msm_routing_put_listen_mixer),
  13838. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13840. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13841. msm_routing_put_listen_mixer),
  13842. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13844. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13845. msm_routing_put_listen_mixer),
  13846. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13848. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13852. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13853. msm_routing_put_listen_mixer),
  13854. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13856. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13857. msm_routing_put_listen_mixer),
  13858. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13860. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13861. msm_routing_put_listen_mixer),
  13862. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13864. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13865. msm_routing_put_listen_mixer),
  13866. };
  13867. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13868. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13870. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13871. msm_routing_put_listen_mixer),
  13872. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13874. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13875. msm_routing_put_listen_mixer),
  13876. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13878. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13879. msm_routing_put_listen_mixer),
  13880. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13882. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13883. msm_routing_put_listen_mixer),
  13884. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13886. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13887. msm_routing_put_listen_mixer),
  13888. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13890. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13891. msm_routing_put_listen_mixer),
  13892. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13894. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13895. msm_routing_put_listen_mixer),
  13896. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13898. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13899. msm_routing_put_listen_mixer),
  13900. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13902. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13903. msm_routing_put_listen_mixer),
  13904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13906. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13907. msm_routing_put_listen_mixer),
  13908. };
  13909. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13910. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13912. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13913. msm_routing_put_listen_mixer),
  13914. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13916. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13917. msm_routing_put_listen_mixer),
  13918. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13920. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13921. msm_routing_put_listen_mixer),
  13922. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13924. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13925. msm_routing_put_listen_mixer),
  13926. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13928. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13929. msm_routing_put_listen_mixer),
  13930. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13932. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13933. msm_routing_put_listen_mixer),
  13934. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13936. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13937. msm_routing_put_listen_mixer),
  13938. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13940. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13941. msm_routing_put_listen_mixer),
  13942. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13944. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13945. msm_routing_put_listen_mixer),
  13946. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13949. msm_routing_put_listen_mixer),
  13950. };
  13951. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13952. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13954. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13955. msm_routing_put_listen_mixer),
  13956. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13958. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13959. msm_routing_put_listen_mixer),
  13960. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13962. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13963. msm_routing_put_listen_mixer),
  13964. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13966. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13967. msm_routing_put_listen_mixer),
  13968. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13970. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13971. msm_routing_put_listen_mixer),
  13972. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13974. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13975. msm_routing_put_listen_mixer),
  13976. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13978. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13979. msm_routing_put_listen_mixer),
  13980. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13982. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13983. msm_routing_put_listen_mixer),
  13984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13986. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13987. msm_routing_put_listen_mixer),
  13988. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13990. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13991. msm_routing_put_listen_mixer),
  13992. };
  13993. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13994. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13996. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13997. msm_routing_put_listen_mixer),
  13998. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14000. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14001. msm_routing_put_listen_mixer),
  14002. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14004. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14005. msm_routing_put_listen_mixer),
  14006. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  14008. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14009. msm_routing_put_listen_mixer),
  14010. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  14012. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14013. msm_routing_put_listen_mixer),
  14014. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14016. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14017. msm_routing_put_listen_mixer),
  14018. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14020. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14021. msm_routing_put_listen_mixer),
  14022. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14024. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14025. msm_routing_put_listen_mixer),
  14026. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14028. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14029. msm_routing_put_listen_mixer),
  14030. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14032. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  14033. msm_routing_put_listen_mixer),
  14034. };
  14035. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  14036. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14038. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14039. msm_routing_put_listen_mixer),
  14040. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14042. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14043. msm_routing_put_listen_mixer),
  14044. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14046. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14047. msm_routing_put_listen_mixer),
  14048. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  14050. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14051. msm_routing_put_listen_mixer),
  14052. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  14054. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14055. msm_routing_put_listen_mixer),
  14056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14057. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14058. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14059. msm_routing_put_listen_mixer),
  14060. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14062. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14063. msm_routing_put_listen_mixer),
  14064. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14066. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14067. msm_routing_put_listen_mixer),
  14068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14070. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14071. msm_routing_put_listen_mixer),
  14072. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14074. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  14075. msm_routing_put_listen_mixer),
  14076. };
  14077. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  14078. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14079. 0, 1, 0, msm_routing_get_switch_mixer,
  14080. msm_routing_put_switch_mixer);
  14081. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  14082. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14083. 0, 1, 0, msm_routing_get_switch_mixer,
  14084. msm_routing_put_switch_mixer);
  14085. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  14086. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14087. 0, 1, 0, msm_routing_get_switch_mixer,
  14088. msm_routing_put_switch_mixer);
  14089. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  14090. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14091. 0, 1, 0, msm_routing_get_switch_mixer,
  14092. msm_routing_put_switch_mixer);
  14093. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  14094. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14095. 0, 1, 0, msm_routing_get_switch_mixer,
  14096. msm_routing_put_switch_mixer);
  14097. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  14098. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14099. 0, 1, 0, msm_routing_get_switch_mixer,
  14100. msm_routing_put_switch_mixer);
  14101. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  14102. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14103. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  14104. msm_routing_put_fm_pcmrx_switch_mixer);
  14105. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  14106. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14107. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  14108. msm_routing_put_int0_mi2s_switch_mixer);
  14109. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  14110. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14111. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  14112. msm_routing_put_int4_mi2s_switch_mixer);
  14113. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  14114. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14115. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  14116. msm_routing_put_pri_mi2s_switch_mixer);
  14117. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  14118. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14119. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  14120. msm_routing_put_sec_mi2s_switch_mixer);
  14121. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  14122. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14123. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  14124. msm_routing_put_tert_mi2s_switch_mixer);
  14125. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  14126. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14127. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  14128. msm_routing_put_quat_mi2s_switch_mixer);
  14129. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  14130. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14131. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  14132. msm_routing_put_quin_mi2s_switch_mixer);
  14133. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  14134. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14135. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14136. msm_routing_put_hfp_switch_mixer);
  14137. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  14138. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14139. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14140. msm_routing_put_hfp_switch_mixer);
  14141. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  14142. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14143. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14144. msm_routing_put_hfp_switch_mixer);
  14145. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  14146. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14147. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  14148. msm_routing_put_hfp_switch_mixer);
  14149. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  14150. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14151. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  14152. msm_routing_put_usb_switch_mixer);
  14153. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  14154. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  14155. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  14156. msm_routing_a2dp_switch_mixer_put);
  14157. static const struct soc_enum lsm_port_enum =
  14158. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  14159. static const char * const lsm_func_text[] = {
  14160. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  14161. };
  14162. static const struct soc_enum lsm_func_enum =
  14163. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  14164. static const struct snd_kcontrol_new lsm_controls[] = {
  14165. /* kcontrol of lsm_function */
  14166. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14167. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14168. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14169. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14170. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14171. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14172. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14173. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14174. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14175. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14176. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14177. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14178. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14179. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14180. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14181. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14182. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  14183. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  14184. /* kcontrol of lsm_port */
  14185. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  14186. msm_routing_lsm_port_get,
  14187. msm_routing_lsm_port_put),
  14188. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  14189. msm_routing_lsm_port_get,
  14190. msm_routing_lsm_port_put),
  14191. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  14192. msm_routing_lsm_port_get,
  14193. msm_routing_lsm_port_put),
  14194. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  14195. msm_routing_lsm_port_get,
  14196. msm_routing_lsm_port_put),
  14197. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14198. msm_routing_lsm_port_get,
  14199. msm_routing_lsm_port_put),
  14200. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14201. msm_routing_lsm_port_get,
  14202. msm_routing_lsm_port_put),
  14203. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14204. msm_routing_lsm_port_get,
  14205. msm_routing_lsm_port_put),
  14206. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14207. msm_routing_lsm_port_get,
  14208. msm_routing_lsm_port_put),
  14209. };
  14210. static const char * const aanc_slim_0_rx_text[] = {
  14211. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14212. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14213. };
  14214. static const struct soc_enum aanc_slim_0_rx_enum =
  14215. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14216. aanc_slim_0_rx_text);
  14217. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14218. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14219. msm_routing_slim_0_rx_aanc_mux_get,
  14220. msm_routing_slim_0_rx_aanc_mux_put)
  14221. };
  14222. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  14223. struct snd_ctl_elem_value *ucontrol)
  14224. {
  14225. ucontrol->value.integer.value[0] = aanc_level;
  14226. return 0;
  14227. }
  14228. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  14229. struct snd_ctl_elem_value *ucontrol)
  14230. {
  14231. int ret = 0;
  14232. mutex_lock(&routing_lock);
  14233. aanc_level = ucontrol->value.integer.value[0];
  14234. pr_debug("%s: value: %ld\n",
  14235. __func__, ucontrol->value.integer.value[0]);
  14236. ret = afe_set_aanc_noise_level(aanc_level);
  14237. mutex_unlock(&routing_lock);
  14238. return ret;
  14239. }
  14240. static const struct snd_kcontrol_new aanc_noise_level[] = {
  14241. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  14242. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  14243. };
  14244. static int msm_routing_get_stereo_to_custom_stereo_control(
  14245. struct snd_kcontrol *kcontrol,
  14246. struct snd_ctl_elem_value *ucontrol)
  14247. {
  14248. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14249. return 0;
  14250. }
  14251. static int msm_routing_put_stereo_to_custom_stereo_control(
  14252. struct snd_kcontrol *kcontrol,
  14253. struct snd_ctl_elem_value *ucontrol)
  14254. {
  14255. int flag = 0, i = 0, rc = 0, idx = 0;
  14256. int be_index = 0, port_id, topo_id;
  14257. unsigned int session_id = 0;
  14258. uint16_t op_FL_ip_FL_weight = 0;
  14259. uint16_t op_FL_ip_FR_weight = 0;
  14260. uint16_t op_FR_ip_FL_weight = 0;
  14261. uint16_t op_FR_ip_FR_weight = 0;
  14262. flag = ucontrol->value.integer.value[0];
  14263. pr_debug("%s E flag %d\n", __func__, flag);
  14264. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14265. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14266. __func__, is_custom_stereo_on, flag);
  14267. return 0;
  14268. }
  14269. is_custom_stereo_on = flag ? true : false;
  14270. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14271. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14272. port_id = msm_bedais[be_index].port_id;
  14273. if (!msm_bedais[be_index].active)
  14274. continue;
  14275. if ((port_id != SLIMBUS_0_RX) &&
  14276. (port_id != RT_PROXY_PORT_001_RX) &&
  14277. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14278. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14279. continue;
  14280. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14281. MSM_FRONTEND_DAI_MM_SIZE) {
  14282. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14283. LEGACY_PCM_MODE)
  14284. goto skip_send_custom_stereo;
  14285. session_id =
  14286. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14287. if (is_custom_stereo_on) {
  14288. op_FL_ip_FL_weight =
  14289. Q14_GAIN_ZERO_POINT_FIVE;
  14290. op_FL_ip_FR_weight =
  14291. Q14_GAIN_ZERO_POINT_FIVE;
  14292. op_FR_ip_FL_weight =
  14293. Q14_GAIN_ZERO_POINT_FIVE;
  14294. op_FR_ip_FR_weight =
  14295. Q14_GAIN_ZERO_POINT_FIVE;
  14296. } else {
  14297. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14298. op_FL_ip_FR_weight = 0;
  14299. op_FR_ip_FL_weight = 0;
  14300. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14301. }
  14302. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14303. unsigned long copp =
  14304. session_copp_map[i]
  14305. [SESSION_TYPE_RX][be_index];
  14306. if (!test_bit(idx, &copp))
  14307. goto skip_send_custom_stereo;
  14308. topo_id = adm_get_topology_for_port_copp_idx(
  14309. msm_bedais[be_index].port_id, idx);
  14310. if (topo_id < 0)
  14311. pr_debug("%s:Err:custom stereo topo %d",
  14312. __func__, topo_id);
  14313. pr_debug("idx %d\n", idx);
  14314. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14315. rc = msm_ds2_dap_set_custom_stereo_onoff
  14316. (msm_bedais[be_index].port_id,
  14317. idx, is_custom_stereo_on);
  14318. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14319. rc = dolby_dap_set_custom_stereo_onoff(
  14320. msm_bedais[be_index].port_id,
  14321. idx, is_custom_stereo_on);
  14322. else
  14323. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14324. (msm_bedais[be_index].port_id,
  14325. idx, session_id,
  14326. op_FL_ip_FL_weight,
  14327. op_FL_ip_FR_weight,
  14328. op_FR_ip_FL_weight,
  14329. op_FR_ip_FR_weight);
  14330. if (rc < 0)
  14331. skip_send_custom_stereo:
  14332. pr_err("%s: err setting custom stereo\n",
  14333. __func__);
  14334. }
  14335. }
  14336. }
  14337. return 0;
  14338. }
  14339. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14340. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14341. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14342. msm_routing_put_stereo_to_custom_stereo_control),
  14343. };
  14344. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14345. struct snd_ctl_elem_value *ucontrol)
  14346. {
  14347. return 0;
  14348. }
  14349. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14350. struct snd_ctl_elem_value *ucontrol)
  14351. {
  14352. int i = 0, j;
  14353. int num_app_types = ucontrol->value.integer.value[i++];
  14354. pr_debug("%s\n", __func__);
  14355. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14356. sizeof(struct msm_pcm_routing_app_type_data));
  14357. if (num_app_types > MAX_APP_TYPES) {
  14358. pr_err("%s: number of app types exceed the max supported\n",
  14359. __func__);
  14360. return -EINVAL;
  14361. }
  14362. for (j = 0; j < num_app_types; j++) {
  14363. app_type_cfg[j].app_type =
  14364. ucontrol->value.integer.value[i++];
  14365. app_type_cfg[j].sample_rate =
  14366. ucontrol->value.integer.value[i++];
  14367. app_type_cfg[j].bit_width =
  14368. ucontrol->value.integer.value[i++];
  14369. }
  14370. return 0;
  14371. }
  14372. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14373. struct snd_ctl_elem_value *ucontrol)
  14374. {
  14375. int j, fe_id, be_id, port_type;
  14376. int ret = 0;
  14377. unsigned long copp;
  14378. struct msm_pcm_routing_bdai_data *bedai;
  14379. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14380. SESSION_TYPE_RX;
  14381. int app_type = ucontrol->value.integer.value[1];
  14382. int gain = (ucontrol->value.integer.value[2] +
  14383. ucontrol->value.integer.value[3])/2;
  14384. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14385. MSM_AFE_PORT_TYPE_TX;
  14386. mutex_lock(&routing_lock);
  14387. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14388. if (is_be_dai_extproc(be_id))
  14389. continue;
  14390. bedai = &msm_bedais[be_id];
  14391. if (afe_get_port_type(bedai->port_id) != port_type)
  14392. continue;
  14393. if (!bedai->active)
  14394. continue;
  14395. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14396. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14397. continue;
  14398. if (app_type !=
  14399. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14400. continue;
  14401. copp = session_copp_map[fe_id][dir][be_id];
  14402. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14403. if (!test_bit(j, &copp))
  14404. continue;
  14405. ret |= adm_set_volume(bedai->port_id, j, gain);
  14406. }
  14407. }
  14408. }
  14409. mutex_unlock(&routing_lock);
  14410. return ret ? -EINVAL : 0;
  14411. }
  14412. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14413. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14414. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14415. msm_routing_put_app_type_cfg_control),
  14416. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14417. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14418. };
  14419. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14420. struct snd_ctl_elem_value *ucontrol)
  14421. {
  14422. int copp_idx, fe_id, be_id, port_type;
  14423. int ret = 0;
  14424. unsigned long copp;
  14425. struct msm_pcm_routing_bdai_data *bedai;
  14426. u8 *packed_params = NULL;
  14427. struct param_hdr_v3 param_hdr;
  14428. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14429. sizeof(uint32_t));
  14430. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14431. SESSION_TYPE_RX;
  14432. int app_type = ucontrol->value.integer.value[1];
  14433. int module_id = ucontrol->value.integer.value[2];
  14434. int instance_id = ucontrol->value.integer.value[3];
  14435. int param_id = ucontrol->value.integer.value[4];
  14436. int param_value = ucontrol->value.integer.value[5];
  14437. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14438. MSM_AFE_PORT_TYPE_TX;
  14439. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14440. __func__, app_type, module_id,
  14441. instance_id, param_id, param_value);
  14442. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14443. if (!packed_params)
  14444. return -ENOMEM;
  14445. memset(&param_hdr, 0, sizeof(param_hdr));
  14446. param_hdr.module_id = module_id;
  14447. param_hdr.instance_id = instance_id;
  14448. param_hdr.param_id = param_id;
  14449. param_hdr.param_size = sizeof(uint32_t);
  14450. packed_param_size = 0;
  14451. mutex_lock(&routing_lock);
  14452. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14453. if (is_be_dai_extproc(be_id))
  14454. continue;
  14455. bedai = &msm_bedais[be_id];
  14456. if (afe_get_port_type(bedai->port_id) != port_type)
  14457. continue;
  14458. if (!bedai->active)
  14459. continue;
  14460. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14461. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14462. continue;
  14463. if (app_type !=
  14464. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14465. continue;
  14466. copp = session_copp_map[fe_id][dir][be_id];
  14467. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14468. copp_idx++) {
  14469. if (!test_bit(copp_idx, &copp))
  14470. continue;
  14471. ret = q6common_pack_pp_params(packed_params,
  14472. &param_hdr,
  14473. (u8 *) &param_value,
  14474. &packed_param_size);
  14475. if (ret) {
  14476. pr_err("%s: Failed to pack params, error %d\n",
  14477. __func__, ret);
  14478. goto done;
  14479. }
  14480. ret = adm_set_pp_params(bedai->port_id,
  14481. copp_idx, NULL,
  14482. packed_params,
  14483. packed_param_size);
  14484. if (ret) {
  14485. pr_err("%s: Setting param failed with err=%d\n",
  14486. __func__, ret);
  14487. ret = -EINVAL;
  14488. goto done;
  14489. }
  14490. }
  14491. }
  14492. }
  14493. done:
  14494. mutex_unlock(&routing_lock);
  14495. kfree(packed_params);
  14496. return ret;
  14497. }
  14498. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14499. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14500. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14501. };
  14502. static int msm_routing_get_lsm_app_type_cfg_control(
  14503. struct snd_kcontrol *kcontrol,
  14504. struct snd_ctl_elem_value *ucontrol)
  14505. {
  14506. return 0;
  14507. }
  14508. static int msm_routing_put_lsm_app_type_cfg_control(
  14509. struct snd_kcontrol *kcontrol,
  14510. struct snd_ctl_elem_value *ucontrol)
  14511. {
  14512. int shift = ((struct soc_multi_mixer_control *)
  14513. kcontrol->private_value)->shift;
  14514. int i = 0, j;
  14515. int num_app_types = ucontrol->value.integer.value[i++];
  14516. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14517. sizeof(struct msm_pcm_routing_app_type_data));
  14518. if (num_app_types > MAX_APP_TYPES) {
  14519. pr_err("%s: number of app types exceed the max supported\n",
  14520. __func__);
  14521. return -EINVAL;
  14522. }
  14523. for (j = 0; j < num_app_types; j++) {
  14524. lsm_app_type_cfg[j].app_type =
  14525. ucontrol->value.integer.value[i++];
  14526. lsm_app_type_cfg[j].sample_rate =
  14527. ucontrol->value.integer.value[i++];
  14528. lsm_app_type_cfg[j].bit_width =
  14529. ucontrol->value.integer.value[i++];
  14530. /* Shift of 1 indicates this is V2 mixer control */
  14531. if (shift == 1)
  14532. lsm_app_type_cfg[j].num_out_channels =
  14533. ucontrol->value.integer.value[i++];
  14534. }
  14535. return 0;
  14536. }
  14537. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14538. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14539. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14540. msm_routing_put_lsm_app_type_cfg_control),
  14541. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14542. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14543. msm_routing_put_lsm_app_type_cfg_control),
  14544. };
  14545. static int msm_routing_get_use_ds1_or_ds2_control(
  14546. struct snd_kcontrol *kcontrol,
  14547. struct snd_ctl_elem_value *ucontrol)
  14548. {
  14549. ucontrol->value.integer.value[0] = is_ds2_on;
  14550. return 0;
  14551. }
  14552. static int msm_routing_put_use_ds1_or_ds2_control(
  14553. struct snd_kcontrol *kcontrol,
  14554. struct snd_ctl_elem_value *ucontrol)
  14555. {
  14556. is_ds2_on = ucontrol->value.integer.value[0];
  14557. return 0;
  14558. }
  14559. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14560. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14561. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14562. msm_routing_put_use_ds1_or_ds2_control),
  14563. };
  14564. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14565. struct snd_ctl_elem_value *ucontrol) {
  14566. int rc = 0;
  14567. int be_idx = 0;
  14568. char *param_value;
  14569. int *update_param_value;
  14570. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14571. struct param_hdr_v3 param_hdr;
  14572. param_value = kzalloc(param_size, GFP_KERNEL);
  14573. if (!param_value)
  14574. return -ENOMEM;
  14575. memset(&param_hdr, 0, sizeof(param_hdr));
  14576. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14577. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14578. break;
  14579. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14580. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14581. param_hdr.instance_id = INSTANCE_ID_0;
  14582. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14583. param_hdr.param_size = param_size;
  14584. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14585. NULL, &param_hdr, (u8 *) param_value);
  14586. if (rc) {
  14587. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14588. kfree(param_value);
  14589. return -EINVAL;
  14590. }
  14591. update_param_value = (int *)param_value;
  14592. ucontrol->value.integer.value[0] = update_param_value[0];
  14593. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14594. __func__, update_param_value[0]);
  14595. }
  14596. kfree(param_value);
  14597. return 0;
  14598. }
  14599. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14600. struct snd_ctl_elem_value *ucontrol)
  14601. {
  14602. voc_session_id = ucontrol->value.integer.value[0];
  14603. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14604. return 0;
  14605. }
  14606. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14607. struct snd_ctl_elem_value *ucontrol)
  14608. {
  14609. ucontrol->value.integer.value[0] = voc_session_id;
  14610. return 0;
  14611. }
  14612. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14613. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14614. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14615. msm_voc_session_id_put),
  14616. };
  14617. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14618. struct snd_ctl_elem_info *uinfo)
  14619. {
  14620. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14621. uinfo->count = sizeof(struct sound_focus_param);
  14622. return 0;
  14623. }
  14624. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14625. struct snd_ctl_elem_value *ucontrol)
  14626. {
  14627. int ret = 0;
  14628. struct sound_focus_param soundFocusData;
  14629. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14630. sizeof(struct sound_focus_param));
  14631. ret = voc_set_sound_focus(soundFocusData);
  14632. if (ret) {
  14633. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14634. __func__, ret);
  14635. ret = -EINVAL;
  14636. }
  14637. return ret;
  14638. }
  14639. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14640. struct snd_ctl_elem_value *ucontrol)
  14641. {
  14642. int ret = 0;
  14643. struct sound_focus_param soundFocusData;
  14644. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14645. ret = voc_get_sound_focus(&soundFocusData);
  14646. if (ret) {
  14647. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14648. __func__, ret);
  14649. ret = -EINVAL;
  14650. goto done;
  14651. }
  14652. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14653. sizeof(struct sound_focus_param));
  14654. done:
  14655. return ret;
  14656. }
  14657. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14658. struct snd_ctl_elem_info *uinfo)
  14659. {
  14660. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14661. uinfo->count = sizeof(struct source_tracking_param);
  14662. return 0;
  14663. }
  14664. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14665. struct snd_ctl_elem_value *ucontrol)
  14666. {
  14667. int ret = 0;
  14668. struct source_tracking_param sourceTrackingData;
  14669. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14670. ret = voc_get_source_tracking(&sourceTrackingData);
  14671. if (ret) {
  14672. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14673. __func__, ret);
  14674. ret = -EINVAL;
  14675. goto done;
  14676. }
  14677. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14678. sizeof(struct source_tracking_param));
  14679. done:
  14680. return ret;
  14681. }
  14682. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14683. int *copp_idx)
  14684. {
  14685. int i, idx, be_idx;
  14686. int ret = 0;
  14687. unsigned long copp;
  14688. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14689. ret = q6audio_validate_port(port_id);
  14690. if (ret < 0) {
  14691. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14692. __func__, port_id, ret);
  14693. ret = -EINVAL;
  14694. goto done;
  14695. }
  14696. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14697. if (msm_bedais[be_idx].port_id == port_id)
  14698. break;
  14699. }
  14700. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14701. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14702. ret = -EINVAL;
  14703. goto done;
  14704. }
  14705. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14706. MSM_FRONTEND_DAI_MM_SIZE) {
  14707. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14708. copp = session_copp_map[i]
  14709. [session_type][be_idx];
  14710. if (test_bit(idx, &copp))
  14711. break;
  14712. }
  14713. if (idx >= MAX_COPPS_PER_PORT)
  14714. continue;
  14715. else
  14716. break;
  14717. }
  14718. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14719. pr_err("%s: Invalid FE, exiting\n", __func__);
  14720. ret = -EINVAL;
  14721. goto done;
  14722. }
  14723. *copp_idx = idx;
  14724. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14725. done:
  14726. return ret;
  14727. }
  14728. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14729. const char *prefix, int *port_id)
  14730. {
  14731. int ret = 0;
  14732. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14733. /*
  14734. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14735. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14736. * and compare the string with the backend name to derive the port id.
  14737. */
  14738. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14739. "SLIMBUS_0")) {
  14740. *port_id = SLIMBUS_0_TX;
  14741. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14742. "TERT_MI2S")) {
  14743. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14744. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14745. "INT3_MI2S")) {
  14746. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14747. } else {
  14748. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14749. __func__, kcontrol->id.name);
  14750. ret = -EINVAL;
  14751. goto done;
  14752. }
  14753. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14754. __func__, kcontrol->id.name, *port_id);
  14755. done:
  14756. return ret;
  14757. }
  14758. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14759. struct snd_ctl_elem_value *ucontrol)
  14760. {
  14761. int ret = 0;
  14762. struct sound_focus_param soundFocusData;
  14763. int port_id, copp_idx;
  14764. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14765. "Sound Focus Audio Tx ", &port_id);
  14766. if (ret != 0) {
  14767. pr_err("%s: Error in deriving port id, err=%d\n",
  14768. __func__, ret);
  14769. ret = -EINVAL;
  14770. goto done;
  14771. }
  14772. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14773. &copp_idx);
  14774. if (ret) {
  14775. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14776. __func__, port_id);
  14777. ret = -EINVAL;
  14778. goto done;
  14779. }
  14780. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14781. sizeof(struct sound_focus_param));
  14782. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14783. if (ret) {
  14784. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14785. __func__, ret);
  14786. ret = -EINVAL;
  14787. goto done;
  14788. }
  14789. done:
  14790. return ret;
  14791. }
  14792. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14793. struct snd_ctl_elem_value *ucontrol)
  14794. {
  14795. int ret = 0;
  14796. struct sound_focus_param soundFocusData;
  14797. int port_id, copp_idx;
  14798. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14799. "Sound Focus Audio Tx ", &port_id);
  14800. if (ret) {
  14801. pr_err("%s: Error in deriving port id, err=%d\n",
  14802. __func__, ret);
  14803. ret = -EINVAL;
  14804. goto done;
  14805. }
  14806. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14807. &copp_idx);
  14808. if (ret) {
  14809. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14810. __func__, port_id);
  14811. ret = -EINVAL;
  14812. goto done;
  14813. }
  14814. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14815. if (ret) {
  14816. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14817. __func__, ret);
  14818. ret = -EINVAL;
  14819. goto done;
  14820. }
  14821. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14822. sizeof(struct sound_focus_param));
  14823. done:
  14824. return ret;
  14825. }
  14826. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14827. struct snd_ctl_elem_value *ucontrol)
  14828. {
  14829. int ret = 0;
  14830. struct source_tracking_param sourceTrackingData;
  14831. int port_id, copp_idx;
  14832. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14833. "Source Tracking Audio Tx ", &port_id);
  14834. if (ret) {
  14835. pr_err("%s: Error in deriving port id, err=%d\n",
  14836. __func__, ret);
  14837. ret = -EINVAL;
  14838. goto done;
  14839. }
  14840. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14841. &copp_idx);
  14842. if (ret) {
  14843. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14844. __func__, port_id);
  14845. ret = -EINVAL;
  14846. goto done;
  14847. }
  14848. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14849. if (ret) {
  14850. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14851. __func__, ret);
  14852. ret = -EINVAL;
  14853. goto done;
  14854. }
  14855. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14856. sizeof(struct source_tracking_param));
  14857. done:
  14858. return ret;
  14859. }
  14860. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14861. {
  14862. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14864. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14865. .info = msm_sound_focus_info,
  14866. .get = msm_voice_sound_focus_get,
  14867. .put = msm_voice_sound_focus_put,
  14868. },
  14869. {
  14870. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14871. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14872. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14873. .info = msm_source_tracking_info,
  14874. .get = msm_voice_source_tracking_get,
  14875. },
  14876. {
  14877. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14879. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14880. .info = msm_sound_focus_info,
  14881. .get = msm_audio_sound_focus_get,
  14882. .put = msm_audio_sound_focus_put,
  14883. },
  14884. {
  14885. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14887. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14888. .info = msm_source_tracking_info,
  14889. .get = msm_audio_source_tracking_get,
  14890. },
  14891. {
  14892. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14894. .name = "Sound Focus Voice Tx TERT_MI2S",
  14895. .info = msm_sound_focus_info,
  14896. .get = msm_voice_sound_focus_get,
  14897. .put = msm_voice_sound_focus_put,
  14898. },
  14899. {
  14900. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14901. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14902. .name = "Source Tracking Voice Tx TERT_MI2S",
  14903. .info = msm_source_tracking_info,
  14904. .get = msm_voice_source_tracking_get,
  14905. },
  14906. {
  14907. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14909. .name = "Sound Focus Audio Tx TERT_MI2S",
  14910. .info = msm_sound_focus_info,
  14911. .get = msm_audio_sound_focus_get,
  14912. .put = msm_audio_sound_focus_put,
  14913. },
  14914. {
  14915. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14916. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14917. .name = "Source Tracking Audio Tx TERT_MI2S",
  14918. .info = msm_source_tracking_info,
  14919. .get = msm_audio_source_tracking_get,
  14920. },
  14921. {
  14922. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14924. .name = "Sound Focus Voice Tx INT3_MI2S",
  14925. .info = msm_sound_focus_info,
  14926. .get = msm_voice_sound_focus_get,
  14927. .put = msm_voice_sound_focus_put,
  14928. },
  14929. {
  14930. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14931. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14932. .name = "Source Tracking Voice Tx INT3_MI2S",
  14933. .info = msm_source_tracking_info,
  14934. .get = msm_voice_source_tracking_get,
  14935. },
  14936. {
  14937. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14939. .name = "Sound Focus Audio Tx INT3_MI2S",
  14940. .info = msm_sound_focus_info,
  14941. .get = msm_audio_sound_focus_get,
  14942. .put = msm_audio_sound_focus_put,
  14943. },
  14944. {
  14945. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14946. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14947. .name = "Source Tracking Audio Tx INT3_MI2S",
  14948. .info = msm_source_tracking_info,
  14949. .get = msm_audio_source_tracking_get,
  14950. },
  14951. };
  14952. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14953. struct snd_ctl_elem_value *ucontrol)
  14954. {
  14955. int ret = 0;
  14956. int item;
  14957. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14958. pr_debug("%s item is %d\n", __func__,
  14959. ucontrol->value.enumerated.item[0]);
  14960. mutex_lock(&routing_lock);
  14961. item = ucontrol->value.enumerated.item[0];
  14962. if (item < e->items) {
  14963. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14964. __func__, e->shift_l, e->values[item]);
  14965. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14966. e->values[item] < MSM_BACKEND_DAI_MAX)
  14967. /* Enable feedback TX path */
  14968. ret = afe_spk_prot_feed_back_cfg(
  14969. msm_bedais[e->values[item]].port_id,
  14970. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14971. else {
  14972. pr_debug("%s values are out of range item %d\n",
  14973. __func__, e->values[item]);
  14974. /* Disable feedback TX path */
  14975. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14976. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14977. else
  14978. ret = -EINVAL;
  14979. }
  14980. } else {
  14981. pr_err("%s item value is out of range item\n", __func__);
  14982. ret = -EINVAL;
  14983. }
  14984. mutex_unlock(&routing_lock);
  14985. return ret;
  14986. }
  14987. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14988. struct snd_ctl_elem_value *ucontrol)
  14989. {
  14990. int ret = 0;
  14991. int item;
  14992. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14993. pr_debug("%s item is %d\n", __func__,
  14994. ucontrol->value.enumerated.item[0]);
  14995. mutex_lock(&routing_lock);
  14996. item = ucontrol->value.enumerated.item[0];
  14997. if (item < e->items) {
  14998. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14999. __func__, e->shift_l, e->values[item]);
  15000. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  15001. e->values[item] < MSM_BACKEND_DAI_MAX)
  15002. /* Enable feedback TX path */
  15003. ret = afe_spk_prot_feed_back_cfg(
  15004. msm_bedais[e->values[item]].port_id,
  15005. msm_bedais[e->shift_l].port_id,
  15006. 1, 1, 1);
  15007. else {
  15008. pr_debug("%s values are out of range item %d\n",
  15009. __func__, e->values[item]);
  15010. /* Disable feedback TX path */
  15011. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  15012. ret = afe_spk_prot_feed_back_cfg(0,
  15013. 0, 0, 0, 0);
  15014. else
  15015. ret = -EINVAL;
  15016. }
  15017. } else {
  15018. pr_err("%s item value is out of range item\n", __func__);
  15019. ret = -EINVAL;
  15020. }
  15021. mutex_unlock(&routing_lock);
  15022. return ret;
  15023. }
  15024. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  15025. struct snd_ctl_elem_value *ucontrol)
  15026. {
  15027. pr_debug("%s\n", __func__);
  15028. return 0;
  15029. }
  15030. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  15031. struct snd_ctl_elem_value *ucontrol)
  15032. {
  15033. pr_debug("%s\n", __func__);
  15034. ucontrol->value.enumerated.item[0] = 0;
  15035. return 0;
  15036. }
  15037. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  15038. "ZERO", "SLIM4_TX"
  15039. };
  15040. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  15041. "ZERO", "SLIM4_TX"
  15042. };
  15043. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  15044. "ZERO", "WSA_CDC_DMA_TX_0"
  15045. };
  15046. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  15047. "ZERO", "WSA_CDC_DMA_TX_0"
  15048. };
  15049. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  15050. "ZERO", "SENARY_TX"
  15051. };
  15052. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  15053. "ZERO", "INT5_MI2S_TX"
  15054. };
  15055. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  15056. "ZERO", "INT5_MI2S_TX"
  15057. };
  15058. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  15059. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  15060. };
  15061. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  15062. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  15063. };
  15064. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  15065. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  15066. };
  15067. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  15068. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  15069. };
  15070. static const int const mi2s_rx_vi_fb_tx_value[] = {
  15071. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  15072. };
  15073. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  15074. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  15075. };
  15076. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  15077. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  15078. };
  15079. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  15080. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  15081. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  15082. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  15083. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  15084. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  15085. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  15086. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  15087. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  15088. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  15089. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  15090. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  15091. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  15092. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  15093. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  15094. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  15095. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  15096. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  15097. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  15098. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  15099. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  15100. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  15101. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  15102. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  15103. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  15104. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  15105. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  15106. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  15107. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  15108. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  15109. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  15110. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  15111. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  15112. spkr_prot_put_vi_lch_port);
  15113. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  15114. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  15115. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  15116. spkr_prot_put_vi_rch_port);
  15117. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  15118. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  15119. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  15120. spkr_prot_put_vi_lch_port);
  15121. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  15122. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  15123. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  15124. spkr_prot_put_vi_rch_port);
  15125. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  15126. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  15127. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  15128. spkr_prot_put_vi_lch_port);
  15129. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  15130. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  15131. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  15132. spkr_prot_put_vi_lch_port);
  15133. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  15134. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  15135. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  15136. spkr_prot_put_vi_rch_port);
  15137. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  15138. /* Frontend AIF */
  15139. /* Widget name equals to Front-End DAI name<Need confirmation>,
  15140. * Stream name must contains substring of front-end dai name
  15141. */
  15142. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  15143. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  15144. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  15145. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  15146. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  15147. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  15148. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  15149. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  15150. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  15151. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  15152. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  15153. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  15154. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  15155. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  15156. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  15157. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  15158. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  15159. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  15160. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  15161. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  15162. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  15163. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  15164. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  15165. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  15166. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  15167. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  15168. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  15169. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  15170. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  15171. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  15172. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  15173. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  15174. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  15175. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  15176. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  15177. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  15178. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  15179. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  15180. "VoiceMMode1 Playback", 0, 0, 0, 0),
  15181. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  15182. "VoiceMMode1 Capture", 0, 0, 0, 0),
  15183. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  15184. "VoiceMMode2 Playback", 0, 0, 0, 0),
  15185. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  15186. "VoiceMMode2 Capture", 0, 0, 0, 0),
  15187. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  15188. 0, 0, 0, 0),
  15189. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  15190. 0, 0, 0, 0),
  15191. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  15192. 0, 0, 0, 0),
  15193. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  15194. 0, 0, 0, 0),
  15195. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  15196. 0, 0, 0, 0),
  15197. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  15198. 0, 0, 0, 0),
  15199. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  15200. 0, 0, 0, 0),
  15201. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  15202. 0, 0, 0, 0),
  15203. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  15204. 0, 0, 0, 0),
  15205. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  15206. 0, 0, 0, 0),
  15207. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  15208. 0, 0, 0, 0),
  15209. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  15210. 0, 0, 0, 0),
  15211. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  15212. 0, 0, 0, 0),
  15213. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  15214. 0, 0, 0, 0),
  15215. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  15216. 0, 0, 0, 0),
  15217. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  15218. 0, 0, 0, 0),
  15219. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  15220. 0, 0, 0, 0),
  15221. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  15222. 0, 0, 0, 0),
  15223. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  15224. 0, 0, 0, 0),
  15225. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15226. 0, 0, 0, 0),
  15227. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15228. 0, 0, 0, 0),
  15229. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15230. 0, 0, 0, 0),
  15231. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15232. 0, 0, 0, 0),
  15233. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15234. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15235. 0, 0, 0, 0),
  15236. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15237. "INT0 MI2S_RX Hostless Playback",
  15238. 0, 0, 0, 0),
  15239. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15240. "INT4 MI2S_RX Hostless Playback",
  15241. 0, 0, 0, 0),
  15242. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15243. "Primary MI2S_RX Hostless Playback",
  15244. 0, 0, 0, 0),
  15245. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15246. "Secondary MI2S_RX Hostless Playback",
  15247. 0, 0, 0, 0),
  15248. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15249. "Tertiary MI2S_RX Hostless Playback",
  15250. 0, 0, 0, 0),
  15251. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15252. "Quaternary MI2S_RX Hostless Playback",
  15253. 0, 0, 0, 0),
  15254. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15255. "Quinary MI2S_RX Hostless Playback",
  15256. 0, 0, 0, 0),
  15257. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15258. 0, 0, 0, 0),
  15259. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15260. 0, 0, 0, 0),
  15261. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15262. 0, 0, 0, 0),
  15263. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15264. 0, 0, 0, 0),
  15265. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15266. 0, 0, 0, 0),
  15267. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15268. "INT3 MI2S_TX Hostless Capture",
  15269. 0, 0, 0, 0),
  15270. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15271. "Tertiary MI2S_TX Hostless Capture",
  15272. 0, 0, 0, 0),
  15273. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15274. "Secondary MI2S_TX Hostless Capture",
  15275. 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15277. "Primary MI2S_TX Hostless Capture",
  15278. 0, 0, 0, 0),
  15279. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15280. 0, 0, 0, 0),
  15281. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15282. 0, 0, 0, 0),
  15283. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15284. "Quaternary MI2S_TX Hostless Capture",
  15285. 0, 0, 0, 0),
  15286. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15287. "Quinary MI2S_TX Hostless Capture",
  15288. 0, 0, 0, 0),
  15289. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15290. "Primary TDM0 Hostless Playback",
  15291. 0, 0, 0, 0),
  15292. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15293. "Primary TDM0 Hostless Capture",
  15294. 0, 0, 0, 0),
  15295. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15296. "Primary TDM1 Hostless Playback",
  15297. 0, 0, 0, 0),
  15298. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15299. "Primary TDM1 Hostless Capture",
  15300. 0, 0, 0, 0),
  15301. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15302. "Primary TDM2 Hostless Playback",
  15303. 0, 0, 0, 0),
  15304. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15305. "Primary TDM2 Hostless Capture",
  15306. 0, 0, 0, 0),
  15307. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15308. "Primary TDM3 Hostless Playback",
  15309. 0, 0, 0, 0),
  15310. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15311. "Primary TDM3 Hostless Capture",
  15312. 0, 0, 0, 0),
  15313. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15314. "Primary TDM4 Hostless Playback",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15317. "Primary TDM4 Hostless Capture",
  15318. 0, 0, 0, 0),
  15319. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15320. "Primary TDM5 Hostless Playback",
  15321. 0, 0, 0, 0),
  15322. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15323. "Primary TDM5 Hostless Capture",
  15324. 0, 0, 0, 0),
  15325. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15326. "Primary TDM6 Hostless Playback",
  15327. 0, 0, 0, 0),
  15328. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15329. "Primary TDM6 Hostless Capture",
  15330. 0, 0, 0, 0),
  15331. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15332. "Primary TDM7 Hostless Playback",
  15333. 0, 0, 0, 0),
  15334. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15335. "Primary TDM7 Hostless Capture",
  15336. 0, 0, 0, 0),
  15337. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15338. "Secondary TDM0 Hostless Playback",
  15339. 0, 0, 0, 0),
  15340. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15341. "Secondary TDM0 Hostless Capture",
  15342. 0, 0, 0, 0),
  15343. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15344. "Secondary TDM1 Hostless Playback",
  15345. 0, 0, 0, 0),
  15346. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15347. "Secondary TDM1 Hostless Capture",
  15348. 0, 0, 0, 0),
  15349. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15350. "Secondary TDM2 Hostless Playback",
  15351. 0, 0, 0, 0),
  15352. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15353. "Secondary TDM2 Hostless Capture",
  15354. 0, 0, 0, 0),
  15355. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15356. "Secondary TDM3 Hostless Playback",
  15357. 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15359. "Secondary TDM3 Hostless Capture",
  15360. 0, 0, 0, 0),
  15361. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15362. "Secondary TDM4 Hostless Playback",
  15363. 0, 0, 0, 0),
  15364. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15365. "Secondary TDM4 Hostless Capture",
  15366. 0, 0, 0, 0),
  15367. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15368. "Secondary TDM5 Hostless Playback",
  15369. 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15371. "Secondary TDM5 Hostless Capture",
  15372. 0, 0, 0, 0),
  15373. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15374. "Secondary TDM6 Hostless Playback",
  15375. 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15377. "Secondary TDM6 Hostless Capture",
  15378. 0, 0, 0, 0),
  15379. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15380. "Secondary TDM7 Hostless Playback",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15383. "Secondary TDM7 Hostless Capture",
  15384. 0, 0, 0, 0),
  15385. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15386. "Tertiary TDM0 Hostless Playback",
  15387. 0, 0, 0, 0),
  15388. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15389. "Tertiary TDM0 Hostless Capture",
  15390. 0, 0, 0, 0),
  15391. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15392. "Tertiary TDM1 Hostless Playback",
  15393. 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15395. "Tertiary TDM1 Hostless Capture",
  15396. 0, 0, 0, 0),
  15397. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15398. "Tertiary TDM2 Hostless Playback",
  15399. 0, 0, 0, 0),
  15400. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15401. "Tertiary TDM2 Hostless Capture",
  15402. 0, 0, 0, 0),
  15403. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15404. "Tertiary TDM3 Hostless Playback",
  15405. 0, 0, 0, 0),
  15406. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15407. "Tertiary TDM3 Hostless Capture",
  15408. 0, 0, 0, 0),
  15409. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15410. "Tertiary TDM4 Hostless Playback",
  15411. 0, 0, 0, 0),
  15412. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15413. "Tertiary TDM4 Hostless Capture",
  15414. 0, 0, 0, 0),
  15415. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15416. "Tertiary TDM5 Hostless Playback",
  15417. 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15419. "Tertiary TDM5 Hostless Capture",
  15420. 0, 0, 0, 0),
  15421. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15422. "Tertiary TDM6 Hostless Playback",
  15423. 0, 0, 0, 0),
  15424. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15425. "Tertiary TDM6 Hostless Capture",
  15426. 0, 0, 0, 0),
  15427. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15428. "Tertiary TDM7 Hostless Playback",
  15429. 0, 0, 0, 0),
  15430. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15431. "Tertiary TDM7 Hostless Capture",
  15432. 0, 0, 0, 0),
  15433. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15434. "Quaternary TDM0 Hostless Playback",
  15435. 0, 0, 0, 0),
  15436. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15437. "Quaternary TDM0 Hostless Capture",
  15438. 0, 0, 0, 0),
  15439. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15440. "Quaternary TDM1 Hostless Playback",
  15441. 0, 0, 0, 0),
  15442. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15443. "Quaternary TDM1 Hostless Capture",
  15444. 0, 0, 0, 0),
  15445. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15446. "Quaternary TDM2 Hostless Playback",
  15447. 0, 0, 0, 0),
  15448. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15449. "Quaternary TDM2 Hostless Capture",
  15450. 0, 0, 0, 0),
  15451. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15452. "Quaternary TDM3 Hostless Playback",
  15453. 0, 0, 0, 0),
  15454. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15455. "Quaternary TDM3 Hostless Capture",
  15456. 0, 0, 0, 0),
  15457. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15458. "Quaternary TDM4 Hostless Playback",
  15459. 0, 0, 0, 0),
  15460. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15461. "Quaternary TDM4 Hostless Capture",
  15462. 0, 0, 0, 0),
  15463. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15464. "Quaternary TDM5 Hostless Playback",
  15465. 0, 0, 0, 0),
  15466. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15467. "Quaternary TDM5 Hostless Capture",
  15468. 0, 0, 0, 0),
  15469. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15470. "Quaternary TDM6 Hostless Playback",
  15471. 0, 0, 0, 0),
  15472. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15473. "Quaternary TDM6 Hostless Capture",
  15474. 0, 0, 0, 0),
  15475. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15476. "Quaternary TDM7 Hostless Playback",
  15477. 0, 0, 0, 0),
  15478. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15479. "Quaternary TDM7 Hostless Capture",
  15480. 0, 0, 0, 0),
  15481. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15482. "Quinary TDM0 Hostless Playback",
  15483. 0, 0, 0, 0),
  15484. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15485. "Quinary TDM0 Hostless Capture",
  15486. 0, 0, 0, 0),
  15487. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15488. "Quinary TDM1 Hostless Playback",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15491. "Quinary TDM1 Hostless Capture",
  15492. 0, 0, 0, 0),
  15493. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15494. "Quinary TDM2 Hostless Playback",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15497. "Quinary TDM2 Hostless Capture",
  15498. 0, 0, 0, 0),
  15499. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15500. "Quinary TDM3 Hostless Playback",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15503. "Quinary TDM3 Hostless Capture",
  15504. 0, 0, 0, 0),
  15505. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15506. "Quinary TDM4 Hostless Playback",
  15507. 0, 0, 0, 0),
  15508. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15509. "Quinary TDM4 Hostless Capture",
  15510. 0, 0, 0, 0),
  15511. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15512. "Quinary TDM5 Hostless Playback",
  15513. 0, 0, 0, 0),
  15514. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15515. "Quinary TDM5 Hostless Capture",
  15516. 0, 0, 0, 0),
  15517. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15518. "Quinary TDM6 Hostless Playback",
  15519. 0, 0, 0, 0),
  15520. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15521. "Quinary TDM6 Hostless Capture",
  15522. 0, 0, 0, 0),
  15523. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15524. "Quinary TDM7 Hostless Playback",
  15525. 0, 0, 0, 0),
  15526. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15527. "Quinary TDM7 Hostless Capture",
  15528. 0, 0, 0, 0),
  15529. /* LSM */
  15530. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15531. 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15533. 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15537. 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15539. 0, 0, 0, 0),
  15540. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15541. 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15543. 0, 0, 0, 0),
  15544. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15545. 0, 0, 0, 0),
  15546. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15547. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15548. /* Backend AIF */
  15549. /* Stream name equals to backend dai link stream name */
  15550. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15551. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15552. 0, 0, 0, 0),
  15553. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15554. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15555. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15556. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15557. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15558. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15559. 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15561. 0, 0, 0, 0),
  15562. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15563. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15564. 0, 0, 0, 0),
  15565. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15566. 0, 0, 0, 0),
  15567. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15568. 0, 0, 0, 0),
  15569. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15570. "Secondary MI2S Playback SD1",
  15571. 0, 0, 0, 0),
  15572. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15573. 0, 0, 0, 0),
  15574. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15575. 0, 0, 0, 0),
  15576. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15577. 0, 0, 0, 0),
  15578. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15579. 0, 0, 0, 0),
  15580. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15581. 0, 0, 0, 0),
  15582. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15583. 0, 0, 0, 0),
  15584. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15585. 0, 0, 0, 0),
  15586. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15587. 0, 0, 0, 0),
  15588. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15589. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15590. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15591. 0, 0, 0, 0),
  15592. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15593. 0, 0, 0, 0),
  15594. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15595. 0, 0, 0, 0),
  15596. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15597. 0, 0, 0, 0),
  15598. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15599. 0, 0, 0, 0),
  15600. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15601. 0, 0, 0, 0),
  15602. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15603. 0, 0, 0, 0),
  15604. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15605. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15606. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15607. 0, 0, 0, 0),
  15608. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15609. 0, 0, 0, 0),
  15610. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15611. 0, 0, 0, 0),
  15612. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15613. 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15615. 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15617. 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15619. 0, 0, 0, 0),
  15620. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15621. 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15623. 0, 0, 0, 0),
  15624. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15625. 0, 0, 0, 0),
  15626. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15627. 0, 0, 0, 0),
  15628. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15629. 0, 0, 0, 0),
  15630. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15631. 0, 0, 0, 0),
  15632. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15633. 0, 0, 0, 0),
  15634. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15635. 0, 0, 0, 0),
  15636. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15637. 0, 0, 0, 0),
  15638. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15639. 0, 0, 0, 0),
  15640. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15641. 0, 0, 0, 0),
  15642. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15643. 0, 0, 0, 0),
  15644. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15645. 0, 0, 0, 0),
  15646. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15647. 0, 0, 0, 0),
  15648. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15649. 0, 0, 0, 0),
  15650. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15651. 0, 0, 0, 0),
  15652. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15653. 0, 0, 0, 0),
  15654. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15655. 0, 0, 0, 0),
  15656. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15657. 0, 0, 0, 0),
  15658. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15659. 0, 0, 0, 0),
  15660. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15661. 0, 0, 0, 0),
  15662. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15663. 0, 0, 0, 0),
  15664. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15665. 0, 0, 0, 0),
  15666. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15667. 0, 0, 0, 0),
  15668. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15669. 0, 0, 0, 0),
  15670. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15671. 0, 0, 0, 0),
  15672. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15673. 0, 0, 0, 0),
  15674. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15675. 0, 0, 0, 0),
  15676. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15677. 0, 0, 0, 0),
  15678. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15679. 0, 0, 0, 0),
  15680. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15681. 0, 0, 0, 0),
  15682. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15683. 0, 0, 0, 0),
  15684. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15685. 0, 0, 0, 0),
  15686. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15687. 0, 0, 0, 0),
  15688. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15689. 0, 0, 0, 0),
  15690. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15691. 0, 0, 0, 0),
  15692. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15693. 0, 0, 0, 0),
  15694. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15695. 0, 0, 0, 0),
  15696. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15697. 0, 0, 0, 0),
  15698. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15699. 0, 0, 0, 0),
  15700. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15701. 0, 0, 0, 0),
  15702. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15703. 0, 0, 0, 0),
  15704. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15705. 0, 0, 0, 0),
  15706. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15707. 0, 0, 0, 0),
  15708. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15709. 0, 0, 0, 0),
  15710. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15711. 0, 0, 0, 0),
  15712. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15713. 0, 0, 0, 0),
  15714. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15715. 0, 0, 0, 0),
  15716. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15717. 0, 0, 0, 0),
  15718. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15719. 0, 0, 0, 0),
  15720. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15721. 0, 0, 0, 0),
  15722. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15723. 0, 0, 0, 0),
  15724. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15725. 0, 0, 0, 0),
  15726. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15727. 0, 0, 0, 0),
  15728. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15729. 0, 0, 0, 0),
  15730. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15731. 0, 0, 0, 0),
  15732. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15733. 0, 0, 0, 0),
  15734. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15735. 0, 0, 0, 0),
  15736. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15737. 0, 0, 0, 0),
  15738. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15739. 0, 0, 0, 0),
  15740. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15741. 0, 0, 0, 0),
  15742. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15743. 0, 0, 0, 0),
  15744. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15745. 0, 0, 0, 0),
  15746. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15747. 0, 0, 0, 0),
  15748. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15749. 0, 0, 0, 0),
  15750. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15751. 0, 0, 0, 0),
  15752. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15753. 0, 0, 0, 0),
  15754. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15755. 0, 0, 0, 0),
  15756. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15757. 0, 0, 0, 0),
  15758. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15759. 0, 0, 0, 0),
  15760. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15761. 0, 0, 0, 0),
  15762. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15763. 0, 0, 0, 0),
  15764. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15765. 0, 0, 0, 0),
  15766. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15767. 0, 0, 0, 0),
  15768. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15769. 0, 0, 0, 0),
  15770. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15771. 0, 0, 0, 0),
  15772. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15773. 0, 0, 0, 0),
  15774. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15775. 0, 0, 0, 0),
  15776. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15777. 0, 0, 0, 0),
  15778. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15779. 0, 0, 0, 0),
  15780. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15781. 0, 0, 0, 0),
  15782. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15783. 0, 0, 0, 0),
  15784. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15785. 0, 0, 0, 0),
  15786. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15787. 0, 0, 0, 0),
  15788. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15789. 0, 0, 0, 0),
  15790. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15791. 0, 0, 0, 0),
  15792. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15793. 0, 0, 0, 0),
  15794. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15795. 0, 0, 0, 0),
  15796. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15797. 0, 0, 0, 0),
  15798. /* incall */
  15799. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15800. 0, 0, 0, 0),
  15801. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15802. 0, 0, 0, 0),
  15803. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15804. 0, 0, 0, 0),
  15805. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15806. 0, 0, 0, 0),
  15807. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15808. 0, 0, 0, 0),
  15809. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15810. 0, 0, 0, 0),
  15811. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15812. 0, 0, 0, 0),
  15813. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15814. 0, 0, 0, 0),
  15815. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15816. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15817. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15818. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15819. 0, 0, 0, 0),
  15820. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15821. 0, 0, 0, 0),
  15822. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15823. 0, 0, 0, 0),
  15824. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15825. 0, 0, 0, 0),
  15826. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15827. 0, 0, 0, 0),
  15828. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15829. 0, 0, 0, 0),
  15830. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15831. 0, 0, 0, 0),
  15832. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15833. 0, 0, 0, 0),
  15834. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15835. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15836. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15837. 0, 0, 0, 0),
  15838. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15839. 0, 0, 0, 0),
  15840. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15841. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15842. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15843. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15844. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15845. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15846. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15847. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15848. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15849. /* In- call recording */
  15850. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15851. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15852. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15853. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15854. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15855. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15856. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15857. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15858. /* Switch Definitions */
  15859. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15860. &slim_fm_switch_mixer_controls),
  15861. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15862. &slim1_fm_switch_mixer_controls),
  15863. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15864. &slim3_fm_switch_mixer_controls),
  15865. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15866. &slim4_fm_switch_mixer_controls),
  15867. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15868. &slim6_fm_switch_mixer_controls),
  15869. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15870. &pcm_rx_switch_mixer_controls),
  15871. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15872. &int0_mi2s_rx_switch_mixer_controls),
  15873. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15874. &int4_mi2s_rx_switch_mixer_controls),
  15875. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15876. &pri_mi2s_rx_switch_mixer_controls),
  15877. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15878. &sec_mi2s_rx_switch_mixer_controls),
  15879. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15880. &tert_mi2s_rx_switch_mixer_controls),
  15881. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15882. &quat_mi2s_rx_switch_mixer_controls),
  15883. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15884. &quin_mi2s_rx_switch_mixer_controls),
  15885. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15886. &hfp_pri_aux_switch_mixer_controls),
  15887. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15888. &hfp_aux_switch_mixer_controls),
  15889. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15890. &hfp_int_switch_mixer_controls),
  15891. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15892. &hfp_slim7_switch_mixer_controls),
  15893. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15894. &usb_switch_mixer_controls),
  15895. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15896. &a2dp_slim7_switch_mixer_controls),
  15897. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  15898. &cdc_dma_fm_switch_mixer_controls),
  15899. /* Mixer definitions */
  15900. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15901. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15902. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15903. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15904. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15905. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15906. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15907. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15908. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15909. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15910. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15911. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15912. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15913. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15914. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15915. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15916. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15917. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15918. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15919. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15920. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15921. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15922. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15923. quaternary_mi2s_rx_mixer_controls,
  15924. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15925. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15926. tertiary_mi2s_rx_mixer_controls,
  15927. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15928. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15929. secondary_mi2s_rx_mixer_controls,
  15930. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15931. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15932. secondary_mi2s_rx2_mixer_controls,
  15933. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15934. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15935. primary_mi2s_rx_mixer_controls,
  15936. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15937. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15938. int0_mi2s_rx_mixer_controls,
  15939. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15940. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15941. int4_mi2s_rx_mixer_controls,
  15942. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15943. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15944. quinary_mi2s_rx_mixer_controls,
  15945. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15946. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15947. pri_tdm_rx_0_mixer_controls,
  15948. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15949. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15950. pri_tdm_rx_1_mixer_controls,
  15951. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15952. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15953. pri_tdm_rx_2_mixer_controls,
  15954. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15955. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15956. pri_tdm_rx_3_mixer_controls,
  15957. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15958. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15959. pri_tdm_tx_0_mixer_controls,
  15960. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15961. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15962. sec_tdm_rx_0_mixer_controls,
  15963. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15964. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15965. sec_tdm_rx_1_mixer_controls,
  15966. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15967. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15968. sec_tdm_rx_2_mixer_controls,
  15969. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15970. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15971. sec_tdm_rx_3_mixer_controls,
  15972. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15973. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15974. sec_tdm_tx_0_mixer_controls,
  15975. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15976. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15977. tert_tdm_rx_0_mixer_controls,
  15978. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15979. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15980. tert_tdm_tx_0_mixer_controls,
  15981. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15982. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15983. tert_tdm_rx_1_mixer_controls,
  15984. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15985. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15986. tert_tdm_rx_2_mixer_controls,
  15987. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15988. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15989. tert_tdm_rx_3_mixer_controls,
  15990. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15991. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15992. tert_tdm_rx_4_mixer_controls,
  15993. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15994. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15995. quat_tdm_rx_0_mixer_controls,
  15996. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15997. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15998. quat_tdm_tx_0_mixer_controls,
  15999. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  16000. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16001. quat_tdm_rx_1_mixer_controls,
  16002. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  16003. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16004. quat_tdm_rx_2_mixer_controls,
  16005. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  16006. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16007. quat_tdm_rx_3_mixer_controls,
  16008. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  16009. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16010. quin_tdm_rx_0_mixer_controls,
  16011. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  16012. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16013. quin_tdm_tx_0_mixer_controls,
  16014. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  16015. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16016. quin_tdm_rx_1_mixer_controls,
  16017. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  16018. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16019. quin_tdm_rx_2_mixer_controls,
  16020. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  16021. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16022. quin_tdm_rx_3_mixer_controls,
  16023. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  16024. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16025. wsa_cdc_dma_rx_0_mixer_controls,
  16026. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  16027. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16028. wsa_cdc_dma_rx_1_mixer_controls,
  16029. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  16030. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  16031. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  16032. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  16033. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  16034. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  16035. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  16036. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  16037. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  16038. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  16039. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  16040. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  16041. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  16042. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  16043. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  16044. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  16045. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  16046. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  16047. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  16048. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  16049. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  16050. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  16051. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  16052. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  16053. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  16054. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  16055. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  16056. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  16057. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  16058. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  16059. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  16060. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  16061. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  16062. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  16063. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  16064. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16065. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  16066. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16067. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  16068. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16069. tert_auxpcm_rx_mixer_controls,
  16070. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  16071. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16072. quat_auxpcm_rx_mixer_controls,
  16073. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  16074. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16075. quin_auxpcm_rx_mixer_controls,
  16076. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  16077. /* incall */
  16078. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  16079. incall_music_delivery_mixer_controls,
  16080. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  16081. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  16082. incall_music2_delivery_mixer_controls,
  16083. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  16084. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16085. slimbus_4_rx_mixer_controls,
  16086. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  16087. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16088. slimbus_6_rx_mixer_controls,
  16089. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  16090. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16091. usb_audio_rx_mixer_controls,
  16092. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  16093. /* Voice Mixer */
  16094. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  16095. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  16096. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  16097. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  16098. SND_SOC_NOPM, 0, 0,
  16099. sec_i2s_rx_voice_mixer_controls,
  16100. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  16101. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  16102. SND_SOC_NOPM, 0, 0,
  16103. sec_mi2s_rx_voice_mixer_controls,
  16104. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  16105. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  16106. SND_SOC_NOPM, 0, 0,
  16107. slimbus_rx_voice_mixer_controls,
  16108. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  16110. SND_SOC_NOPM, 0, 0,
  16111. bt_sco_rx_voice_mixer_controls,
  16112. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  16113. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  16114. SND_SOC_NOPM, 0, 0,
  16115. afe_pcm_rx_voice_mixer_controls,
  16116. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  16117. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  16118. SND_SOC_NOPM, 0, 0,
  16119. aux_pcm_rx_voice_mixer_controls,
  16120. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  16121. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  16122. SND_SOC_NOPM, 0, 0,
  16123. sec_aux_pcm_rx_voice_mixer_controls,
  16124. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  16125. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  16126. SND_SOC_NOPM, 0, 0,
  16127. tert_aux_pcm_rx_voice_mixer_controls,
  16128. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  16129. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  16130. SND_SOC_NOPM, 0, 0,
  16131. quat_aux_pcm_rx_voice_mixer_controls,
  16132. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  16133. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  16134. SND_SOC_NOPM, 0, 0,
  16135. quin_aux_pcm_rx_voice_mixer_controls,
  16136. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  16137. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  16138. SND_SOC_NOPM, 0, 0,
  16139. hdmi_rx_voice_mixer_controls,
  16140. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  16141. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  16142. SND_SOC_NOPM, 0, 0,
  16143. mi2s_rx_voice_mixer_controls,
  16144. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  16145. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  16146. SND_SOC_NOPM, 0, 0,
  16147. pri_mi2s_rx_voice_mixer_controls,
  16148. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  16149. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  16150. SND_SOC_NOPM, 0, 0,
  16151. int0_mi2s_rx_voice_mixer_controls,
  16152. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  16153. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  16154. SND_SOC_NOPM, 0, 0,
  16155. int4_mi2s_rx_voice_mixer_controls,
  16156. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  16157. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  16158. SND_SOC_NOPM, 0, 0,
  16159. tert_mi2s_rx_voice_mixer_controls,
  16160. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  16161. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  16162. SND_SOC_NOPM, 0, 0,
  16163. quat_mi2s_rx_voice_mixer_controls,
  16164. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  16165. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  16166. SND_SOC_NOPM, 0, 0,
  16167. quin_mi2s_rx_voice_mixer_controls,
  16168. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  16169. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  16170. SND_SOC_NOPM, 0, 0,
  16171. quat_tdm_rx_2_voice_mixer_controls,
  16172. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  16173. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  16174. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  16175. ARRAY_SIZE(tx_voip_mixer_controls)),
  16176. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  16177. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  16178. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  16179. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  16180. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  16181. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  16182. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16183. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  16184. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16185. int_bt_a2dp_rx_mixer_controls,
  16186. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  16187. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16188. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  16189. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16190. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  16191. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16192. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  16193. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16194. tx_voice2_stub_mixer_controls,
  16195. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  16196. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16197. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  16198. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  16199. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  16200. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  16201. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  16202. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16203. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  16204. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  16205. SND_SOC_NOPM, 0, 0,
  16206. slimbus_6_rx_voice_mixer_controls,
  16207. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  16208. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16209. slimbus_7_rx_voice_mixer_controls,
  16210. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  16211. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16212. slimbus_8_rx_voice_mixer_controls,
  16213. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  16214. /* port mixer */
  16215. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  16216. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  16217. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  16218. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  16219. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  16220. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  16221. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  16222. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  16223. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  16224. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  16225. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  16226. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  16227. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  16228. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  16229. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16230. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16231. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16232. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16233. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16234. sbus_1_rx_port_mixer_controls,
  16235. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16236. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16237. bt_sco_rx_port_mixer_controls,
  16238. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16239. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16240. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16241. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16242. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16243. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16244. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16245. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16246. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16247. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16248. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16249. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16250. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16251. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16252. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16253. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16254. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16255. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16256. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16257. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16258. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16259. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16260. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16261. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16262. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16263. primary_mi2s_rx_port_mixer_controls,
  16264. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16265. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16266. sec_mi2s_rx_port_mixer_controls,
  16267. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16268. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16269. tert_mi2s_rx_port_mixer_controls,
  16270. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16271. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16272. quat_mi2s_rx_port_mixer_controls,
  16273. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16274. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16275. quin_mi2s_rx_port_mixer_controls,
  16276. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16277. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16278. pri_tdm_rx_0_port_mixer_controls,
  16279. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16280. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16281. pri_tdm_rx_1_port_mixer_controls,
  16282. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16283. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16284. pri_tdm_rx_2_port_mixer_controls,
  16285. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16286. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16287. pri_tdm_rx_3_port_mixer_controls,
  16288. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16289. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16290. sec_tdm_rx_0_port_mixer_controls,
  16291. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16292. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16293. sec_tdm_rx_1_port_mixer_controls,
  16294. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16295. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16296. sec_tdm_rx_2_port_mixer_controls,
  16297. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16298. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16299. sec_tdm_rx_3_port_mixer_controls,
  16300. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16301. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16302. tert_tdm_rx_0_port_mixer_controls,
  16303. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16304. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16305. tert_tdm_rx_1_port_mixer_controls,
  16306. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16307. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16308. tert_tdm_rx_2_port_mixer_controls,
  16309. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16310. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16311. tert_tdm_rx_3_port_mixer_controls,
  16312. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16313. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16314. quat_tdm_rx_0_port_mixer_controls,
  16315. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16316. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16317. quat_tdm_rx_1_port_mixer_controls,
  16318. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16319. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16320. quat_tdm_rx_2_port_mixer_controls,
  16321. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16322. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16323. quat_tdm_rx_3_port_mixer_controls,
  16324. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16325. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16326. quin_tdm_rx_0_port_mixer_controls,
  16327. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16328. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16329. quin_tdm_rx_1_port_mixer_controls,
  16330. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16331. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16332. quin_tdm_rx_2_port_mixer_controls,
  16333. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16334. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16335. quin_tdm_rx_3_port_mixer_controls,
  16336. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16337. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16338. int0_mi2s_rx_port_mixer_controls,
  16339. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16340. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16341. int4_mi2s_rx_port_mixer_controls,
  16342. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16343. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16344. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16345. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16346. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16347. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16348. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16349. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16350. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16351. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16352. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16353. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16354. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16355. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16356. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16357. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16358. /* lsm mixer definitions */
  16359. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16360. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16361. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16362. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16363. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16364. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16365. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16366. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16367. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16368. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16369. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16370. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16371. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16372. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16373. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16374. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16375. /* Virtual Pins to force backends ON atm */
  16376. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16377. SND_SOC_DAPM_INPUT("BE_IN"),
  16378. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16379. &slim0_rx_vi_fb_lch_mux),
  16380. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16381. &slim0_rx_vi_fb_rch_mux),
  16382. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16383. &wsa_rx_0_vi_fb_lch_mux),
  16384. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16385. &wsa_rx_0_vi_fb_rch_mux),
  16386. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16387. &mi2s_rx_vi_fb_mux),
  16388. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16389. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16390. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16391. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16392. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16393. &voc_ext_ec_mux),
  16394. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16395. &ext_ec_ref_mux_ul1),
  16396. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16397. &ext_ec_ref_mux_ul2),
  16398. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16399. &ext_ec_ref_mux_ul3),
  16400. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16401. &ext_ec_ref_mux_ul4),
  16402. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16403. &ext_ec_ref_mux_ul5),
  16404. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16405. &ext_ec_ref_mux_ul6),
  16406. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16407. &ext_ec_ref_mux_ul8),
  16408. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16409. &ext_ec_ref_mux_ul9),
  16410. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16411. &ext_ec_ref_mux_ul10),
  16412. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16413. &ext_ec_ref_mux_ul16),
  16414. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16415. &ext_ec_ref_mux_ul17),
  16416. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16417. &ext_ec_ref_mux_ul18),
  16418. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16419. &ext_ec_ref_mux_ul19),
  16420. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16421. &ext_ec_ref_mux_ul28),
  16422. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16423. &ext_ec_ref_mux_ul29),
  16424. };
  16425. static const struct snd_soc_dapm_route intercon[] = {
  16426. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16427. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16428. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16429. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16430. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16431. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16432. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16433. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16434. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16435. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16436. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16437. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16438. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16439. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16440. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16441. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16442. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16443. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16444. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16445. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16446. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16447. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16448. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16449. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16450. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16451. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16452. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16453. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16454. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16455. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16456. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16457. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16458. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16459. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16460. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16461. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16462. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16463. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16464. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16465. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16466. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16467. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16468. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16469. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16470. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16471. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16472. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16473. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16474. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16475. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16476. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16477. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16478. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16479. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16480. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16481. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16482. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16483. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16484. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16485. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16486. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16487. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16488. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16489. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16490. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16491. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16492. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16493. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16494. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16495. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16496. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16497. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16498. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16499. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16500. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16501. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16502. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16503. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16504. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16505. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16506. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16507. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16508. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16509. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16510. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16511. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16512. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16513. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16514. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16515. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16516. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16517. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16518. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16519. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16520. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16521. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16522. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16523. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16524. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16525. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16526. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16527. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16528. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16529. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16530. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16531. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16532. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16533. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16534. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16535. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16536. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16537. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16538. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16539. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16540. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16541. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16542. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16543. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16544. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16545. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16546. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16547. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16548. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16549. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16550. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16551. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16552. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16553. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16554. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16555. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16556. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16557. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16558. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16559. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16560. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16561. {"HDMI", NULL, "HDMI Mixer"},
  16562. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16563. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16564. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16565. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16566. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16567. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16568. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16569. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16570. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16571. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16572. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16573. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16574. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16575. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16576. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16577. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16578. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16579. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16580. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16581. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16582. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16583. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16584. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16585. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16586. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16587. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16588. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16589. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16590. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16591. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16592. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16593. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16594. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16595. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16596. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16597. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16598. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16599. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16600. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16601. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16602. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16603. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16604. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16605. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16606. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16607. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16608. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16609. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16610. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16611. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16612. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16613. /* incall */
  16614. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16615. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16616. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16617. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16618. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16619. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16620. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16621. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16622. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16623. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16624. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16625. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16626. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16627. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16628. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16629. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16630. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16631. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16632. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16633. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16634. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16635. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16636. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16637. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16638. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16639. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16640. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16641. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16642. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16643. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16644. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16645. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16646. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16647. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16648. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16649. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16650. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16651. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16652. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16653. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16654. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16655. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16656. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16657. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16658. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16659. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16660. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16661. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16662. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16663. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16664. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16665. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16666. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16667. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16668. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16669. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16670. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16671. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16672. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16673. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16674. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16675. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16676. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16677. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16678. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16679. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16680. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16681. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16682. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16683. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16684. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16685. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16686. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16687. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16688. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16689. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16690. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16691. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16692. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16693. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16694. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16695. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16696. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16697. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16698. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16699. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16700. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16701. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16702. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16703. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16704. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16705. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16706. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16707. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16708. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16709. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16710. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16711. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16712. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16713. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16714. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16715. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16716. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16717. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16718. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16719. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16720. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16721. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16722. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16723. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16724. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16725. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16726. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16727. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16728. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16729. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16730. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16731. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16732. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16733. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16734. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16735. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16736. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16737. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16738. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16739. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16740. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16741. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16742. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16743. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16744. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16745. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16746. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16747. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16748. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16749. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16750. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16751. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16752. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16753. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16754. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16755. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16756. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16757. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16758. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16759. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16760. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16761. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16762. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16763. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16764. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16765. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16766. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16767. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16768. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16769. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16770. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16771. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16772. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16773. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16774. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16775. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16776. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16777. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16778. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16779. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16780. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16781. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16782. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16783. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16784. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16785. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16786. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16787. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16788. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16789. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16790. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16791. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16792. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16793. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16794. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16795. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16796. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16797. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16798. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16799. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16800. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16801. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16802. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16803. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16804. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16805. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16806. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16807. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16808. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16809. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16810. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16811. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16812. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16813. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16814. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16815. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16816. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16817. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16818. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16819. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16820. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16821. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16822. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16823. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16824. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16825. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16826. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16827. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16828. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16829. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16830. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16831. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16832. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16833. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16834. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16835. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16836. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16837. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16838. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16839. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16840. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16841. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16842. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16843. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16844. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16845. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16846. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16847. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16848. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16849. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16850. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16851. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16852. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16853. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16854. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16855. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16856. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16857. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16858. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16859. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16860. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16861. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16862. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16863. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16864. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16865. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16866. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16867. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16868. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16869. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16870. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16871. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16872. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16873. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16874. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16875. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16876. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16877. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16878. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16879. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16880. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16881. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16882. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16883. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16884. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16885. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16886. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16887. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16888. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16889. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16890. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16891. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16892. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16893. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16894. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16895. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16896. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16897. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16898. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16899. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16900. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16901. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16902. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16903. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16904. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16905. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16906. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16907. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16908. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16909. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16910. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16911. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16912. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16913. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16914. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16915. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16916. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16917. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16918. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16919. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16920. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16921. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16922. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16923. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16924. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16925. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16926. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16927. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16928. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16929. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16930. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16931. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16932. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16933. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16934. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16935. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16936. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16937. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16938. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16939. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16940. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16941. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16942. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16943. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16944. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16945. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16946. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16947. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16948. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16949. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16950. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16951. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16952. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16953. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16954. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16955. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16956. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16957. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16958. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16959. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16960. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16961. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16962. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16963. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16964. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16965. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16966. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16967. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16968. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16969. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16970. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16971. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16972. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16973. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16974. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16975. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16976. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16977. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16978. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16979. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16980. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16981. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  16982. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16983. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16984. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16985. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16986. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16987. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16988. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16989. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16990. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16991. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16992. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16993. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16994. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16995. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16996. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16997. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16998. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16999. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17000. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  17001. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17002. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17003. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17004. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17005. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17006. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17007. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17008. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17009. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17010. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17011. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17012. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17013. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17014. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17015. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17016. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17017. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17018. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  17019. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17020. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17021. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17022. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17023. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17024. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17025. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17026. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17027. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17028. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17029. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17030. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17031. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17032. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17033. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17034. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17035. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  17036. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17037. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17038. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17039. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17040. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17041. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17042. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17043. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17044. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17045. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17046. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17047. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17048. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17049. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17050. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17051. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17052. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17053. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  17054. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17055. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17056. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17057. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17058. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17059. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17060. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17061. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17062. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17063. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17064. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17065. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17066. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17067. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17068. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17069. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17070. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  17071. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17072. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17073. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17074. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17075. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17076. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17077. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17078. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17079. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17080. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17081. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17082. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17083. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17084. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17085. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17086. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17087. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17088. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  17089. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17090. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17091. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17092. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17093. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17094. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17095. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17096. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17097. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17098. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17099. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17100. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17101. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17102. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17103. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17104. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17105. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17106. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  17107. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17108. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17109. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17110. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17111. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17112. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17113. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17114. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17115. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17116. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17117. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17118. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17119. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17120. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17121. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17122. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17123. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17124. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  17125. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17126. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17127. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17128. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17129. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17130. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17131. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17132. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17133. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17134. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17135. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17136. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17137. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17138. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17139. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17140. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17141. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17142. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  17143. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17144. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17145. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17146. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17147. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17148. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17149. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17150. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17151. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17152. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17153. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17154. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17155. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17156. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17157. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17158. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17159. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17160. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17161. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  17162. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17163. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17164. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17165. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17166. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17167. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17168. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17169. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17170. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17171. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17172. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17173. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17174. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17175. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17176. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17177. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17178. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  17179. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17180. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17181. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17182. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17183. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17184. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17185. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17186. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17187. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17188. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17189. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17190. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17191. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17192. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17193. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17194. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17195. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17196. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17197. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  17198. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17199. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17200. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17201. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17202. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17203. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17204. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17205. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17206. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17207. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17208. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17209. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17210. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17211. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17212. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17213. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17214. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17215. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17216. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  17217. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17218. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17219. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17220. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17221. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17222. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17223. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17224. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17225. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17226. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17227. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17228. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17229. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17230. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17231. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17232. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17233. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17234. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17235. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  17236. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17237. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17238. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17239. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17240. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17241. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17242. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17243. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17244. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17245. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17246. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17247. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17248. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17249. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17250. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17251. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17252. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17253. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17254. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17255. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17256. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17257. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17258. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17259. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17260. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17261. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17262. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17263. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17264. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17265. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17266. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17267. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17268. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17269. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17270. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17271. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17272. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17273. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17274. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17275. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17276. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17277. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17278. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17279. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17280. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17281. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17282. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17283. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17284. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17285. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17286. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17287. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17288. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17289. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17290. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17291. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17292. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17293. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17294. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17295. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17296. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17297. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17298. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17299. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17300. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17301. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17302. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17303. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17304. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17305. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17306. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17307. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17308. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17309. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17310. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17311. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17312. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17313. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17314. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17315. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17316. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17317. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17318. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17319. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17320. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17321. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17322. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17323. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17324. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17325. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17326. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17327. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  17328. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17329. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17330. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17331. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17332. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17333. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17334. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17335. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17336. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17337. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17338. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17339. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17340. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17341. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17342. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17343. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17344. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17345. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17346. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17347. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17348. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17349. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17350. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17351. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17352. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17353. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17354. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17355. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17356. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17357. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17358. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17359. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17360. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17361. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17362. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17363. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17364. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17365. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17366. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17367. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17368. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17369. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17370. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17371. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17372. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17373. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17374. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17375. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17376. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17377. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17378. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17379. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17380. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17381. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17382. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17383. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17384. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17385. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17386. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17387. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17388. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17389. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17390. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17391. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17392. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17393. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17394. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17395. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17396. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17397. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17398. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17399. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17400. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17401. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17402. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17403. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17404. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17405. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17406. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17407. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17408. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17409. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17410. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17411. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17412. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17413. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17414. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17415. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17416. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17417. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17418. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17419. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17420. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17421. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17422. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17423. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17424. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17425. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17426. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17427. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17428. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17429. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17430. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17431. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17432. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17433. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17434. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17435. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17436. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17437. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17438. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17439. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17440. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17441. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17442. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17443. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17444. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17445. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17446. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17447. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17448. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17449. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17450. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17451. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17452. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17453. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17454. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17455. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17456. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17457. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17458. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17459. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17460. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17461. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17462. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17463. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17464. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17465. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17466. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17467. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17468. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17469. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17470. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17471. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17472. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17473. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17474. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17475. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17476. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17477. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17478. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17479. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17480. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17481. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17482. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17483. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17484. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17485. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17486. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17487. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17488. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17489. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17490. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17491. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17492. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17493. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17494. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17495. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17496. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17497. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17498. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17499. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17500. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17501. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17502. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17503. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17504. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17505. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17506. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17507. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17508. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17509. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17510. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17511. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17512. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17513. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17514. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17515. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17516. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17517. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17518. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17519. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17520. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17521. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17522. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17523. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17524. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17525. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17526. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17527. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17528. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17529. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17530. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17531. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17532. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17533. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17534. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17535. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17536. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17537. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17538. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17539. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17540. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17541. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17542. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17543. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17544. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17545. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17546. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17547. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17548. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17549. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17550. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17551. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17552. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17553. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17554. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17555. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17556. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17557. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17558. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17559. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17560. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17561. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17562. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17563. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17564. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17565. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17566. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17567. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17568. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17569. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17570. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17571. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17572. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17573. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17574. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17575. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17576. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17577. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17578. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17579. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17580. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17581. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17582. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17583. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17584. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17585. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17586. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17587. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17588. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17589. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17590. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17591. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17592. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17593. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17594. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17595. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17596. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17597. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17598. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17599. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17600. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17601. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17602. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17603. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17604. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17605. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17606. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17607. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17608. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17609. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17610. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17611. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17612. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17613. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17614. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17615. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17616. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17617. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17618. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17619. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17620. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17621. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17622. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17623. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17624. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17625. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17626. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17627. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17628. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17629. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17630. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17631. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17632. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17633. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17634. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17635. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17636. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17637. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17638. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17639. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17640. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17641. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17642. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17643. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17644. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17645. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17646. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17647. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17648. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17649. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17650. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17651. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17652. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17653. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17654. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17655. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17656. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17657. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17658. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17659. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17660. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17661. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17662. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17663. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17664. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17665. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17666. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17667. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17668. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17669. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17670. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17671. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17672. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17673. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17674. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17675. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17676. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17677. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17678. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17679. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17680. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17681. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17682. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17683. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17684. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17685. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17686. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17687. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17688. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17689. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17690. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17691. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17692. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17693. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17694. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17695. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17696. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17697. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17698. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17699. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17700. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17701. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17702. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17703. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17704. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17705. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17706. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17707. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17708. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17709. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17710. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17711. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17712. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17713. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17714. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17715. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17716. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17717. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17718. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17719. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17720. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17721. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17722. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17723. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17724. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17725. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17726. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17727. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17728. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17729. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17730. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17731. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17732. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17733. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17734. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17735. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17736. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17737. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17738. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17739. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17740. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17741. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17742. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17743. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17744. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17745. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17746. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17747. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17748. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17749. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17750. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17751. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17752. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17753. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17754. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17755. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17756. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17757. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17758. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17759. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17760. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17761. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17762. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17763. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17764. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17765. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17766. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17767. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17768. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17769. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17770. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17771. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17772. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17773. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17774. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17775. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17776. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17777. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17778. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17779. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17780. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17781. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17782. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17783. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17784. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17785. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17786. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17787. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17788. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17789. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17790. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17791. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17792. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17793. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17794. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17795. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17796. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17797. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17798. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17799. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17800. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17801. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17802. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17803. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17804. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17805. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17806. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17807. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  17808. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17809. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17810. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17811. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17812. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17813. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17814. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17815. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17816. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17817. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17818. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17819. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17820. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17821. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17822. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17823. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17824. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17825. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17826. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  17827. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17828. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17829. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17830. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17831. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17832. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17833. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17834. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17835. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17836. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17837. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17838. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17839. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17840. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17841. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17842. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17843. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17844. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  17845. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17846. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17847. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17848. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17849. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17850. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17851. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17852. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17853. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17854. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17855. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17856. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17857. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17858. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17859. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17860. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17861. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17862. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17863. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17864. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17865. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17866. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17867. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17868. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17869. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17870. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17871. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17872. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17873. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17874. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17875. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17876. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17877. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17878. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17879. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17880. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17881. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17882. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17883. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17884. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17885. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17886. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17887. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17888. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17889. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17890. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17891. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17892. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17893. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17894. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17895. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17896. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17897. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17898. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17899. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17900. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17901. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17902. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17903. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17904. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17905. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17906. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17907. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17908. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17909. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17910. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17911. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17912. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17913. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17914. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17915. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17916. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17917. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17918. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17919. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17920. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17921. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17922. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17923. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17924. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17925. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17926. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17927. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17928. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17929. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17930. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17931. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17932. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17933. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17934. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17935. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17936. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17937. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17938. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17939. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17940. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17941. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17942. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17943. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17944. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17945. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17946. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17947. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17948. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17949. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17950. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17951. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17952. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17953. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17954. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17955. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17956. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17957. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17958. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17959. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17960. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17961. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17962. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17963. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17964. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17965. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17966. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17967. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17968. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17969. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17970. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17971. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17972. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17973. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17974. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17975. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17976. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17977. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17978. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17979. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17980. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17981. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17982. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17983. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17984. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17985. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17986. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17987. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17988. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17989. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17990. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17991. {"HDMI", NULL, "HDMI_DL_HL"},
  17992. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17993. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17994. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17995. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17996. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17997. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17998. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17999. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18000. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18001. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18002. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18003. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  18004. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18005. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18006. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18007. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18008. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18009. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  18010. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18011. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18012. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18013. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18014. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18015. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  18016. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18017. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18018. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18019. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18020. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18021. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  18022. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18023. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18024. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18025. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18026. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  18027. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18028. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18029. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18030. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18031. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  18032. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18033. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  18034. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18035. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18036. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18037. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18038. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18039. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18040. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  18041. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  18042. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  18043. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18044. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18045. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18046. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18047. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18048. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18049. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  18050. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  18051. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  18052. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18053. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18054. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18055. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18056. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18057. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18058. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18059. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18060. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18061. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18062. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18063. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18064. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18065. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18066. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18067. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18068. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18069. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18070. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18071. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18072. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18073. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18074. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18075. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18076. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18077. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18078. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18079. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18080. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18081. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18082. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18083. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18084. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18085. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18086. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18087. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  18088. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  18089. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  18090. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18091. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18092. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18093. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18094. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18095. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18096. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18097. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18098. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18099. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18100. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18101. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18102. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18103. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18104. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18105. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18106. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18107. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18108. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18109. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18110. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18111. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18112. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18113. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18114. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18115. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18116. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18117. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18118. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18119. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18120. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18121. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18122. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18123. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  18124. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  18125. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  18126. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  18127. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  18128. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  18129. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  18130. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  18131. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  18132. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  18133. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  18134. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  18135. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  18136. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  18137. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  18138. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  18139. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  18140. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  18141. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  18142. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  18143. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  18144. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  18145. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  18146. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  18147. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  18148. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  18149. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  18150. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  18151. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  18152. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  18153. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  18154. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  18155. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  18156. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  18157. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  18158. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  18159. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  18160. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  18161. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  18162. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  18163. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  18164. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  18165. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  18166. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  18167. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  18168. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  18169. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  18170. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  18171. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  18172. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  18173. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  18174. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  18175. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  18176. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  18177. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  18178. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  18179. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  18180. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  18181. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  18182. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  18183. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  18184. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  18185. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  18186. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  18187. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  18188. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  18189. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  18190. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  18191. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  18192. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  18193. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  18194. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  18195. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  18196. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  18197. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  18198. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  18199. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  18200. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  18201. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  18202. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  18203. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  18204. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  18205. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  18206. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  18207. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  18208. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18209. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18210. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18211. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18212. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18213. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18214. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18215. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18216. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18217. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18218. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  18219. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18220. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18221. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18222. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18223. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18224. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18225. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18226. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18227. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18228. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18229. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  18230. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18231. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18232. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18233. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18234. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18235. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18236. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18237. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18238. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18239. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18240. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  18241. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18242. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18243. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18244. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18245. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18246. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18247. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18248. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18249. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18250. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18251. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  18252. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18253. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18254. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18255. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18256. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18257. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18258. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18259. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18260. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18261. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18262. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  18263. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18264. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18265. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18266. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18267. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18268. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18269. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18270. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18271. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  18272. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18273. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18274. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18275. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18276. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18277. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18278. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18279. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18280. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18281. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18282. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18283. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18284. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18285. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18286. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18287. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18288. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18289. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18290. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18291. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18292. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18293. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18294. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18295. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18296. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18297. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18298. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18299. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18300. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18301. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18302. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18303. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18304. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18305. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18306. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18307. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18308. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18309. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18310. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18311. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18312. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18313. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18314. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18315. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18316. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18317. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18318. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18319. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18320. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18321. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18322. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18323. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18324. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18325. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18326. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18327. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18328. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18329. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18330. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18331. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18332. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18333. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18334. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18335. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18336. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18337. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18338. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18339. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18340. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18341. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18342. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18343. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18344. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18345. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18346. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18347. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18348. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18349. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18350. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18351. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18352. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18353. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18354. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18355. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18356. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18357. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18358. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18359. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18360. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18361. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18362. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18363. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18364. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18365. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18366. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18367. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18368. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18369. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18370. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18371. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18372. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18373. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18374. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18375. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18376. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18377. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18378. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18379. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18380. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18381. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18382. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18383. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18384. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18385. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18386. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18387. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18388. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18389. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18390. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18391. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18392. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18393. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18394. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18395. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18396. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18397. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18398. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18399. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18400. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18401. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18402. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18403. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18404. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18405. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18406. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18407. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18408. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18409. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18410. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18411. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18412. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18413. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18414. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18415. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18416. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18417. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18418. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18419. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18420. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18421. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18422. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18423. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18424. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18425. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18426. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18427. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18428. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18429. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18430. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18431. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18432. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18433. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18434. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18435. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18436. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18437. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18438. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18439. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18440. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18441. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18442. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18443. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18444. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18445. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18446. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18447. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18448. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18449. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18450. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18451. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18452. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18453. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18454. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18455. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18456. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18457. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18458. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18459. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18460. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18461. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18462. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18463. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18464. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18465. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18466. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18467. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18468. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18469. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18470. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18471. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18472. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18473. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18474. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18475. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18476. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18477. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18478. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18479. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18480. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18481. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18482. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18483. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18484. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18485. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18486. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18487. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18488. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18489. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18490. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18491. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18492. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18493. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18494. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18495. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18496. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18497. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18498. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18499. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18500. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18501. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18502. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18503. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18504. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18505. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18506. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18507. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18508. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18509. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18510. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18511. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18512. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18513. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18514. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18515. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18516. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18517. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18518. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18519. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18520. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18521. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18522. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18523. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18524. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18525. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18526. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18527. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18528. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18529. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18530. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18531. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18532. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18533. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18534. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18535. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18536. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18537. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18538. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18539. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18540. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18541. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18542. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18543. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18544. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18545. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18546. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18547. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18548. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18549. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18550. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18551. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18552. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18553. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18554. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18555. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18556. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18557. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18558. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18559. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18560. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18561. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18562. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18563. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18564. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18565. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18566. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18567. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18568. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18569. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18570. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18571. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18572. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18573. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18574. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18575. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18576. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18577. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18578. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18579. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18580. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18581. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18582. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18583. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18584. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18585. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18586. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18587. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18588. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18589. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18590. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18591. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18592. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18593. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18594. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18595. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18596. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18597. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18598. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18599. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18600. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18601. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18602. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18603. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18604. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18605. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18606. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18607. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18608. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18609. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18610. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18611. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18612. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18613. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18614. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18615. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18616. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18617. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18618. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18619. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18620. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18621. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18622. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18623. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18624. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18625. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18626. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18627. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18628. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18629. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18630. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18631. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18632. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18633. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18634. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18635. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18636. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18637. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18638. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18639. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18640. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18641. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18642. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18643. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18644. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18645. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18646. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18647. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18648. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18649. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18650. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18651. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18652. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18653. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18654. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18655. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18656. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18657. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18658. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18659. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18660. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18661. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18662. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18663. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18664. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18665. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18666. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18667. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18668. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18669. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18670. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18671. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18672. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18673. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18674. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18675. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18676. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18677. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18678. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18679. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18680. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18681. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18682. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18683. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18684. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18685. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18686. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18687. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18688. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18689. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18690. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18691. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18692. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18693. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18694. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18695. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18696. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18697. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18698. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18699. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18700. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18701. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18702. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18703. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18704. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18705. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18706. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18707. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18708. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18709. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18710. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18711. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18712. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18713. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18714. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18715. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18716. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18717. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18718. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18719. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18720. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18721. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18722. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18723. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18724. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18725. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18726. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18727. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18728. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18729. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18730. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18731. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18732. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18733. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18734. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18735. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18736. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18737. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18738. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18739. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18740. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18741. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18742. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18743. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18744. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18745. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18746. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18747. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18748. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18749. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18750. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18751. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18752. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18753. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18754. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18755. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18756. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18757. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18758. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18759. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18760. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18761. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18762. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18763. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18764. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18765. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18766. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18767. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18768. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18769. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18770. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18771. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18772. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18773. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18774. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18775. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18776. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18777. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18778. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18779. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18780. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18781. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18782. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18783. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18784. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18785. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18786. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18787. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18788. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18789. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18790. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18791. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18792. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18793. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18794. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18795. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18796. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18797. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18798. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18799. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18800. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18801. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18802. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18803. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18804. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18805. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18806. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18807. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18808. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18809. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18810. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18811. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18812. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18813. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18814. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18815. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18816. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18817. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18818. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18819. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18820. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18821. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18822. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18823. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18824. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18825. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18826. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18827. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18828. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18829. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18830. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18831. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18832. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18833. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18834. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18835. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18836. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18837. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18838. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18839. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18840. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18841. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18842. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18843. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18844. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18845. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18846. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18847. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18848. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18849. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18850. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18851. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18852. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18853. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18854. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18855. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18856. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18857. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18858. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18859. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18860. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18861. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18862. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18863. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18864. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18865. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18866. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18867. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18868. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18869. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18870. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18871. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18872. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18873. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18874. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18875. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18876. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18877. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18878. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18879. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18880. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18881. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18882. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18883. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18884. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18885. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18886. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18887. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18888. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18889. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18890. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18891. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18892. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18893. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18894. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18895. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18896. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18897. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18898. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18899. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18900. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18901. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18902. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18903. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18904. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18905. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18906. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18907. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18908. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18909. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18910. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18911. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18912. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18913. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18914. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18915. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18916. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18917. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18918. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18919. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18920. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18921. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18922. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18923. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18924. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18925. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18926. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18927. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18928. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18929. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18930. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18931. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18932. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18933. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18934. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18935. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18936. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18937. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18938. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18939. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18940. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18941. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18942. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18943. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18944. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18945. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18946. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18947. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18948. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18949. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18950. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18951. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18952. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18953. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18954. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18955. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18956. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18957. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18958. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18959. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18960. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18961. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18962. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18963. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18964. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18965. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18966. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18967. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18968. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18969. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18970. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18971. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18972. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18973. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18974. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18975. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18976. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18977. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18978. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18979. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18980. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18981. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18982. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18983. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18984. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18985. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18986. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18987. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18988. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18989. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18990. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18991. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18992. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18993. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18994. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18995. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18996. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18997. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18998. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18999. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19000. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19001. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19002. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19003. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19004. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19005. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19006. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19007. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19008. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  19009. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19010. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19011. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19012. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19013. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19014. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19015. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19016. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  19017. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19018. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19019. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19020. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19021. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19022. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19023. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19024. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19025. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19026. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  19027. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19028. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19029. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19030. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19031. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19032. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19033. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19034. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  19035. /* Backend Enablement */
  19036. {"BE_OUT", NULL, "PRI_I2S_RX"},
  19037. {"BE_OUT", NULL, "SEC_I2S_RX"},
  19038. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  19039. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  19040. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  19041. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19042. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  19043. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  19044. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  19045. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  19046. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  19047. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  19048. {"BE_OUT", NULL, "HDMI"},
  19049. {"BE_OUT", NULL, "DISPLAY_PORT"},
  19050. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  19051. {"BE_OUT", NULL, "SPDIF_RX"},
  19052. {"BE_OUT", NULL, "MI2S_RX"},
  19053. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  19054. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  19055. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  19056. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  19057. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  19058. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  19059. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  19060. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  19061. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  19062. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  19063. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  19064. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  19065. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  19066. {"BE_OUT", NULL, "INT_FM_RX"},
  19067. {"BE_OUT", NULL, "PCM_RX"},
  19068. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19069. {"BE_OUT", NULL, "AUX_PCM_RX"},
  19070. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  19071. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  19072. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  19073. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  19074. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  19075. {"BE_OUT", NULL, "INT_FM_RX"},
  19076. {"BE_OUT", NULL, "PCM_RX"},
  19077. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19078. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  19079. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  19080. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  19081. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  19082. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  19083. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  19084. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  19085. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  19086. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  19087. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  19088. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  19089. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  19090. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  19091. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  19092. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  19093. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  19094. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  19095. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  19096. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  19097. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  19098. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  19099. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  19100. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  19101. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  19102. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  19103. {"PRI_I2S_TX", NULL, "BE_IN"},
  19104. {"MI2S_TX", NULL, "BE_IN"},
  19105. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  19106. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  19107. {"PRI_MI2S_TX", NULL, "BE_IN"},
  19108. {"TERT_MI2S_TX", NULL, "BE_IN"},
  19109. {"INT0_MI2S_TX", NULL, "BE_IN"},
  19110. {"INT2_MI2S_TX", NULL, "BE_IN"},
  19111. {"INT3_MI2S_TX", NULL, "BE_IN"},
  19112. {"INT4_MI2S_TX", NULL, "BE_IN"},
  19113. {"INT5_MI2S_TX", NULL, "BE_IN"},
  19114. {"SEC_MI2S_TX", NULL, "BE_IN"},
  19115. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  19116. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  19117. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  19118. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  19119. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  19120. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  19121. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  19122. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  19123. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  19124. {"USB_AUDIO_TX", NULL, "BE_IN" },
  19125. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  19126. {"INT_FM_TX", NULL, "BE_IN"},
  19127. {"PCM_TX", NULL, "BE_IN"},
  19128. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  19129. {"BE_OUT", NULL, "STUB_RX"},
  19130. {"STUB_TX", NULL, "BE_IN"},
  19131. {"STUB_1_TX", NULL, "BE_IN"},
  19132. {"BE_OUT", NULL, "AUX_PCM_RX"},
  19133. {"AUX_PCM_TX", NULL, "BE_IN"},
  19134. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  19135. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  19136. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  19137. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  19138. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  19139. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  19140. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  19141. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  19142. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19143. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19144. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  19145. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  19146. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  19147. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  19148. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  19149. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  19150. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  19151. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  19152. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  19153. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  19154. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  19155. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  19156. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  19157. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  19158. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  19159. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  19160. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  19161. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  19162. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  19163. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  19164. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  19165. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  19166. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  19167. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  19168. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  19169. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  19170. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  19171. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  19172. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  19173. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  19174. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  19175. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  19176. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  19177. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  19178. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  19179. };
  19180. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  19181. struct snd_pcm_hw_params *params)
  19182. {
  19183. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19184. unsigned int be_id = rtd->dai_link->id;
  19185. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19186. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19187. return -EINVAL;
  19188. }
  19189. mutex_lock(&routing_lock);
  19190. msm_bedais[be_id].sample_rate = params_rate(params);
  19191. msm_bedais[be_id].channel = params_channels(params);
  19192. msm_bedais[be_id].format = params_format(params);
  19193. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  19194. __func__, msm_bedais[be_id].sample_rate,
  19195. msm_bedais[be_id].format, be_id);
  19196. mutex_unlock(&routing_lock);
  19197. return 0;
  19198. }
  19199. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  19200. {
  19201. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19202. unsigned int be_id = rtd->dai_link->id;
  19203. int i, session_type, path_type, topology;
  19204. struct msm_pcm_routing_bdai_data *bedai;
  19205. struct msm_pcm_routing_fdai_data *fdai;
  19206. pr_debug("%s: substream->pcm->id:%s\n",
  19207. __func__, substream->pcm->id);
  19208. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19209. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19210. return -EINVAL;
  19211. }
  19212. bedai = &msm_bedais[be_id];
  19213. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  19214. 0 : 1);
  19215. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19216. path_type = ADM_PATH_PLAYBACK;
  19217. else
  19218. path_type = ADM_PATH_LIVE_REC;
  19219. mutex_lock(&routing_lock);
  19220. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19221. if (!is_mm_lsm_fe_id(i))
  19222. continue;
  19223. fdai = &fe_dai_map[i][session_type];
  19224. if (fdai->strm_id != INVALID_SESSION) {
  19225. int idx;
  19226. int port_id;
  19227. unsigned long copp =
  19228. session_copp_map[i][session_type][be_id];
  19229. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  19230. if (test_bit(idx, &copp))
  19231. break;
  19232. fdai->be_srate = bedai->sample_rate;
  19233. port_id = bedai->port_id;
  19234. topology = adm_get_topology_for_port_copp_idx(port_id,
  19235. idx);
  19236. msm_routing_unload_topology(topology);
  19237. adm_close(bedai->port_id, fdai->perf_mode, idx);
  19238. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  19239. __func__, copp, i, session_type, be_id,
  19240. topology);
  19241. clear_bit(idx,
  19242. &session_copp_map[i][session_type][be_id]);
  19243. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19244. (bedai->passthr_mode[i] == LEGACY_PCM))
  19245. msm_pcm_routing_deinit_pp(bedai->port_id,
  19246. topology);
  19247. }
  19248. }
  19249. bedai->active = 0;
  19250. bedai->sample_rate = 0;
  19251. bedai->channel = 0;
  19252. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  19253. if (bedai->passthr_mode[i] != LISTEN)
  19254. bedai->passthr_mode[i] = LEGACY_PCM;
  19255. }
  19256. mutex_unlock(&routing_lock);
  19257. return 0;
  19258. }
  19259. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  19260. {
  19261. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19262. unsigned int be_id = rtd->dai_link->id;
  19263. int i, path_type, topology;
  19264. int session_type = INVALID_SESSION;
  19265. struct msm_pcm_routing_bdai_data *bedai;
  19266. u32 channels, sample_rate;
  19267. uint16_t bits_per_sample = 16, voc_path_type;
  19268. struct msm_pcm_routing_fdai_data *fdai;
  19269. u32 session_id;
  19270. struct media_format_info voc_be_media_format;
  19271. bool is_lsm;
  19272. pr_debug("%s: substream->pcm->id:%s\n",
  19273. __func__, substream->pcm->id);
  19274. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19275. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19276. return -EINVAL;
  19277. }
  19278. bedai = &msm_bedais[be_id];
  19279. mutex_lock(&routing_lock);
  19280. if (bedai->active == 1)
  19281. goto done; /* Ignore prepare if back-end already active */
  19282. /* AFE port is not active at this point. However, still
  19283. * go ahead setting active flag under the notion that
  19284. * QDSP6 is able to handle ADM starting before AFE port
  19285. * is started.
  19286. */
  19287. bedai->active = 1;
  19288. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19289. if (!(is_mm_lsm_fe_id(i) &&
  19290. route_check_fe_id_adm_support(i)))
  19291. continue;
  19292. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19293. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19294. path_type = ADM_PATH_COMPRESSED_RX;
  19295. else
  19296. path_type = ADM_PATH_PLAYBACK;
  19297. session_type = SESSION_TYPE_RX;
  19298. } else {
  19299. path_type = ADM_PATH_LIVE_REC;
  19300. session_type = SESSION_TYPE_TX;
  19301. }
  19302. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19303. (i <= MSM_FRONTEND_DAI_LSM8);
  19304. fdai = &fe_dai_map[i][session_type];
  19305. if (fdai->strm_id != INVALID_SESSION) {
  19306. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19307. if (session_type == SESSION_TYPE_TX &&
  19308. fdai->be_srate &&
  19309. (fdai->be_srate != bedai->sample_rate)) {
  19310. pr_debug("%s: flush strm %d diff BE rates\n",
  19311. __func__,
  19312. fdai->strm_id);
  19313. if (fdai->event_info.event_func)
  19314. fdai->event_info.event_func(
  19315. MSM_PCM_RT_EVT_BUF_RECFG,
  19316. fdai->event_info.priv_data);
  19317. fdai->be_srate = 0; /* might not need it */
  19318. }
  19319. bits_per_sample = msm_routing_get_bit_width(
  19320. bedai->format);
  19321. app_type =
  19322. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19323. if (app_type && is_lsm) {
  19324. app_type_idx =
  19325. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19326. sample_rate =
  19327. fe_dai_app_type_cfg[i][session_type][be_id]
  19328. .sample_rate;
  19329. bits_per_sample =
  19330. lsm_app_type_cfg[app_type_idx].bit_width;
  19331. } else if (app_type) {
  19332. app_type_idx =
  19333. msm_pcm_routing_get_app_type_idx(app_type);
  19334. sample_rate =
  19335. fe_dai_app_type_cfg[i][session_type]
  19336. [be_id].sample_rate;
  19337. bits_per_sample =
  19338. app_type_cfg[app_type_idx].bit_width;
  19339. } else
  19340. sample_rate = bedai->sample_rate;
  19341. /*
  19342. * check if ADM needs to be configured with different
  19343. * channel mapping than backend
  19344. */
  19345. if (!bedai->adm_override_ch)
  19346. channels = bedai->channel;
  19347. else
  19348. channels = bedai->adm_override_ch;
  19349. acdb_dev_id =
  19350. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19351. topology = msm_routing_get_adm_topology(i, session_type,
  19352. be_id);
  19353. copp_idx = adm_open(bedai->port_id, path_type,
  19354. sample_rate, channels, topology,
  19355. fdai->perf_mode, bits_per_sample,
  19356. app_type, acdb_dev_id);
  19357. if ((copp_idx < 0) ||
  19358. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19359. pr_err("%s: adm open failed\n", __func__);
  19360. mutex_unlock(&routing_lock);
  19361. return -EINVAL;
  19362. }
  19363. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19364. __func__, i, session_type, be_id);
  19365. set_bit(copp_idx,
  19366. &session_copp_map[i][session_type][be_id]);
  19367. if (msm_is_resample_needed(
  19368. sample_rate,
  19369. bedai->sample_rate))
  19370. adm_copp_mfc_cfg(
  19371. bedai->port_id, copp_idx,
  19372. bedai->sample_rate);
  19373. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19374. fdai->perf_mode,
  19375. bedai->passthr_mode[i]);
  19376. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19377. (bedai->passthr_mode[i] == LEGACY_PCM))
  19378. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19379. topology, channels);
  19380. }
  19381. }
  19382. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19383. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19384. if (session_id) {
  19385. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19386. session_id);
  19387. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19388. voc_path_type = RX_PATH;
  19389. else
  19390. voc_path_type = TX_PATH;
  19391. voc_set_route_flag(session_id, voc_path_type, 1);
  19392. memset(&voc_be_media_format, 0,
  19393. sizeof(struct media_format_info));
  19394. voc_be_media_format.port_id = bedai->port_id;
  19395. voc_be_media_format.num_channels = bedai->channel;
  19396. voc_be_media_format.sample_rate = bedai->sample_rate;
  19397. voc_be_media_format.bits_per_sample = bedai->format;
  19398. /* Defaulting this to 1 for voice call usecases */
  19399. voc_be_media_format.channel_mapping[0] = 1;
  19400. voc_set_device_config(session_id, voc_path_type,
  19401. &voc_be_media_format);
  19402. if (voc_get_route_flag(session_id, RX_PATH) &&
  19403. voc_get_route_flag(session_id, TX_PATH))
  19404. voc_enable_device(session_id);
  19405. }
  19406. }
  19407. /* Check if backend is an external ec ref port and set as needed */
  19408. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19409. memset(&voc_be_media_format, 0,
  19410. sizeof(struct media_format_info));
  19411. /* Get format info for ec ref port from msm_bedais[] */
  19412. voc_be_media_format.port_id = bedai->port_id;
  19413. voc_be_media_format.num_channels = bedai->channel;
  19414. voc_be_media_format.bits_per_sample = bedai->format;
  19415. voc_be_media_format.sample_rate = bedai->sample_rate;
  19416. /* Defaulting this to 1 for voice call usecases */
  19417. voc_be_media_format.channel_mapping[0] = 1;
  19418. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19419. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19420. __func__, voc_be_media_format.port_id,
  19421. voc_be_media_format.num_channels,
  19422. voc_be_media_format.bits_per_sample,
  19423. voc_be_media_format.sample_rate);
  19424. }
  19425. done:
  19426. mutex_unlock(&routing_lock);
  19427. return 0;
  19428. }
  19429. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19430. int fe_id)
  19431. {
  19432. int index, topo_id, be_idx;
  19433. unsigned long pp_config = 0;
  19434. bool mute_on;
  19435. int latency;
  19436. bool compr_passthr_mode = true;
  19437. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19438. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19439. pr_err("%s: Device pp params on invalid port %d\n",
  19440. __func__, port_id);
  19441. return -EINVAL;
  19442. }
  19443. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19444. if (port_id == msm_bedais[be_idx].port_id)
  19445. break;
  19446. }
  19447. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19448. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19449. return -EINVAL;
  19450. }
  19451. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19452. if (msm_bedais_pp_params[index].port_id == port_id)
  19453. break;
  19454. }
  19455. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19456. pr_err("%s: Invalid backend pp params index %d\n",
  19457. __func__, index);
  19458. return -EINVAL;
  19459. }
  19460. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19461. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19462. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19463. __func__, topo_id);
  19464. return -EINVAL;
  19465. }
  19466. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19467. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19468. compr_passthr_mode = false;
  19469. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19470. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19471. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19472. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19473. mute_on = msm_bedais_pp_params[index].mute_on;
  19474. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19475. adm_send_compressed_device_mute(port_id,
  19476. copp_idx,
  19477. mute_on);
  19478. }
  19479. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19480. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19481. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19482. &pp_config);
  19483. latency = msm_bedais_pp_params[index].latency;
  19484. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19485. adm_send_compressed_device_latency(port_id,
  19486. copp_idx,
  19487. latency);
  19488. }
  19489. return 0;
  19490. }
  19491. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19492. {
  19493. uint32_t topology = NULL_COPP_TOPOLOGY;
  19494. void *cal_info = NULL;
  19495. uint32_t size = 0;
  19496. /* Retrieve cal_info size from cal data*/
  19497. size = data_size - sizeof(struct audio_cal_type_basic);
  19498. cal_info = kzalloc(size, GFP_KERNEL);
  19499. if (!cal_info)
  19500. goto done;
  19501. memcpy(cal_info,
  19502. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19503. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19504. kfree(cal_info);
  19505. cal_info = NULL;
  19506. done:
  19507. pr_debug("%s: Using topology %d\n", __func__, topology);
  19508. return topology;
  19509. }
  19510. static void msm_routing_load_topology(size_t data_size, void *data)
  19511. {
  19512. uint32_t topology_id;
  19513. int ret = -EINVAL;
  19514. topology_id = msm_routing_get_topology(data_size, data);
  19515. if (topology_id != NULL_COPP_TOPOLOGY)
  19516. ret = q6core_load_unload_topo_modules(topology_id,
  19517. CORE_LOAD_TOPOLOGY);
  19518. if (ret < 0)
  19519. pr_debug("%s %d load topology failed\n",
  19520. __func__, topology_id);
  19521. }
  19522. static void msm_routing_unload_topology(uint32_t topology_id)
  19523. {
  19524. int ret = -EINVAL;
  19525. if (topology_id != NULL_COPP_TOPOLOGY)
  19526. ret = q6core_load_unload_topo_modules(topology_id,
  19527. CORE_UNLOAD_TOPOLOGY);
  19528. if (ret < 0)
  19529. pr_debug("%s %d unload topology failed\n",
  19530. __func__, topology_id);
  19531. }
  19532. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19533. struct snd_ctl_elem_value *ucontrol)
  19534. {
  19535. int pp_id = ucontrol->value.integer.value[0];
  19536. int port_id = 0;
  19537. int index, be_idx, i, topo_id, idx;
  19538. bool mute;
  19539. int latency;
  19540. bool compr_passthr_mode = true;
  19541. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19542. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19543. port_id = msm_bedais[be_idx].port_id;
  19544. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19545. break;
  19546. }
  19547. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19548. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19549. return -EINVAL;
  19550. }
  19551. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19552. if (msm_bedais_pp_params[index].port_id == port_id)
  19553. break;
  19554. }
  19555. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19556. pr_err("%s: Invalid pp params backend index %d\n",
  19557. __func__, index);
  19558. return -EINVAL;
  19559. }
  19560. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19561. MSM_FRONTEND_DAI_MM_SIZE) {
  19562. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19563. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19564. compr_passthr_mode = false;
  19565. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19566. unsigned long copp =
  19567. session_copp_map[i]
  19568. [SESSION_TYPE_RX][be_idx];
  19569. if (!test_bit(idx, &copp))
  19570. continue;
  19571. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19572. idx);
  19573. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19574. continue;
  19575. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19576. __func__, port_id, copp, msm_bedais[be_idx].active,
  19577. msm_bedais[be_idx].passthr_mode[i]);
  19578. switch (pp_id) {
  19579. case ADM_PP_PARAM_MUTE_ID:
  19580. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19581. mute = ucontrol->value.integer.value[1] ? true : false;
  19582. msm_bedais_pp_params[index].mute_on = mute;
  19583. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19584. &msm_bedais_pp_params[index].pp_params_config);
  19585. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19586. adm_send_compressed_device_mute(port_id,
  19587. idx, mute);
  19588. break;
  19589. case ADM_PP_PARAM_LATENCY_ID:
  19590. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19591. msm_bedais_pp_params[index].latency =
  19592. ucontrol->value.integer.value[1];
  19593. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19594. &msm_bedais_pp_params[index].pp_params_config);
  19595. latency = msm_bedais_pp_params[index].latency =
  19596. ucontrol->value.integer.value[1];
  19597. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19598. adm_send_compressed_device_latency(port_id,
  19599. idx, latency);
  19600. break;
  19601. default:
  19602. pr_info("%s, device pp param %d not supported\n",
  19603. __func__, pp_id);
  19604. break;
  19605. }
  19606. }
  19607. }
  19608. return 0;
  19609. }
  19610. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19611. struct snd_ctl_elem_value *ucontrol)
  19612. {
  19613. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19614. return 0;
  19615. }
  19616. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19617. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19618. 0, 3, msm_routing_get_device_pp_params_mixer,
  19619. msm_routing_put_device_pp_params_mixer),
  19620. };
  19621. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19622. struct snd_ctl_elem_value *ucontrol)
  19623. {
  19624. ucontrol->value.integer.value[0] =
  19625. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19626. pr_debug("%s: status %ld\n", __func__,
  19627. ucontrol->value.integer.value[0]);
  19628. return 0;
  19629. }
  19630. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19631. struct snd_ctl_elem_value *ucontrol)
  19632. {
  19633. int32_t status = 0;
  19634. status = core_set_license(ucontrol->value.integer.value[0],
  19635. APTX_CLASSIC_DEC_LICENSE_ID);
  19636. pr_debug("%s: status %d\n", __func__, status);
  19637. return status;
  19638. }
  19639. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19640. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19641. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19642. msm_aptx_dec_license_control_put),
  19643. };
  19644. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19645. struct snd_ctl_elem_info *uinfo)
  19646. {
  19647. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19648. uinfo->count = sizeof(be_dai_name_table);
  19649. return 0;
  19650. }
  19651. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19652. unsigned int __user *bytes,
  19653. unsigned int size)
  19654. {
  19655. int i;
  19656. int ret = 0;
  19657. if (size < sizeof(be_dai_name_table)) {
  19658. pr_err("%s: invalid size %d requested, returning\n",
  19659. __func__, size);
  19660. ret = -EINVAL;
  19661. goto done;
  19662. }
  19663. /*
  19664. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19665. * needed when adding new backends
  19666. */
  19667. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19668. be_dai_name_table[i].be_id = i;
  19669. strlcpy(be_dai_name_table[i].be_name,
  19670. msm_bedais[i].name,
  19671. LPASS_BE_NAME_MAX_LENGTH);
  19672. }
  19673. ret = copy_to_user(bytes, &be_dai_name_table,
  19674. sizeof(be_dai_name_table));
  19675. if (ret) {
  19676. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19677. ret = -EFAULT;
  19678. }
  19679. done:
  19680. return ret;
  19681. }
  19682. static const struct snd_kcontrol_new
  19683. msm_routing_be_dai_name_table_mixer_controls[] = {
  19684. {
  19685. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19686. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19687. .info = msm_routing_be_dai_name_table_info,
  19688. .name = "Backend DAI Name Table",
  19689. .tlv.c = snd_soc_bytes_tlv_callback,
  19690. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19691. .max = sizeof(be_dai_name_table),
  19692. .get = msm_routing_be_dai_name_table_tlv_get,
  19693. }
  19694. },
  19695. };
  19696. static int msm_routing_stereo_channel_reverse_control_get(
  19697. struct snd_kcontrol *kcontrol,
  19698. struct snd_ctl_elem_value *ucontrol)
  19699. {
  19700. ucontrol->value.integer.value[0] = swap_ch;
  19701. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19702. ucontrol->value.integer.value[0]);
  19703. return 0;
  19704. }
  19705. static int msm_routing_stereo_channel_reverse_control_put(
  19706. struct snd_kcontrol *kcontrol,
  19707. struct snd_ctl_elem_value *ucontrol)
  19708. {
  19709. int i, idx, be_index, port_id;
  19710. int ret = 0;
  19711. unsigned long copp;
  19712. pr_debug("%s Swap channel value:%ld\n", __func__,
  19713. ucontrol->value.integer.value[0]);
  19714. swap_ch = ucontrol->value.integer.value[0];
  19715. mutex_lock(&routing_lock);
  19716. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19717. port_id = msm_bedais[be_index].port_id;
  19718. if (!msm_bedais[be_index].active)
  19719. continue;
  19720. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19721. MSM_FRONTEND_DAI_MM_SIZE) {
  19722. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19723. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19724. if (!test_bit(idx, &copp))
  19725. continue;
  19726. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19727. __func__, port_id, idx);
  19728. ret = adm_swap_speaker_channels(
  19729. port_id, idx,
  19730. msm_bedais[be_index].sample_rate,
  19731. swap_ch);
  19732. if (ret) {
  19733. pr_err("%s:Swap_channel failed, err=%d\n",
  19734. __func__, ret);
  19735. goto done;
  19736. }
  19737. }
  19738. }
  19739. }
  19740. done:
  19741. mutex_unlock(&routing_lock);
  19742. return ret;
  19743. }
  19744. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19745. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19746. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19747. msm_routing_stereo_channel_reverse_control_put),
  19748. };
  19749. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19750. struct snd_ctl_elem_info *uinfo)
  19751. {
  19752. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19753. uinfo->count = 1;
  19754. return 0;
  19755. }
  19756. static int msm_routing_instance_id_support_put(
  19757. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19758. {
  19759. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19760. q6common_update_instance_id_support(supported);
  19761. return 0;
  19762. }
  19763. static int msm_routing_instance_id_support_get(
  19764. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19765. {
  19766. bool supported = false;
  19767. supported = q6common_is_instance_id_supported();
  19768. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19769. return 0;
  19770. }
  19771. static const struct snd_kcontrol_new
  19772. msm_routing_feature_support_mixer_controls[] = {
  19773. {
  19774. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19775. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19776. .info = msm_routing_instance_id_support_info,
  19777. .name = "Instance ID Support",
  19778. .put = msm_routing_instance_id_support_put,
  19779. .get = msm_routing_instance_id_support_get,
  19780. },
  19781. };
  19782. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19783. .hw_params = msm_pcm_routing_hw_params,
  19784. .close = msm_pcm_routing_close,
  19785. .prepare = msm_pcm_routing_prepare,
  19786. };
  19787. /* Not used but frame seems to require it */
  19788. static int msm_routing_probe(struct snd_soc_platform *platform)
  19789. {
  19790. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19791. ARRAY_SIZE(msm_qdsp6_widgets));
  19792. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19793. ARRAY_SIZE(intercon));
  19794. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19795. snd_soc_add_platform_controls(platform, lsm_controls,
  19796. ARRAY_SIZE(lsm_controls));
  19797. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19798. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19799. snd_soc_add_platform_controls(platform, aanc_noise_level,
  19800. ARRAY_SIZE(aanc_noise_level));
  19801. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19802. ARRAY_SIZE(msm_voc_session_controls));
  19803. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19804. ARRAY_SIZE(app_type_cfg_controls));
  19805. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19806. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19807. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19808. ARRAY_SIZE(module_cfg_controls));
  19809. snd_soc_add_platform_controls(platform,
  19810. stereo_to_custom_stereo_controls,
  19811. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19812. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19813. ARRAY_SIZE(ec_ref_param_controls));
  19814. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19815. ARRAY_SIZE(channel_mixer_controls));
  19816. msm_qti_pp_add_controls(platform);
  19817. msm_dts_srs_tm_add_controls(platform);
  19818. msm_dolby_dap_add_controls(platform);
  19819. snd_soc_add_platform_controls(platform,
  19820. use_ds1_or_ds2_controls,
  19821. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19822. snd_soc_add_platform_controls(platform,
  19823. device_pp_params_mixer_controls,
  19824. ARRAY_SIZE(device_pp_params_mixer_controls));
  19825. snd_soc_add_platform_controls(platform,
  19826. msm_routing_be_dai_name_table_mixer_controls,
  19827. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19828. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19829. ARRAY_SIZE(msm_source_tracking_controls));
  19830. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19831. ARRAY_SIZE(adm_channel_config_controls));
  19832. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19833. ARRAY_SIZE(aptx_dec_license_controls));
  19834. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19835. ARRAY_SIZE(stereo_channel_reverse_control));
  19836. snd_soc_add_platform_controls(
  19837. platform, msm_routing_feature_support_mixer_controls,
  19838. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19839. return 0;
  19840. }
  19841. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19842. {
  19843. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19844. }
  19845. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19846. {
  19847. msm_pcm_routing_hwdep_free(pcm);
  19848. }
  19849. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19850. .ops = &msm_routing_pcm_ops,
  19851. .probe = msm_routing_probe,
  19852. .pcm_new = msm_routing_pcm_new,
  19853. .pcm_free = msm_routing_pcm_free,
  19854. };
  19855. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19856. {
  19857. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19858. return snd_soc_register_platform(&pdev->dev,
  19859. &msm_soc_routing_platform);
  19860. }
  19861. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19862. {
  19863. snd_soc_unregister_platform(&pdev->dev);
  19864. return 0;
  19865. }
  19866. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19867. {.compatible = "qcom,msm-pcm-routing"},
  19868. {}
  19869. };
  19870. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19871. static struct platform_driver msm_routing_pcm_driver = {
  19872. .driver = {
  19873. .name = "msm-pcm-routing",
  19874. .owner = THIS_MODULE,
  19875. .of_match_table = msm_pcm_routing_dt_match,
  19876. },
  19877. .probe = msm_routing_pcm_probe,
  19878. .remove = msm_routing_pcm_remove,
  19879. };
  19880. int msm_routing_check_backend_enabled(int fedai_id)
  19881. {
  19882. int i;
  19883. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19884. /* bad ID assigned in machine driver */
  19885. pr_err("%s: bad MM ID\n", __func__);
  19886. return 0;
  19887. }
  19888. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19889. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19890. return msm_bedais[i].active;
  19891. }
  19892. return 0;
  19893. }
  19894. static int get_cal_type_index(int32_t cal_type)
  19895. {
  19896. int ret = -EINVAL;
  19897. switch (cal_type) {
  19898. case ADM_TOPOLOGY_CAL_TYPE:
  19899. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19900. break;
  19901. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19902. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19903. break;
  19904. default:
  19905. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19906. }
  19907. return ret;
  19908. }
  19909. static int msm_routing_set_cal(int32_t cal_type,
  19910. size_t data_size, void *data)
  19911. {
  19912. int ret = 0;
  19913. int cal_index;
  19914. pr_debug("%s\n", __func__);
  19915. cal_index = get_cal_type_index(cal_type);
  19916. if (cal_index < 0) {
  19917. pr_err("%s: Could not get cal index %d\n",
  19918. __func__, cal_index);
  19919. ret = -EINVAL;
  19920. goto done;
  19921. }
  19922. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19923. if (ret < 0) {
  19924. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19925. __func__, ret, cal_type);
  19926. ret = -EINVAL;
  19927. goto done;
  19928. }
  19929. /* Pre-load if it is ADM topology */
  19930. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19931. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19932. msm_routing_load_topology(data_size, data);
  19933. }
  19934. done:
  19935. return ret;
  19936. }
  19937. static void msm_routing_delete_cal_data(void)
  19938. {
  19939. pr_debug("%s\n", __func__);
  19940. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19941. }
  19942. static int msm_routing_init_cal_data(void)
  19943. {
  19944. int ret = 0;
  19945. struct cal_type_info cal_type_info[] = {
  19946. {{ADM_TOPOLOGY_CAL_TYPE,
  19947. {NULL, NULL, NULL,
  19948. msm_routing_set_cal, NULL, NULL} },
  19949. {NULL, NULL, cal_utils_match_buf_num} },
  19950. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19951. {NULL, NULL, NULL,
  19952. msm_routing_set_cal, NULL, NULL} },
  19953. {NULL, NULL, cal_utils_match_buf_num} },
  19954. };
  19955. pr_debug("%s\n", __func__);
  19956. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19957. &cal_type_info[0]);
  19958. if (ret < 0) {
  19959. pr_err("%s: could not create cal type!\n",
  19960. __func__);
  19961. ret = -EINVAL;
  19962. goto err;
  19963. }
  19964. return ret;
  19965. err:
  19966. msm_routing_delete_cal_data();
  19967. return ret;
  19968. }
  19969. int __init msm_soc_routing_platform_init(void)
  19970. {
  19971. mutex_init(&routing_lock);
  19972. if (msm_routing_init_cal_data())
  19973. pr_err("%s: could not init cal data!\n", __func__);
  19974. afe_set_routing_callback(
  19975. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19976. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19977. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19978. return platform_driver_register(&msm_routing_pcm_driver);
  19979. }
  19980. void msm_soc_routing_platform_exit(void)
  19981. {
  19982. msm_routing_delete_cal_data();
  19983. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19984. mutex_destroy(&routing_lock);
  19985. platform_driver_unregister(&msm_routing_pcm_driver);
  19986. }
  19987. MODULE_DESCRIPTION("MSM routing platform driver");
  19988. MODULE_LICENSE("GPL v2");