msm-pcm-routing-v2.c 810 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734
  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. #define WEIGHT_0_DB 0x4000
  80. /* all the FEs which can support channel mixer */
  81. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  103. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  104. #define LSM_FUNCTION_TEXT "LSM Function"
  105. static const char * const lsm_port_text[] = {
  106. "None",
  107. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  108. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  109. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  110. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  111. };
  112. struct msm_pcm_route_bdai_pp_params {
  113. u16 port_id; /* AFE port ID */
  114. unsigned long pp_params_config;
  115. bool mute_on;
  116. int latency;
  117. };
  118. static struct msm_pcm_route_bdai_pp_params
  119. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  120. {HDMI_RX, 0, 0, 0},
  121. {DISPLAY_PORT_RX, 0, 0, 0},
  122. };
  123. /*
  124. * The be_dai_name_table is passed to HAL so that it can specify the
  125. * BE ID for the BE it wants to enable based on the name. Thus there
  126. * is a matching table and structure in HAL that need to be updated
  127. * if any changes to these are made.
  128. */
  129. struct msm_pcm_route_bdai_name {
  130. unsigned int be_id;
  131. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  132. };
  133. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  134. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  135. int fe_id);
  136. static int msm_routing_get_bit_width(unsigned int format)
  137. {
  138. int bit_width;
  139. switch (format) {
  140. case SNDRV_PCM_FORMAT_S32_LE:
  141. bit_width = 32;
  142. break;
  143. case SNDRV_PCM_FORMAT_S24_LE:
  144. case SNDRV_PCM_FORMAT_S24_3LE:
  145. bit_width = 24;
  146. break;
  147. case SNDRV_PCM_FORMAT_S16_LE:
  148. default:
  149. bit_width = 16;
  150. }
  151. return bit_width;
  152. }
  153. static bool msm_is_resample_needed(int input_sr, int output_sr)
  154. {
  155. bool rc = false;
  156. if (input_sr != output_sr)
  157. rc = true;
  158. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  159. (rc ? "oh yes" : "not really"),
  160. input_sr, output_sr);
  161. return rc;
  162. }
  163. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  164. int channels)
  165. {
  166. int rc = 0;
  167. switch (topology) {
  168. case SRS_TRUMEDIA_TOPOLOGY_ID:
  169. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  170. msm_dts_srs_tm_init(port_id, copp_idx);
  171. break;
  172. case DS2_ADM_COPP_TOPOLOGY_ID:
  173. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  174. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  175. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  176. is_custom_stereo_on);
  177. if (rc < 0)
  178. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  179. __func__, topology, port_id,
  180. is_custom_stereo_on, rc);
  181. break;
  182. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  183. if (is_ds2_on) {
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  189. __func__, topology, port_id, rc);
  190. } else {
  191. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  192. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. }
  198. break;
  199. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  200. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  201. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  202. if (rc < 0)
  203. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  204. __func__, topology, port_id, copp_idx, rc);
  205. break;
  206. default:
  207. /* custom topology specific feature param handlers */
  208. break;
  209. }
  210. }
  211. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  212. {
  213. switch (topology) {
  214. case SRS_TRUMEDIA_TOPOLOGY_ID:
  215. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  216. msm_dts_srs_tm_deinit(port_id);
  217. break;
  218. case DS2_ADM_COPP_TOPOLOGY_ID:
  219. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  220. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  221. msm_ds2_dap_deinit(port_id);
  222. break;
  223. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  224. if (is_ds2_on) {
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  226. msm_ds2_dap_deinit(port_id);
  227. } else {
  228. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_dolby_dap_deinit(port_id);
  230. }
  231. break;
  232. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  233. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  234. msm_qti_pp_asphere_deinit(port_id);
  235. break;
  236. default:
  237. /* custom topology specific feature deinit handlers */
  238. break;
  239. }
  240. }
  241. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  242. int path_type, int perf_mode)
  243. {
  244. int itr = 0, rc = 0;
  245. if ((path_type == ADM_PATH_PLAYBACK) &&
  246. (perf_mode == LEGACY_PCM_MODE) &&
  247. is_custom_stereo_on) {
  248. for (itr = 0; itr < payload.num_copps; itr++) {
  249. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  250. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  251. continue;
  252. }
  253. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  254. payload.port_id[itr],
  255. payload.copp_idx[itr],
  256. payload.session_id,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE);
  261. if (rc < 0)
  262. pr_err("%s: err setting custom stereo\n",
  263. __func__);
  264. }
  265. }
  266. }
  267. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  268. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  269. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  270. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  271. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  272. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  273. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  274. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  275. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  276. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  277. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  278. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AFE_PCM_RX},
  280. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AFE_PCM_TX},
  282. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_AUXPCM_RX},
  284. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_AUXPCM_TX},
  286. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_VOICE_PLAYBACK_TX},
  288. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_VOICE2_PLAYBACK_TX},
  290. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  291. LPASS_BE_INCALL_RECORD_RX},
  292. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  293. LPASS_BE_INCALL_RECORD_TX},
  294. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  295. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  296. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  297. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  298. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  299. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  300. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  301. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  302. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  303. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  304. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  305. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  306. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  307. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  308. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  309. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  310. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  311. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  312. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_QUAT_MI2S_RX},
  318. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_QUAT_MI2S_TX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_SEC_MI2S_RX},
  322. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_SEC_MI2S_TX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_PRI_MI2S_RX},
  326. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_PRI_MI2S_TX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_TERT_MI2S_RX},
  330. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_TERT_MI2S_TX},
  332. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_AUDIO_I2S_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SEC_AUXPCM_RX},
  336. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_AUXPCM_TX},
  338. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_SPDIF_RX},
  340. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_SEC_MI2S_RX_SD1},
  342. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_QUIN_MI2S_RX},
  344. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_QUIN_MI2S_TX},
  346. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_SENARY_MI2S_TX},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_0},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_1},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_2},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_3},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_4},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_5},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_6},
  376. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_PRI_TDM_RX_7},
  378. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_PRI_TDM_TX_7},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_0},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_1},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_2},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_3},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_4},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_5},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_6},
  408. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_SEC_TDM_RX_7},
  410. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_SEC_TDM_TX_7},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_0},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_1},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_2},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_3},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_4},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_5},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_6},
  440. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_TERT_TDM_RX_7},
  442. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_TERT_TDM_TX_7},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_0},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_1},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_2},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_3},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_4},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_5},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_6},
  472. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUAT_TDM_RX_7},
  474. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUAT_TDM_TX_7},
  476. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_0},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_1},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_2},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_3},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_4},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_5},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_6},
  504. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_QUIN_TDM_RX_7},
  506. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_QUIN_TDM_TX_7},
  508. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_INT_BT_A2DP_RX},
  510. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_USB_AUDIO_RX},
  512. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_USB_AUDIO_TX},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_DISPLAY_PORT},
  516. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_DISPLAY_PORT1},
  518. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_TERT_AUXPCM_RX},
  520. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_TERT_AUXPCM_TX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUAT_AUXPCM_RX},
  524. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_QUAT_AUXPCM_TX},
  526. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_QUIN_AUXPCM_RX},
  528. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_QUIN_AUXPCM_TX},
  530. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT0_MI2S_RX},
  532. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT0_MI2S_TX},
  534. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT1_MI2S_RX},
  536. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT1_MI2S_TX},
  538. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT2_MI2S_RX},
  540. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT2_MI2S_TX},
  542. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT3_MI2S_RX},
  544. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT3_MI2S_TX},
  546. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT4_MI2S_RX},
  548. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT4_MI2S_TX},
  550. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT5_MI2S_RX},
  552. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  553. LPASS_BE_INT5_MI2S_TX},
  554. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  555. LPASS_BE_INT6_MI2S_RX},
  556. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  557. LPASS_BE_INT6_MI2S_TX},
  558. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  559. LPASS_BE_WSA_CDC_DMA_RX_0},
  560. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  561. LPASS_BE_WSA_CDC_DMA_TX_0},
  562. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  563. LPASS_BE_WSA_CDC_DMA_RX_1},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  565. LPASS_BE_WSA_CDC_DMA_TX_1},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  567. LPASS_BE_WSA_CDC_DMA_TX_2},
  568. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  569. LPASS_BE_VA_CDC_DMA_TX_0},
  570. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  571. LPASS_BE_VA_CDC_DMA_TX_1},
  572. };
  573. /* Track ASM playback & capture sessions of DAI
  574. * Track LSM listen sessions
  575. */
  576. static struct msm_pcm_routing_fdai_data
  577. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  578. /* MULTIMEDIA1 */
  579. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  580. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  581. /* MULTIMEDIA2 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA3 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA4 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA5 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA6 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA7*/
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA8 */
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA9 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA10 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA11 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA12 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA13 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA14 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA15 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA16 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA17 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA18 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA19 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA20 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA28 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA29 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* VOIP */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* AFE_RX */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_TX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* VOICE_STUB */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* DTMF_RX */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* QCHAT */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* VOLTE_STUB */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* LSM1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM7 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* VOICE2_STUB */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICEMMODE1 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE2 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. };
  699. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  700. [MSM_BACKEND_DAI_MAX];
  701. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  702. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  703. static struct msm_pcm_stream_app_type_cfg
  704. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  705. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  706. /* The caller of this should aqcuire routing lock */
  707. void msm_pcm_routing_get_bedai_info(int be_idx,
  708. struct msm_pcm_routing_bdai_data *be_dai)
  709. {
  710. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  711. memcpy(be_dai, &msm_bedais[be_idx],
  712. sizeof(struct msm_pcm_routing_bdai_data));
  713. }
  714. /* The caller of this should aqcuire routing lock */
  715. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  716. struct msm_pcm_routing_fdai_data *fe_dai)
  717. {
  718. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  719. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  720. sizeof(struct msm_pcm_routing_fdai_data));
  721. }
  722. void msm_pcm_routing_acquire_lock(void)
  723. {
  724. mutex_lock(&routing_lock);
  725. }
  726. void msm_pcm_routing_release_lock(void)
  727. {
  728. mutex_unlock(&routing_lock);
  729. }
  730. static int msm_pcm_routing_get_app_type_idx(int app_type)
  731. {
  732. int idx;
  733. pr_debug("%s: app_type: %d\n", __func__, app_type);
  734. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  735. if (app_type_cfg[idx].app_type == app_type)
  736. return idx;
  737. }
  738. pr_info("%s: App type not available, fallback to default\n", __func__);
  739. return 0;
  740. }
  741. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  742. {
  743. int idx;
  744. pr_debug("%s: app_type: %d\n", __func__, app_type);
  745. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  746. if (lsm_app_type_cfg[idx].app_type == app_type)
  747. return idx;
  748. }
  749. pr_debug("%s: App type not available, fallback to default\n", __func__);
  750. return 0;
  751. }
  752. static bool is_mm_lsm_fe_id(int fe_id)
  753. {
  754. bool rc = true;
  755. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  756. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  757. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  758. rc = false;
  759. }
  760. return rc;
  761. }
  762. /*
  763. * msm_pcm_routing_send_chmix_cfg:
  764. * send the channel mixer command to mix the input channels
  765. * into output channels.
  766. *
  767. * @fe_id: front end id
  768. * @ip_channel_cnt: input channel count
  769. * @op_channel_cnt: output channel count
  770. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  771. * @session_type: indicates session is of type TX or RX
  772. * @stream_type: indicates either Audio or Listen stream type
  773. */
  774. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  775. int op_channel_cnt, int *ch_wght_coeff,
  776. int session_type, int stream_type)
  777. {
  778. int rc = 0, idx = 0;
  779. int be_index = 0, port_id;
  780. unsigned int session_id = 0;
  781. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  782. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  783. stream_type);
  784. if (!is_mm_lsm_fe_id(fe_id)) {
  785. /* bad ID assigned in machine driver */
  786. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  787. return -EINVAL;
  788. }
  789. if (ch_wght_coeff == NULL) {
  790. pr_err("%s: Null channel weightage coefficients passed\n",
  791. __func__);
  792. return -EINVAL;
  793. }
  794. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  795. port_id = msm_bedais[be_index].port_id;
  796. if (!msm_bedais[be_index].active ||
  797. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  798. continue;
  799. session_id = fe_dai_map[fe_id][session_type].strm_id;
  800. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  801. unsigned long copp =
  802. session_copp_map[fe_id][session_type][be_index];
  803. if (!test_bit(idx, &copp))
  804. continue;
  805. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  806. session_id, ip_channel_cnt,
  807. op_channel_cnt, ch_wght_coeff,
  808. session_type, stream_type);
  809. if (rc < 0)
  810. pr_err("%s: err setting channel mix config\n",
  811. __func__);
  812. }
  813. }
  814. return 0;
  815. }
  816. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  817. int msm_pcm_routing_reg_stream_app_type_cfg(
  818. int fedai_id, int session_type, int be_id,
  819. struct msm_pcm_stream_app_type_cfg *cfg_data)
  820. {
  821. int ret = 0;
  822. if (cfg_data == NULL) {
  823. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  824. ret = -EINVAL;
  825. goto done;
  826. }
  827. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  828. __func__, fedai_id, session_type, be_id,
  829. cfg_data->app_type, cfg_data->acdb_dev_id,
  830. cfg_data->sample_rate);
  831. if (!is_mm_lsm_fe_id(fedai_id)) {
  832. pr_err("%s: Invalid machine driver ID %d\n",
  833. __func__, fedai_id);
  834. ret = -EINVAL;
  835. goto done;
  836. }
  837. if (session_type != SESSION_TYPE_RX &&
  838. session_type != SESSION_TYPE_TX) {
  839. pr_err("%s: Invalid session type %d\n",
  840. __func__, session_type);
  841. ret = -EINVAL;
  842. goto done;
  843. }
  844. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  845. pr_err("%s: Received out of bounds be_id %d\n",
  846. __func__, be_id);
  847. ret = -EINVAL;
  848. goto done;
  849. }
  850. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  851. /*
  852. * Store the BE ID of the configuration information set as the latest so
  853. * the get mixer control knows what to return.
  854. */
  855. last_be_id_configured[fedai_id][session_type] = be_id;
  856. done:
  857. return ret;
  858. }
  859. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  860. /**
  861. * msm_pcm_routing_get_stream_app_type_cfg
  862. *
  863. * Receives fedai_id, session_type, be_id, and populates app_type,
  864. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  865. * -EINVAL and does not alter passed values.
  866. *
  867. * fedai_id - Passed value, front end ID for which app type config is wanted
  868. * session_type - Passed value, session type for which app type config
  869. * is wanted
  870. * be_id - Returned value, back end device id the app type config data is for
  871. * cfg_data - Returned value, configuration data used by app type config
  872. */
  873. int msm_pcm_routing_get_stream_app_type_cfg(
  874. int fedai_id, int session_type, int *bedai_id,
  875. struct msm_pcm_stream_app_type_cfg *cfg_data)
  876. {
  877. int be_id;
  878. int ret = 0;
  879. if (bedai_id == NULL) {
  880. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. } else if (cfg_data == NULL) {
  884. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  885. ret = -EINVAL;
  886. goto done;
  887. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  888. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  889. ret = -EINVAL;
  890. goto done;
  891. } else if (session_type != SESSION_TYPE_RX &&
  892. session_type != SESSION_TYPE_TX) {
  893. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  894. ret = -EINVAL;
  895. goto done;
  896. }
  897. be_id = last_be_id_configured[fedai_id][session_type];
  898. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  899. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  900. ret = -EINVAL;
  901. goto done;
  902. }
  903. *bedai_id = be_id;
  904. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  905. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  906. __func__, fedai_id, session_type, *bedai_id,
  907. cfg_data->app_type, cfg_data->acdb_dev_id,
  908. cfg_data->sample_rate);
  909. done:
  910. return ret;
  911. }
  912. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  913. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  914. int cal_index)
  915. {
  916. struct list_head *ptr, *next;
  917. struct cal_block_data *cal_block = NULL;
  918. pr_debug("%s\n", __func__);
  919. list_for_each_safe(ptr, next,
  920. &cal_data[cal_index]->cal_blocks) {
  921. cal_block = list_entry(ptr,
  922. struct cal_block_data, list);
  923. if (cal_utils_is_cal_stale(cal_block))
  924. continue;
  925. if (((struct audio_cal_info_adm_top *)cal_block
  926. ->cal_info)->path == path) {
  927. return cal_block;
  928. }
  929. }
  930. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  931. return NULL;
  932. }
  933. static struct cal_block_data *msm_routing_find_topology(int path,
  934. int app_type,
  935. int acdb_id,
  936. int cal_index)
  937. {
  938. struct list_head *ptr, *next;
  939. struct cal_block_data *cal_block = NULL;
  940. struct audio_cal_info_adm_top *cal_info;
  941. pr_debug("%s\n", __func__);
  942. list_for_each_safe(ptr, next,
  943. &cal_data[cal_index]->cal_blocks) {
  944. cal_block = list_entry(ptr,
  945. struct cal_block_data, list);
  946. if (cal_utils_is_cal_stale(cal_block))
  947. continue;
  948. cal_info = (struct audio_cal_info_adm_top *)
  949. cal_block->cal_info;
  950. if ((cal_info->path == path) &&
  951. (cal_info->app_type == app_type) &&
  952. (cal_info->acdb_id == acdb_id)) {
  953. return cal_block;
  954. }
  955. }
  956. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  957. __func__, path, app_type, acdb_id);
  958. return msm_routing_find_topology_by_path(path, cal_index);
  959. }
  960. /*
  961. * Retrieving cal_block will mark cal_block as stale.
  962. * Hence it cannot be reused or resent unless the flag
  963. * is reset.
  964. */
  965. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  966. int be_id)
  967. {
  968. int topology = NULL_COPP_TOPOLOGY;
  969. struct cal_block_data *cal_block = NULL;
  970. int app_type = 0, acdb_dev_id = 0;
  971. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  972. __func__, fedai_id, session_type, be_id);
  973. if (cal_data == NULL)
  974. goto done;
  975. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  976. acdb_dev_id =
  977. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  978. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  979. cal_block = msm_routing_find_topology(session_type, app_type,
  980. acdb_dev_id,
  981. ADM_TOPOLOGY_CAL_TYPE_IDX);
  982. if (cal_block != NULL) {
  983. topology = ((struct audio_cal_info_adm_top *)
  984. cal_block->cal_info)->topology;
  985. cal_utils_mark_cal_used(cal_block);
  986. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  987. } else {
  988. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  989. pr_debug("%s: Check for LSM topology\n", __func__);
  990. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  991. cal_block = msm_routing_find_topology(session_type, app_type,
  992. acdb_dev_id,
  993. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  994. if (cal_block != NULL) {
  995. topology = ((struct audio_cal_info_adm_top *)
  996. cal_block->cal_info)->topology;
  997. cal_utils_mark_cal_used(cal_block);
  998. }
  999. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1000. }
  1001. done:
  1002. pr_debug("%s: Using topology %d\n", __func__, topology);
  1003. return topology;
  1004. }
  1005. static uint8_t is_be_dai_extproc(int be_dai)
  1006. {
  1007. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1008. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1009. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1010. return 1;
  1011. else
  1012. return 0;
  1013. }
  1014. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1015. int path_type, int perf_mode,
  1016. uint32_t passthr_mode)
  1017. {
  1018. int i, port_type, j, num_copps = 0;
  1019. struct route_payload payload;
  1020. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1021. path_type == ADM_PATH_COMPRESSED_RX) ?
  1022. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1023. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1024. if (!is_be_dai_extproc(i) &&
  1025. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1026. (msm_bedais[i].active) &&
  1027. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1028. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1029. unsigned long copp =
  1030. session_copp_map[fedai_id][sess_type][i];
  1031. if (test_bit(j, &copp)) {
  1032. payload.port_id[num_copps] =
  1033. msm_bedais[i].port_id;
  1034. payload.copp_idx[num_copps] = j;
  1035. payload.app_type[num_copps] =
  1036. fe_dai_app_type_cfg
  1037. [fedai_id][sess_type][i]
  1038. .app_type;
  1039. payload.acdb_dev_id[num_copps] =
  1040. fe_dai_app_type_cfg
  1041. [fedai_id][sess_type][i]
  1042. .acdb_dev_id;
  1043. payload.sample_rate[num_copps] =
  1044. fe_dai_app_type_cfg
  1045. [fedai_id][sess_type][i]
  1046. .sample_rate;
  1047. num_copps++;
  1048. }
  1049. }
  1050. }
  1051. }
  1052. if (num_copps) {
  1053. payload.num_copps = num_copps;
  1054. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1055. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1056. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1057. }
  1058. }
  1059. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1060. int stream_type)
  1061. {
  1062. int i, session_type, path_type, port_type;
  1063. u32 mode = 0;
  1064. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1065. /* bad ID assigned in machine driver */
  1066. pr_err("%s: bad MM ID\n", __func__);
  1067. return;
  1068. }
  1069. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1070. session_type = SESSION_TYPE_RX;
  1071. path_type = ADM_PATH_PLAYBACK;
  1072. port_type = MSM_AFE_PORT_TYPE_RX;
  1073. } else {
  1074. session_type = SESSION_TYPE_TX;
  1075. path_type = ADM_PATH_LIVE_REC;
  1076. port_type = MSM_AFE_PORT_TYPE_TX;
  1077. }
  1078. mutex_lock(&routing_lock);
  1079. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. mode = afe_get_port_type(msm_bedais[i].port_id);
  1086. adm_connect_afe_port(mode, dspst_id,
  1087. msm_bedais[i].port_id);
  1088. break;
  1089. }
  1090. }
  1091. mutex_unlock(&routing_lock);
  1092. }
  1093. static bool route_check_fe_id_adm_support(int fe_id)
  1094. {
  1095. bool rc = true;
  1096. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1097. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1098. /* fe id is listen while port is set to afe */
  1099. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1100. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1101. __func__, fe_id, lsm_port_index);
  1102. rc = false;
  1103. }
  1104. }
  1105. return rc;
  1106. }
  1107. /*
  1108. * msm_pcm_routing_get_pp_ch_cnt:
  1109. * Read the processed channel count
  1110. *
  1111. * @fe_id: Front end ID
  1112. * @session_type: Inidicates RX or TX session type
  1113. */
  1114. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1115. {
  1116. struct msm_pcm_stream_app_type_cfg cfg_data;
  1117. int be_id = 0, app_type_idx = 0, app_type = 0;
  1118. int ret;
  1119. memset(&cfg_data, 0, sizeof(cfg_data));
  1120. if (!is_mm_lsm_fe_id(fe_id)) {
  1121. pr_err("%s: bad MM ID\n", __func__);
  1122. return -EINVAL;
  1123. }
  1124. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1125. &be_id, &cfg_data);
  1126. if (ret) {
  1127. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1128. return ret;
  1129. }
  1130. app_type = cfg_data.app_type;
  1131. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1132. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1133. }
  1134. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1135. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1136. int dspst_id, int stream_type,
  1137. uint32_t passthr_mode)
  1138. {
  1139. int i, j, session_type, path_type, port_type, topology;
  1140. int num_copps = 0;
  1141. struct route_payload payload;
  1142. u32 channels, sample_rate;
  1143. u16 bit_width = 16;
  1144. bool is_lsm;
  1145. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1146. __func__, fe_id, perf_mode, dspst_id,
  1147. stream_type, passthr_mode);
  1148. if (!is_mm_lsm_fe_id(fe_id)) {
  1149. /* bad ID assigned in machine driver */
  1150. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1151. return -EINVAL;
  1152. }
  1153. if (!route_check_fe_id_adm_support(fe_id)) {
  1154. /* ignore adm open if not supported for fe_id */
  1155. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1156. return 0;
  1157. }
  1158. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1159. session_type = SESSION_TYPE_RX;
  1160. if (passthr_mode != LEGACY_PCM)
  1161. path_type = ADM_PATH_COMPRESSED_RX;
  1162. else
  1163. path_type = ADM_PATH_PLAYBACK;
  1164. port_type = MSM_AFE_PORT_TYPE_RX;
  1165. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1166. session_type = SESSION_TYPE_TX;
  1167. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1168. path_type = ADM_PATH_COMPRESSED_TX;
  1169. else
  1170. path_type = ADM_PATH_LIVE_REC;
  1171. port_type = MSM_AFE_PORT_TYPE_TX;
  1172. } else {
  1173. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1174. return -EINVAL;
  1175. }
  1176. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1177. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1178. mutex_lock(&routing_lock);
  1179. payload.num_copps = 0; /* only RX needs to use payload */
  1180. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1181. /* re-enable EQ if active */
  1182. msm_qti_pp_send_eq_values(fe_id);
  1183. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1184. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1185. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1186. if (!is_be_dai_extproc(i) &&
  1187. (afe_get_port_type(msm_bedais[i].port_id) ==
  1188. port_type) &&
  1189. (msm_bedais[i].active) &&
  1190. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1191. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1192. /*
  1193. * check if ADM needs to be configured with different
  1194. * channel mapping than backend
  1195. */
  1196. if (!msm_bedais[i].adm_override_ch)
  1197. channels = msm_bedais[i].channel;
  1198. else
  1199. channels = msm_bedais[i].adm_override_ch;
  1200. bit_width = msm_routing_get_bit_width(
  1201. msm_bedais[i].format);
  1202. app_type =
  1203. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1204. if (app_type && is_lsm) {
  1205. app_type_idx =
  1206. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1207. sample_rate =
  1208. fe_dai_app_type_cfg[fe_id][session_type][i]
  1209. .sample_rate;
  1210. bit_width =
  1211. lsm_app_type_cfg[app_type_idx].bit_width;
  1212. } else if (app_type) {
  1213. app_type_idx =
  1214. msm_pcm_routing_get_app_type_idx(
  1215. app_type);
  1216. sample_rate =
  1217. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1218. bit_width =
  1219. app_type_cfg[app_type_idx].bit_width;
  1220. } else {
  1221. sample_rate = msm_bedais[i].sample_rate;
  1222. }
  1223. acdb_dev_id =
  1224. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1225. topology = msm_routing_get_adm_topology(fe_id,
  1226. session_type,
  1227. i);
  1228. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1229. || (passthr_mode ==
  1230. COMPRESSED_PASSTHROUGH_GEN))
  1231. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1232. pr_debug("%s: Before adm open topology %d\n", __func__,
  1233. topology);
  1234. copp_idx =
  1235. adm_open(msm_bedais[i].port_id,
  1236. path_type, sample_rate, channels,
  1237. topology, perf_mode, bit_width,
  1238. app_type, acdb_dev_id);
  1239. if ((copp_idx < 0) ||
  1240. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1241. pr_err("%s:adm open failed coppid:%d\n",
  1242. __func__, copp_idx);
  1243. mutex_unlock(&routing_lock);
  1244. return -EINVAL;
  1245. }
  1246. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1247. __func__, fe_id, session_type, i);
  1248. set_bit(copp_idx,
  1249. &session_copp_map[fe_id][session_type][i]);
  1250. if (msm_is_resample_needed(
  1251. sample_rate,
  1252. msm_bedais[i].sample_rate))
  1253. adm_copp_mfc_cfg(
  1254. msm_bedais[i].port_id, copp_idx,
  1255. msm_bedais[i].sample_rate);
  1256. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1257. unsigned long copp =
  1258. session_copp_map[fe_id][session_type][i];
  1259. if (test_bit(j, &copp)) {
  1260. payload.port_id[num_copps] =
  1261. msm_bedais[i].port_id;
  1262. payload.copp_idx[num_copps] = j;
  1263. payload.app_type[num_copps] =
  1264. fe_dai_app_type_cfg
  1265. [fe_id][session_type][i]
  1266. .app_type;
  1267. payload.acdb_dev_id[num_copps] =
  1268. fe_dai_app_type_cfg
  1269. [fe_id][session_type][i]
  1270. .acdb_dev_id;
  1271. payload.sample_rate[num_copps] =
  1272. fe_dai_app_type_cfg
  1273. [fe_id][session_type][i]
  1274. .sample_rate;
  1275. num_copps++;
  1276. }
  1277. }
  1278. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1279. && passthr_mode !=
  1280. COMPRESSED_PASSTHROUGH_GEN) {
  1281. msm_routing_send_device_pp_params(
  1282. msm_bedais[i].port_id,
  1283. copp_idx, fe_id);
  1284. }
  1285. }
  1286. }
  1287. if (num_copps) {
  1288. payload.num_copps = num_copps;
  1289. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1290. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1291. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1292. }
  1293. mutex_unlock(&routing_lock);
  1294. return 0;
  1295. }
  1296. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1297. {
  1298. u32 session_id;
  1299. switch (val) {
  1300. case MSM_FRONTEND_DAI_QCHAT:
  1301. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1302. break;
  1303. case MSM_FRONTEND_DAI_VOIP:
  1304. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1305. break;
  1306. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1307. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1308. break;
  1309. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1310. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1311. break;
  1312. default:
  1313. session_id = 0;
  1314. }
  1315. pr_debug("%s session_id 0x%x", __func__, session_id);
  1316. return session_id;
  1317. }
  1318. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1319. int dspst_id, int stream_type)
  1320. {
  1321. int copp_idx = 0;
  1322. int sess_type = 0;
  1323. int i = 0, j = 0, be_id;
  1324. int ret = 0;
  1325. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1326. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1327. return 0;
  1328. }
  1329. if (!(channel_mixer[fe_id].enable)) {
  1330. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1331. __func__, fe_id);
  1332. return 0;
  1333. }
  1334. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1335. sess_type = SESSION_TYPE_RX;
  1336. else
  1337. sess_type = SESSION_TYPE_TX;
  1338. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1339. ++i) {
  1340. be_id = channel_input[fe_id][i] - 1;
  1341. channel_mixer[fe_id].input_channels[i] =
  1342. msm_bedais[be_id].channel;
  1343. if ((msm_bedais[be_id].active) &&
  1344. test_bit(fe_id,
  1345. &msm_bedais[be_id].fe_sessions[0])) {
  1346. unsigned long copp =
  1347. session_copp_map[fe_id][sess_type][be_id];
  1348. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1349. if (test_bit(j, &copp)) {
  1350. copp_idx = j;
  1351. break;
  1352. }
  1353. }
  1354. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1355. __func__,
  1356. fe_id, be_id, msm_bedais[be_id].channel,
  1357. copp_idx);
  1358. ret = adm_programable_channel_mixer(
  1359. msm_bedais[be_id].port_id,
  1360. copp_idx, dspst_id, sess_type,
  1361. channel_mixer + fe_id, i);
  1362. }
  1363. }
  1364. return ret;
  1365. }
  1366. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1367. int dspst_id, int stream_type)
  1368. {
  1369. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1370. struct route_payload payload;
  1371. u32 channels, sample_rate;
  1372. uint16_t bits_per_sample = 16;
  1373. uint32_t passthr_mode = LEGACY_PCM;
  1374. int ret = 0;
  1375. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1376. /* bad ID assigned in machine driver */
  1377. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1378. return -EINVAL;
  1379. }
  1380. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1381. session_type = SESSION_TYPE_RX;
  1382. path_type = ADM_PATH_PLAYBACK;
  1383. port_type = MSM_AFE_PORT_TYPE_RX;
  1384. } else {
  1385. session_type = SESSION_TYPE_TX;
  1386. path_type = ADM_PATH_LIVE_REC;
  1387. port_type = MSM_AFE_PORT_TYPE_TX;
  1388. }
  1389. mutex_lock(&routing_lock);
  1390. payload.num_copps = 0; /* only RX needs to use payload */
  1391. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1392. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1393. /* re-enable EQ if active */
  1394. msm_qti_pp_send_eq_values(fedai_id);
  1395. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1396. if (!is_be_dai_extproc(i) &&
  1397. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1398. (msm_bedais[i].active) &&
  1399. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1400. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1401. /*
  1402. * check if ADM needs to be configured with different
  1403. * channel mapping than backend
  1404. */
  1405. if (!msm_bedais[i].adm_override_ch)
  1406. channels = msm_bedais[i].channel;
  1407. else
  1408. channels = msm_bedais[i].adm_override_ch;
  1409. msm_bedais[i].passthr_mode[fedai_id] =
  1410. LEGACY_PCM;
  1411. bits_per_sample = msm_routing_get_bit_width(
  1412. msm_bedais[i].format);
  1413. app_type =
  1414. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1415. if (app_type) {
  1416. app_type_idx =
  1417. msm_pcm_routing_get_app_type_idx(app_type);
  1418. sample_rate =
  1419. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1420. .sample_rate;
  1421. bits_per_sample =
  1422. app_type_cfg[app_type_idx].bit_width;
  1423. } else
  1424. sample_rate = msm_bedais[i].sample_rate;
  1425. acdb_dev_id =
  1426. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1427. .acdb_dev_id;
  1428. topology = msm_routing_get_adm_topology(fedai_id,
  1429. session_type,
  1430. i);
  1431. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1432. sample_rate, channels, topology,
  1433. perf_mode, bits_per_sample,
  1434. app_type, acdb_dev_id);
  1435. if ((copp_idx < 0) ||
  1436. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1437. pr_err("%s: adm open failed copp_idx:%d\n",
  1438. __func__, copp_idx);
  1439. mutex_unlock(&routing_lock);
  1440. return -EINVAL;
  1441. }
  1442. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1443. __func__, fedai_id, session_type, i);
  1444. set_bit(copp_idx,
  1445. &session_copp_map[fedai_id][session_type][i]);
  1446. if (msm_is_resample_needed(
  1447. sample_rate,
  1448. msm_bedais[i].sample_rate))
  1449. adm_copp_mfc_cfg(
  1450. msm_bedais[i].port_id, copp_idx,
  1451. msm_bedais[i].sample_rate);
  1452. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1453. unsigned long copp =
  1454. session_copp_map[fedai_id][session_type][i];
  1455. if (test_bit(j, &copp)) {
  1456. payload.port_id[num_copps] =
  1457. msm_bedais[i].port_id;
  1458. payload.copp_idx[num_copps] = j;
  1459. payload.app_type[num_copps] =
  1460. fe_dai_app_type_cfg
  1461. [fedai_id][session_type]
  1462. [i].app_type;
  1463. payload.acdb_dev_id[num_copps] =
  1464. fe_dai_app_type_cfg
  1465. [fedai_id][session_type]
  1466. [i].acdb_dev_id;
  1467. payload.sample_rate[num_copps] =
  1468. fe_dai_app_type_cfg
  1469. [fedai_id][session_type]
  1470. [i].sample_rate;
  1471. num_copps++;
  1472. }
  1473. }
  1474. if ((perf_mode == LEGACY_PCM_MODE) &&
  1475. (msm_bedais[i].passthr_mode[fedai_id] ==
  1476. LEGACY_PCM))
  1477. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1478. copp_idx, topology,
  1479. channels);
  1480. }
  1481. }
  1482. if (num_copps) {
  1483. payload.num_copps = num_copps;
  1484. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1485. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1486. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1487. }
  1488. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1489. dspst_id, stream_type);
  1490. mutex_unlock(&routing_lock);
  1491. return ret;
  1492. }
  1493. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1494. int dspst_id, int stream_type,
  1495. struct msm_pcm_routing_evt event_info)
  1496. {
  1497. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1498. stream_type)) {
  1499. pr_err("%s: failed to reg phy stream\n", __func__);
  1500. return -EINVAL;
  1501. }
  1502. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1503. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1504. else
  1505. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1506. return 0;
  1507. }
  1508. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1509. {
  1510. int i, port_type, session_type, path_type, topology;
  1511. struct msm_pcm_routing_fdai_data *fdai;
  1512. if (!is_mm_lsm_fe_id(fedai_id)) {
  1513. /* bad ID assigned in machine driver */
  1514. pr_err("%s: bad MM ID\n", __func__);
  1515. return;
  1516. }
  1517. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1518. port_type = MSM_AFE_PORT_TYPE_RX;
  1519. session_type = SESSION_TYPE_RX;
  1520. path_type = ADM_PATH_PLAYBACK;
  1521. } else {
  1522. port_type = MSM_AFE_PORT_TYPE_TX;
  1523. session_type = SESSION_TYPE_TX;
  1524. path_type = ADM_PATH_LIVE_REC;
  1525. }
  1526. mutex_lock(&routing_lock);
  1527. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1528. if (!is_be_dai_extproc(i) &&
  1529. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1530. (msm_bedais[i].active) &&
  1531. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1532. int idx;
  1533. unsigned long copp =
  1534. session_copp_map[fedai_id][session_type][i];
  1535. fdai = &fe_dai_map[fedai_id][session_type];
  1536. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1537. if (test_bit(idx, &copp))
  1538. break;
  1539. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1540. pr_debug("%s: copp idx is invalid, exiting\n",
  1541. __func__);
  1542. continue;
  1543. }
  1544. topology = adm_get_topology_for_port_copp_idx(
  1545. msm_bedais[i].port_id, idx);
  1546. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1547. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1548. __func__, copp, fedai_id, session_type, i);
  1549. clear_bit(idx,
  1550. &session_copp_map[fedai_id][session_type][i]);
  1551. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1552. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1553. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1554. (msm_bedais[i].passthr_mode[fedai_id] ==
  1555. LEGACY_PCM))
  1556. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1557. topology);
  1558. }
  1559. }
  1560. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1561. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1562. mutex_unlock(&routing_lock);
  1563. }
  1564. /* Check if FE/BE route is set */
  1565. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1566. {
  1567. bool rc = false;
  1568. if (!is_mm_lsm_fe_id(fe_id)) {
  1569. /* recheck FE ID in the mixer control defined in this file */
  1570. pr_err("%s: bad MM ID\n", __func__);
  1571. return rc;
  1572. }
  1573. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1574. rc = true;
  1575. return rc;
  1576. }
  1577. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1578. {
  1579. int session_type, path_type, topology;
  1580. u32 channels, sample_rate;
  1581. uint16_t bits_per_sample = 16;
  1582. struct msm_pcm_routing_fdai_data *fdai;
  1583. uint32_t passthr_mode;
  1584. bool is_lsm;
  1585. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1586. if (!is_mm_lsm_fe_id(val)) {
  1587. /* recheck FE ID in the mixer control defined in this file */
  1588. pr_err("%s: bad MM ID\n", __func__);
  1589. return;
  1590. }
  1591. if (!route_check_fe_id_adm_support(val)) {
  1592. /* ignore adm open if not supported for fe_id */
  1593. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1594. return;
  1595. }
  1596. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1597. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1598. MSM_AFE_PORT_TYPE_RX) {
  1599. session_type = SESSION_TYPE_RX;
  1600. if (passthr_mode != LEGACY_PCM)
  1601. path_type = ADM_PATH_COMPRESSED_RX;
  1602. else
  1603. path_type = ADM_PATH_PLAYBACK;
  1604. } else {
  1605. session_type = SESSION_TYPE_TX;
  1606. if (passthr_mode != LEGACY_PCM)
  1607. path_type = ADM_PATH_COMPRESSED_TX;
  1608. else
  1609. path_type = ADM_PATH_LIVE_REC;
  1610. }
  1611. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1612. (val <= MSM_FRONTEND_DAI_LSM8);
  1613. mutex_lock(&routing_lock);
  1614. if (set) {
  1615. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1616. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1617. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1618. voc_start_playback(set, msm_bedais[reg].port_id);
  1619. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1620. fdai = &fe_dai_map[val][session_type];
  1621. if (msm_bedais[reg].active && fdai->strm_id !=
  1622. INVALID_SESSION) {
  1623. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1624. /*
  1625. * check if ADM needs to be configured with different
  1626. * channel mapping than backend
  1627. */
  1628. if (!msm_bedais[reg].adm_override_ch)
  1629. channels = msm_bedais[reg].channel;
  1630. else
  1631. channels = msm_bedais[reg].adm_override_ch;
  1632. if (session_type == SESSION_TYPE_TX &&
  1633. fdai->be_srate &&
  1634. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1635. pr_debug("%s: flush strm %d diff BE rates\n",
  1636. __func__, fdai->strm_id);
  1637. if (fdai->event_info.event_func)
  1638. fdai->event_info.event_func(
  1639. MSM_PCM_RT_EVT_BUF_RECFG,
  1640. fdai->event_info.priv_data);
  1641. fdai->be_srate = 0; /* might not need it */
  1642. }
  1643. bits_per_sample = msm_routing_get_bit_width(
  1644. msm_bedais[reg].format);
  1645. app_type =
  1646. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1647. if (app_type && is_lsm) {
  1648. app_type_idx =
  1649. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1650. sample_rate =
  1651. fe_dai_app_type_cfg[val][session_type][reg]
  1652. .sample_rate;
  1653. bits_per_sample =
  1654. lsm_app_type_cfg[app_type_idx].bit_width;
  1655. } else if (app_type) {
  1656. app_type_idx =
  1657. msm_pcm_routing_get_app_type_idx(app_type);
  1658. sample_rate =
  1659. fe_dai_app_type_cfg[val][session_type][reg]
  1660. .sample_rate;
  1661. bits_per_sample =
  1662. app_type_cfg[app_type_idx].bit_width;
  1663. } else
  1664. sample_rate = msm_bedais[reg].sample_rate;
  1665. topology = msm_routing_get_adm_topology(val,
  1666. session_type,
  1667. reg);
  1668. acdb_dev_id =
  1669. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1670. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1671. sample_rate, channels, topology,
  1672. fdai->perf_mode, bits_per_sample,
  1673. app_type, acdb_dev_id);
  1674. if ((copp_idx < 0) ||
  1675. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1676. pr_err("%s: adm open failed\n", __func__);
  1677. mutex_unlock(&routing_lock);
  1678. return;
  1679. }
  1680. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1681. __func__, val, session_type, reg);
  1682. set_bit(copp_idx,
  1683. &session_copp_map[val][session_type][reg]);
  1684. if (msm_is_resample_needed(
  1685. sample_rate,
  1686. msm_bedais[reg].sample_rate))
  1687. adm_copp_mfc_cfg(
  1688. msm_bedais[reg].port_id, copp_idx,
  1689. msm_bedais[reg].sample_rate);
  1690. if (session_type == SESSION_TYPE_RX &&
  1691. fdai->event_info.event_func)
  1692. fdai->event_info.event_func(
  1693. MSM_PCM_RT_EVT_DEVSWITCH,
  1694. fdai->event_info.priv_data);
  1695. msm_pcm_routing_build_matrix(val, session_type,
  1696. path_type,
  1697. fdai->perf_mode,
  1698. passthr_mode);
  1699. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1700. (passthr_mode == LEGACY_PCM))
  1701. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1702. copp_idx, topology,
  1703. channels);
  1704. }
  1705. } else {
  1706. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1707. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1708. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1709. voc_start_playback(set, msm_bedais[reg].port_id);
  1710. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1711. fdai = &fe_dai_map[val][session_type];
  1712. if (msm_bedais[reg].active && fdai->strm_id !=
  1713. INVALID_SESSION) {
  1714. int idx;
  1715. int port_id;
  1716. unsigned long copp =
  1717. session_copp_map[val][session_type][reg];
  1718. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1719. if (test_bit(idx, &copp))
  1720. break;
  1721. port_id = msm_bedais[reg].port_id;
  1722. topology = adm_get_topology_for_port_copp_idx(port_id,
  1723. idx);
  1724. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1725. idx);
  1726. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1727. __func__, copp, val, session_type, reg,
  1728. topology);
  1729. clear_bit(idx,
  1730. &session_copp_map[val][session_type][reg]);
  1731. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1732. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1733. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1734. (passthr_mode == LEGACY_PCM))
  1735. msm_pcm_routing_deinit_pp(
  1736. msm_bedais[reg].port_id,
  1737. topology);
  1738. msm_pcm_routing_build_matrix(val, session_type,
  1739. path_type,
  1740. fdai->perf_mode,
  1741. passthr_mode);
  1742. }
  1743. }
  1744. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1745. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1746. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1747. mutex_unlock(&routing_lock);
  1748. }
  1749. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1750. struct snd_ctl_elem_value *ucontrol)
  1751. {
  1752. struct soc_mixer_control *mc =
  1753. (struct soc_mixer_control *)kcontrol->private_value;
  1754. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1755. ucontrol->value.integer.value[0] = 1;
  1756. else
  1757. ucontrol->value.integer.value[0] = 0;
  1758. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1759. ucontrol->value.integer.value[0]);
  1760. return 0;
  1761. }
  1762. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1763. struct snd_ctl_elem_value *ucontrol)
  1764. {
  1765. struct snd_soc_dapm_widget *widget =
  1766. snd_soc_dapm_kcontrol_widget(kcontrol);
  1767. struct soc_mixer_control *mc =
  1768. (struct soc_mixer_control *)kcontrol->private_value;
  1769. struct snd_soc_dapm_update *update = NULL;
  1770. if (ucontrol->value.integer.value[0] &&
  1771. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1772. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1773. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1774. update);
  1775. } else if (!ucontrol->value.integer.value[0] &&
  1776. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1777. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1778. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1779. update);
  1780. }
  1781. return 1;
  1782. }
  1783. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1784. struct snd_ctl_elem_value *ucontrol)
  1785. {
  1786. struct soc_mixer_control *mc =
  1787. (struct soc_mixer_control *)kcontrol->private_value;
  1788. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1789. ucontrol->value.integer.value[0] = 1;
  1790. else
  1791. ucontrol->value.integer.value[0] = 0;
  1792. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1793. ucontrol->value.integer.value[0]);
  1794. return 0;
  1795. }
  1796. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1797. struct snd_ctl_elem_value *ucontrol)
  1798. {
  1799. struct snd_soc_dapm_widget *widget =
  1800. snd_soc_dapm_kcontrol_widget(kcontrol);
  1801. struct soc_mixer_control *mc =
  1802. (struct soc_mixer_control *)kcontrol->private_value;
  1803. struct snd_soc_dapm_update *update = NULL;
  1804. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1805. ucontrol->value.integer.value[0]);
  1806. if (ucontrol->value.integer.value[0]) {
  1807. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1808. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1809. snd_soc_dapm_mixer_update_power(widget->dapm,
  1810. kcontrol, 1, update);
  1811. } else if (!ucontrol->value.integer.value[0]) {
  1812. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1813. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1814. snd_soc_dapm_mixer_update_power(widget->dapm,
  1815. kcontrol, 0, update);
  1816. }
  1817. return 1;
  1818. }
  1819. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1820. {
  1821. u32 session_id = 0;
  1822. u16 path_type;
  1823. struct media_format_info voc_be_media_format;
  1824. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1825. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1826. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1827. __func__, val, session_id);
  1828. mutex_lock(&routing_lock);
  1829. if (set)
  1830. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1831. else
  1832. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1833. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1834. afe_get_port_type(msm_bedais[reg].port_id) ==
  1835. MSM_AFE_PORT_TYPE_RX) {
  1836. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1837. __func__, set, msm_bedais[reg].port_id);
  1838. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1839. }
  1840. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1841. MSM_AFE_PORT_TYPE_RX)
  1842. path_type = RX_PATH;
  1843. else
  1844. path_type = TX_PATH;
  1845. if (set) {
  1846. if (msm_bedais[reg].active) {
  1847. voc_set_route_flag(session_id, path_type, 1);
  1848. memset(&voc_be_media_format, 0,
  1849. sizeof(struct media_format_info));
  1850. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1851. voc_be_media_format.num_channels =
  1852. msm_bedais[reg].channel;
  1853. voc_be_media_format.sample_rate =
  1854. msm_bedais[reg].sample_rate;
  1855. voc_be_media_format.bits_per_sample =
  1856. msm_bedais[reg].format;
  1857. /* Defaulting this to 1 for voice call usecases */
  1858. voc_be_media_format.channel_mapping[0] = 1;
  1859. voc_set_device_config(session_id, path_type,
  1860. &voc_be_media_format);
  1861. if (voc_get_route_flag(session_id, TX_PATH) &&
  1862. voc_get_route_flag(session_id, RX_PATH))
  1863. voc_enable_device(session_id);
  1864. } else {
  1865. pr_debug("%s BE is not active\n", __func__);
  1866. }
  1867. } else {
  1868. voc_set_route_flag(session_id, path_type, 0);
  1869. voc_disable_device(session_id);
  1870. }
  1871. mutex_unlock(&routing_lock);
  1872. }
  1873. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1874. struct snd_ctl_elem_value *ucontrol)
  1875. {
  1876. struct soc_mixer_control *mc =
  1877. (struct soc_mixer_control *)kcontrol->private_value;
  1878. mutex_lock(&routing_lock);
  1879. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1880. ucontrol->value.integer.value[0] = 1;
  1881. else
  1882. ucontrol->value.integer.value[0] = 0;
  1883. mutex_unlock(&routing_lock);
  1884. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1885. ucontrol->value.integer.value[0]);
  1886. return 0;
  1887. }
  1888. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1889. struct snd_ctl_elem_value *ucontrol)
  1890. {
  1891. struct snd_soc_dapm_widget *widget =
  1892. snd_soc_dapm_kcontrol_widget(kcontrol);
  1893. struct soc_mixer_control *mc =
  1894. (struct soc_mixer_control *)kcontrol->private_value;
  1895. struct snd_soc_dapm_update *update = NULL;
  1896. if (ucontrol->value.integer.value[0]) {
  1897. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1898. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1899. update);
  1900. } else {
  1901. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1902. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1903. update);
  1904. }
  1905. return 1;
  1906. }
  1907. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1908. struct snd_ctl_elem_value *ucontrol)
  1909. {
  1910. struct soc_mixer_control *mc =
  1911. (struct soc_mixer_control *)kcontrol->private_value;
  1912. mutex_lock(&routing_lock);
  1913. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1914. ucontrol->value.integer.value[0] = 1;
  1915. else
  1916. ucontrol->value.integer.value[0] = 0;
  1917. mutex_unlock(&routing_lock);
  1918. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1919. ucontrol->value.integer.value[0]);
  1920. return 0;
  1921. }
  1922. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1923. struct snd_ctl_elem_value *ucontrol)
  1924. {
  1925. struct snd_soc_dapm_widget *widget =
  1926. snd_soc_dapm_kcontrol_widget(kcontrol);
  1927. struct soc_mixer_control *mc =
  1928. (struct soc_mixer_control *)kcontrol->private_value;
  1929. struct snd_soc_dapm_update *update = NULL;
  1930. if (ucontrol->value.integer.value[0]) {
  1931. mutex_lock(&routing_lock);
  1932. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1933. mutex_unlock(&routing_lock);
  1934. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1935. update);
  1936. } else {
  1937. mutex_lock(&routing_lock);
  1938. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1939. mutex_unlock(&routing_lock);
  1940. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1941. update);
  1942. }
  1943. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1944. ucontrol->value.integer.value[0]);
  1945. return 1;
  1946. }
  1947. /*
  1948. * Return the mapping between port ID and backend ID to enable the AFE callback
  1949. * to determine the acdb_dev_id from the port id
  1950. */
  1951. int msm_pcm_get_be_id_from_port_id(int port_id)
  1952. {
  1953. int i;
  1954. int be_id = -EINVAL;
  1955. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1956. if (msm_bedais[i].port_id == port_id) {
  1957. be_id = i;
  1958. break;
  1959. }
  1960. }
  1961. return be_id;
  1962. }
  1963. /*
  1964. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1965. * correct AFE calibration information by comparing the header information.
  1966. */
  1967. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1968. {
  1969. int acdb_id = -EINVAL;
  1970. int i = 0;
  1971. int session;
  1972. int port_type = afe_get_port_type(port_id);
  1973. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1974. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1975. __func__, port_id, be_id, port_type);
  1976. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1977. session = SESSION_TYPE_TX;
  1978. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1979. session = SESSION_TYPE_RX;
  1980. } else {
  1981. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1982. acdb_id = -EINVAL;
  1983. goto exit;
  1984. }
  1985. if (be_id < 0) {
  1986. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1987. goto exit;
  1988. }
  1989. mutex_lock(&routing_lock);
  1990. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1991. MSM_FRONTEND_DAI_MAX);
  1992. if (i < MSM_FRONTEND_DAI_MAX)
  1993. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1994. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1995. __func__, i, session, be_id, acdb_id);
  1996. mutex_unlock(&routing_lock);
  1997. exit:
  1998. return acdb_id;
  1999. }
  2000. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2001. struct snd_ctl_elem_value *ucontrol)
  2002. {
  2003. ucontrol->value.integer.value[0] = fm_switch_enable;
  2004. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2005. ucontrol->value.integer.value[0]);
  2006. return 0;
  2007. }
  2008. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2009. struct snd_ctl_elem_value *ucontrol)
  2010. {
  2011. struct snd_soc_dapm_widget *widget =
  2012. snd_soc_dapm_kcontrol_widget(kcontrol);
  2013. struct snd_soc_dapm_update *update = NULL;
  2014. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2015. ucontrol->value.integer.value[0]);
  2016. if (ucontrol->value.integer.value[0])
  2017. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2018. update);
  2019. else
  2020. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2021. update);
  2022. fm_switch_enable = ucontrol->value.integer.value[0];
  2023. return 1;
  2024. }
  2025. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2026. struct snd_ctl_elem_value *ucontrol)
  2027. {
  2028. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2029. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2030. ucontrol->value.integer.value[0]);
  2031. return 0;
  2032. }
  2033. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2034. struct snd_ctl_elem_value *ucontrol)
  2035. {
  2036. struct snd_soc_dapm_widget *widget =
  2037. snd_soc_dapm_kcontrol_widget(kcontrol);
  2038. struct snd_soc_dapm_update *update = NULL;
  2039. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2040. ucontrol->value.integer.value[0]);
  2041. if (ucontrol->value.integer.value[0])
  2042. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2043. 1, update);
  2044. else
  2045. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2046. 0, update);
  2047. hfp_switch_enable = ucontrol->value.integer.value[0];
  2048. return 1;
  2049. }
  2050. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2051. struct snd_ctl_elem_value *ucontrol)
  2052. {
  2053. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2054. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2055. ucontrol->value.integer.value[0]);
  2056. return 0;
  2057. }
  2058. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2059. struct snd_ctl_elem_value *ucontrol)
  2060. {
  2061. struct snd_soc_dapm_widget *widget =
  2062. snd_soc_dapm_kcontrol_widget(kcontrol);
  2063. struct snd_soc_dapm_update *update = NULL;
  2064. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2065. ucontrol->value.integer.value[0]);
  2066. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2067. if (a2dp_switch_enable)
  2068. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2069. 1, update);
  2070. else
  2071. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2072. 0, update);
  2073. return 1;
  2074. }
  2075. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2076. struct snd_ctl_elem_value *ucontrol)
  2077. {
  2078. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2079. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2080. ucontrol->value.integer.value[0]);
  2081. return 0;
  2082. }
  2083. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2084. struct snd_ctl_elem_value *ucontrol)
  2085. {
  2086. struct snd_soc_dapm_widget *widget =
  2087. snd_soc_dapm_kcontrol_widget(kcontrol);
  2088. struct snd_soc_dapm_update *update = NULL;
  2089. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2090. ucontrol->value.integer.value[0]);
  2091. if (ucontrol->value.integer.value[0])
  2092. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2093. update);
  2094. else
  2095. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2096. update);
  2097. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2098. return 1;
  2099. }
  2100. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2101. struct snd_ctl_elem_value *ucontrol)
  2102. {
  2103. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2104. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2105. ucontrol->value.integer.value[0]);
  2106. return 0;
  2107. }
  2108. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. struct snd_soc_dapm_widget *widget =
  2112. snd_soc_dapm_kcontrol_widget(kcontrol);
  2113. struct snd_soc_dapm_update *update = NULL;
  2114. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2115. ucontrol->value.integer.value[0]);
  2116. if (ucontrol->value.integer.value[0])
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2118. update);
  2119. else
  2120. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2121. update);
  2122. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2123. return 1;
  2124. }
  2125. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2126. struct snd_ctl_elem_value *ucontrol)
  2127. {
  2128. ucontrol->value.integer.value[0] = usb_switch_enable;
  2129. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2130. ucontrol->value.integer.value[0]);
  2131. return 0;
  2132. }
  2133. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2134. struct snd_ctl_elem_value *ucontrol)
  2135. {
  2136. struct snd_soc_dapm_widget *widget =
  2137. snd_soc_dapm_kcontrol_widget(kcontrol);
  2138. struct snd_soc_dapm_update *update = NULL;
  2139. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2140. ucontrol->value.integer.value[0]);
  2141. if (ucontrol->value.integer.value[0])
  2142. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2143. 1, update);
  2144. else
  2145. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2146. 0, update);
  2147. usb_switch_enable = ucontrol->value.integer.value[0];
  2148. return 1;
  2149. }
  2150. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2151. struct snd_ctl_elem_value *ucontrol)
  2152. {
  2153. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2154. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2155. ucontrol->value.integer.value[0]);
  2156. return 0;
  2157. }
  2158. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2159. struct snd_ctl_elem_value *ucontrol)
  2160. {
  2161. struct snd_soc_dapm_widget *widget =
  2162. snd_soc_dapm_kcontrol_widget(kcontrol);
  2163. struct snd_soc_dapm_update *update = NULL;
  2164. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2165. ucontrol->value.integer.value[0]);
  2166. if (ucontrol->value.integer.value[0])
  2167. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2168. update);
  2169. else
  2170. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2171. update);
  2172. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2173. return 1;
  2174. }
  2175. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2176. struct snd_ctl_elem_value *ucontrol)
  2177. {
  2178. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2179. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2180. ucontrol->value.integer.value[0]);
  2181. return 0;
  2182. }
  2183. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2184. struct snd_ctl_elem_value *ucontrol)
  2185. {
  2186. struct snd_soc_dapm_widget *widget =
  2187. snd_soc_dapm_kcontrol_widget(kcontrol);
  2188. struct snd_soc_dapm_update *update = NULL;
  2189. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2190. ucontrol->value.integer.value[0]);
  2191. if (ucontrol->value.integer.value[0])
  2192. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2193. update);
  2194. else
  2195. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2196. update);
  2197. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2198. return 1;
  2199. }
  2200. static int msm_routing_get_tert_mi2s_switch_mixer(
  2201. struct snd_kcontrol *kcontrol,
  2202. struct snd_ctl_elem_value *ucontrol)
  2203. {
  2204. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2205. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2206. ucontrol->value.integer.value[0]);
  2207. return 0;
  2208. }
  2209. static int msm_routing_put_tert_mi2s_switch_mixer(
  2210. struct snd_kcontrol *kcontrol,
  2211. struct snd_ctl_elem_value *ucontrol)
  2212. {
  2213. struct snd_soc_dapm_widget *widget =
  2214. snd_soc_dapm_kcontrol_widget(kcontrol);
  2215. struct snd_soc_dapm_update *update = NULL;
  2216. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2217. ucontrol->value.integer.value[0]);
  2218. if (ucontrol->value.integer.value[0])
  2219. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2220. update);
  2221. else
  2222. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2223. update);
  2224. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2225. return 1;
  2226. }
  2227. static int msm_routing_get_quat_mi2s_switch_mixer(
  2228. struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2232. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2233. ucontrol->value.integer.value[0]);
  2234. return 0;
  2235. }
  2236. static int msm_routing_put_quat_mi2s_switch_mixer(
  2237. struct snd_kcontrol *kcontrol,
  2238. struct snd_ctl_elem_value *ucontrol)
  2239. {
  2240. struct snd_soc_dapm_widget *widget =
  2241. snd_soc_dapm_kcontrol_widget(kcontrol);
  2242. struct snd_soc_dapm_update *update = NULL;
  2243. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2244. ucontrol->value.integer.value[0]);
  2245. if (ucontrol->value.integer.value[0])
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2247. update);
  2248. else
  2249. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2250. update);
  2251. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2252. return 1;
  2253. }
  2254. static int msm_routing_get_quin_mi2s_switch_mixer(
  2255. struct snd_kcontrol *kcontrol,
  2256. struct snd_ctl_elem_value *ucontrol)
  2257. {
  2258. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2259. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2260. ucontrol->value.integer.value[0]);
  2261. return 0;
  2262. }
  2263. static int msm_routing_put_quin_mi2s_switch_mixer(
  2264. struct snd_kcontrol *kcontrol,
  2265. struct snd_ctl_elem_value *ucontrol)
  2266. {
  2267. struct snd_soc_dapm_widget *widget =
  2268. snd_soc_dapm_kcontrol_widget(kcontrol);
  2269. struct snd_soc_dapm_update *update = NULL;
  2270. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2271. ucontrol->value.integer.value[0]);
  2272. if (ucontrol->value.integer.value[0])
  2273. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2274. update);
  2275. else
  2276. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2277. update);
  2278. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2279. return 1;
  2280. }
  2281. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2282. struct snd_ctl_elem_value *ucontrol)
  2283. {
  2284. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2285. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2286. ucontrol->value.integer.value[0]);
  2287. return 0;
  2288. }
  2289. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2290. struct snd_ctl_elem_value *ucontrol)
  2291. {
  2292. struct snd_soc_dapm_widget *widget =
  2293. snd_soc_dapm_kcontrol_widget(kcontrol);
  2294. struct snd_soc_dapm_update *update = NULL;
  2295. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2296. ucontrol->value.integer.value[0]);
  2297. if (ucontrol->value.integer.value[0])
  2298. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2299. update);
  2300. else
  2301. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2302. update);
  2303. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2304. return 1;
  2305. }
  2306. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. ucontrol->value.integer.value[0] = lsm_port_index;
  2310. return 0;
  2311. }
  2312. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2313. struct snd_ctl_elem_value *ucontrol)
  2314. {
  2315. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2316. int mux = ucontrol->value.enumerated.item[0];
  2317. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2318. if (mux >= e->items) {
  2319. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2320. return -EINVAL;
  2321. }
  2322. pr_debug("%s: LSM enable %ld\n", __func__,
  2323. ucontrol->value.integer.value[0]);
  2324. switch (ucontrol->value.integer.value[0]) {
  2325. case 1:
  2326. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2327. break;
  2328. case 2:
  2329. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2330. break;
  2331. case 3:
  2332. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2333. break;
  2334. case 4:
  2335. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2336. break;
  2337. case 5:
  2338. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2339. break;
  2340. case 6:
  2341. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2342. break;
  2343. case 7:
  2344. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2345. break;
  2346. case 8:
  2347. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2348. break;
  2349. case 9:
  2350. lsm_port = ADM_LSM_PORT_ID;
  2351. break;
  2352. case 10:
  2353. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2354. break;
  2355. case 11:
  2356. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2357. break;
  2358. case 12:
  2359. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2360. break;
  2361. default:
  2362. pr_err("Default lsm port");
  2363. break;
  2364. }
  2365. set_lsm_port(lsm_port);
  2366. lsm_port_index = ucontrol->value.integer.value[0];
  2367. return 0;
  2368. }
  2369. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2370. struct snd_ctl_elem_value *ucontrol)
  2371. {
  2372. int i;
  2373. u16 port_id;
  2374. enum afe_mad_type mad_type;
  2375. pr_debug("%s: enter\n", __func__);
  2376. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2377. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2378. strlen(lsm_port_text[i])))
  2379. break;
  2380. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2381. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2382. return -EINVAL;
  2383. }
  2384. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2385. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2386. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2387. strlen(lsm_port_text[7])))
  2388. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2389. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2390. strlen(lsm_port_text[8])))
  2391. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2392. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2393. strlen(lsm_port_text[10])))
  2394. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2395. mad_type = afe_port_get_mad_type(port_id);
  2396. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2397. mad_type);
  2398. switch (mad_type) {
  2399. case MAD_HW_NONE:
  2400. ucontrol->value.integer.value[0] = MADNONE;
  2401. break;
  2402. case MAD_HW_AUDIO:
  2403. ucontrol->value.integer.value[0] = MADAUDIO;
  2404. break;
  2405. case MAD_HW_BEACON:
  2406. ucontrol->value.integer.value[0] = MADBEACON;
  2407. break;
  2408. case MAD_HW_ULTRASOUND:
  2409. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2410. break;
  2411. case MAD_SW_AUDIO:
  2412. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2413. break;
  2414. default:
  2415. WARN(1, "Unknown\n");
  2416. return -EINVAL;
  2417. }
  2418. return 0;
  2419. }
  2420. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2421. struct snd_ctl_elem_value *ucontrol)
  2422. {
  2423. int i;
  2424. u16 port_id;
  2425. enum afe_mad_type mad_type;
  2426. pr_debug("%s: enter\n", __func__);
  2427. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2428. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2429. strlen(lsm_port_text[i])))
  2430. break;
  2431. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2432. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2433. return -EINVAL;
  2434. }
  2435. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2436. switch (ucontrol->value.integer.value[0]) {
  2437. case MADNONE:
  2438. mad_type = MAD_HW_NONE;
  2439. break;
  2440. case MADAUDIO:
  2441. mad_type = MAD_HW_AUDIO;
  2442. break;
  2443. case MADBEACON:
  2444. mad_type = MAD_HW_BEACON;
  2445. break;
  2446. case MADULTRASOUND:
  2447. mad_type = MAD_HW_ULTRASOUND;
  2448. break;
  2449. case MADSWAUDIO:
  2450. mad_type = MAD_SW_AUDIO;
  2451. break;
  2452. default:
  2453. WARN(1, "Unknown\n");
  2454. return -EINVAL;
  2455. }
  2456. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2457. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2458. strlen(lsm_port_text[7])))
  2459. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2460. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2461. strlen(lsm_port_text[8])))
  2462. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2463. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2464. strlen(lsm_port_text[10])))
  2465. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2466. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2467. mad_type);
  2468. return afe_port_set_mad_type(port_id, mad_type);
  2469. }
  2470. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2471. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2472. adm_override_chs_text);
  2473. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2474. {
  2475. int backend_id;
  2476. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2477. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2478. } else {
  2479. pr_err("%s: unsupported backend id: %s",
  2480. __func__, kcontrol->id.name);
  2481. return -EINVAL;
  2482. }
  2483. return backend_id;
  2484. }
  2485. static int msm_routing_adm_channel_config_get(
  2486. struct snd_kcontrol *kcontrol,
  2487. struct snd_ctl_elem_value *ucontrol)
  2488. {
  2489. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2490. if (backend_id >= 0) {
  2491. mutex_lock(&routing_lock);
  2492. ucontrol->value.integer.value[0] =
  2493. msm_bedais[backend_id].adm_override_ch;
  2494. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2495. ucontrol->value.integer.value[0], backend_id);
  2496. mutex_unlock(&routing_lock);
  2497. }
  2498. return 0;
  2499. }
  2500. static int msm_routing_adm_channel_config_put(
  2501. struct snd_kcontrol *kcontrol,
  2502. struct snd_ctl_elem_value *ucontrol)
  2503. {
  2504. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2505. if (backend_id >= 0) {
  2506. mutex_lock(&routing_lock);
  2507. msm_bedais[backend_id].adm_override_ch =
  2508. ucontrol->value.integer.value[0];
  2509. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2510. __func__, backend_id,
  2511. msm_bedais[backend_id].adm_override_ch);
  2512. mutex_unlock(&routing_lock);
  2513. }
  2514. return 0;
  2515. }
  2516. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2517. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2518. msm_routing_adm_channel_config_get,
  2519. msm_routing_adm_channel_config_put),
  2520. };
  2521. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2522. struct snd_ctl_elem_value *ucontrol)
  2523. {
  2524. mutex_lock(&routing_lock);
  2525. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2526. mutex_unlock(&routing_lock);
  2527. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2528. ucontrol->value.integer.value[0]);
  2529. return 0;
  2530. };
  2531. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2532. struct snd_ctl_elem_value *ucontrol)
  2533. {
  2534. struct aanc_data aanc_info;
  2535. mutex_lock(&routing_lock);
  2536. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2537. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2538. ucontrol->value.integer.value[0]);
  2539. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2540. if (ucontrol->value.integer.value[0] == 0) {
  2541. aanc_info.aanc_active = false;
  2542. aanc_info.aanc_tx_port = 0;
  2543. aanc_info.aanc_rx_port = 0;
  2544. } else {
  2545. aanc_info.aanc_active = true;
  2546. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2547. aanc_info.aanc_tx_port =
  2548. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2549. }
  2550. afe_set_aanc_info(&aanc_info);
  2551. mutex_unlock(&routing_lock);
  2552. return 0;
  2553. };
  2554. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. int idx = 0, shift = 0;
  2558. struct soc_mixer_control *mc =
  2559. (struct soc_mixer_control *)kcontrol->private_value;
  2560. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2561. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2562. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2563. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2564. return -EINVAL;
  2565. }
  2566. if (test_bit(shift,
  2567. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2568. ucontrol->value.integer.value[0] = 1;
  2569. else
  2570. ucontrol->value.integer.value[0] = 0;
  2571. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2572. ucontrol->value.integer.value[0]);
  2573. return 0;
  2574. }
  2575. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2576. struct snd_ctl_elem_value *ucontrol)
  2577. {
  2578. int idx = 0, shift = 0;
  2579. struct soc_mixer_control *mc =
  2580. (struct soc_mixer_control *)kcontrol->private_value;
  2581. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2582. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2583. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2584. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2585. return -EINVAL;
  2586. }
  2587. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2588. __func__, mc->shift, mc->rshift,
  2589. ucontrol->value.integer.value[0], idx, shift);
  2590. if (ucontrol->value.integer.value[0]) {
  2591. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2592. msm_bedais[mc->rshift].port_id);
  2593. set_bit(shift,
  2594. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2595. } else {
  2596. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2597. msm_bedais[mc->rshift].port_id);
  2598. clear_bit(shift,
  2599. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2600. }
  2601. return 1;
  2602. }
  2603. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_value *ucontrol)
  2605. {
  2606. u16 fe_id = 0;
  2607. fe_id = ((struct soc_mixer_control *)
  2608. kcontrol->private_value)->shift;
  2609. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2610. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2611. return -EINVAL;
  2612. }
  2613. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2614. return 0;
  2615. }
  2616. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2617. struct snd_ctl_elem_value *ucontrol)
  2618. {
  2619. u16 fe_id = 0;
  2620. fe_id = ((struct soc_mixer_control *)
  2621. kcontrol->private_value)->shift;
  2622. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2623. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2624. return -EINVAL;
  2625. }
  2626. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2627. return 1;
  2628. }
  2629. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2630. struct snd_ctl_elem_value *ucontrol)
  2631. {
  2632. u16 fe_id = 0;
  2633. fe_id = ((struct soc_multi_mixer_control *)
  2634. kcontrol->private_value)->shift;
  2635. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2636. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2637. return -EINVAL;
  2638. }
  2639. ucontrol->value.integer.value[0] =
  2640. channel_mixer[fe_id].output_channel;
  2641. return 0;
  2642. }
  2643. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2644. struct snd_ctl_elem_value *ucontrol)
  2645. {
  2646. u16 fe_id = 0;
  2647. fe_id = ((struct soc_multi_mixer_control *)
  2648. kcontrol->private_value)->shift;
  2649. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2650. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2651. return -EINVAL;
  2652. }
  2653. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2654. fe_id,
  2655. (unsigned int)(ucontrol->value.integer.value[0]));
  2656. channel_mixer[fe_id].output_channel =
  2657. (unsigned int)(ucontrol->value.integer.value[0]);
  2658. return 1;
  2659. }
  2660. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2661. /* If new backend is added, need update this array */
  2662. static const char *const be_name[] = {
  2663. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2664. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2665. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2666. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2667. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2668. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2669. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2670. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2671. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2672. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2673. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2674. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2675. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2676. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2677. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2678. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2679. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2680. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2681. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2682. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2683. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2684. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2685. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2686. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2687. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2688. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2689. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2690. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2691. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2692. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2693. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2694. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2695. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2696. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2697. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2698. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2699. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2700. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2701. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2702. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2703. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2704. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2705. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2706. };
  2707. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2708. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2709. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2710. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2711. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2712. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2713. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2714. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2715. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2716. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2717. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2718. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2719. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2720. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2721. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2722. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2723. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2724. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2725. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2726. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2727. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2728. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2729. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2730. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2731. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2732. unsigned int channels,
  2733. unsigned int items, const char *const names[])
  2734. {
  2735. if (uinfo->value.enumerated.item >= items)
  2736. uinfo->value.enumerated.item = items - 1;
  2737. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2738. sizeof(uinfo->value.enumerated.name),
  2739. "ALSA: too long item name '%s'\n",
  2740. names[uinfo->value.enumerated.item]);
  2741. strlcpy(uinfo->value.enumerated.name,
  2742. names[uinfo->value.enumerated.item],
  2743. sizeof(uinfo->value.enumerated.name));
  2744. return 0;
  2745. }
  2746. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2747. struct snd_ctl_elem_info *uinfo)
  2748. {
  2749. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2750. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2751. uinfo->count = 1;
  2752. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2753. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2754. return 0;
  2755. }
  2756. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2757. struct snd_ctl_elem_value *ucontrol)
  2758. {
  2759. u16 fe_id = 0;
  2760. fe_id = ((struct soc_enum *)
  2761. kcontrol->private_value)->shift_l;
  2762. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2763. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2764. return -EINVAL;
  2765. }
  2766. pr_debug("%s: FE %d %s\n", __func__,
  2767. fe_id,
  2768. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2769. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2770. return 0;
  2771. }
  2772. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2773. struct snd_ctl_elem_value *ucontrol)
  2774. {
  2775. u16 fe_id = 0;
  2776. fe_id = ((struct soc_enum *)
  2777. kcontrol->private_value)->shift_l;
  2778. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2779. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2780. return -EINVAL;
  2781. }
  2782. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2783. pr_debug("%s: %s FE %d\n", __func__,
  2784. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2785. fe_id);
  2786. return 0;
  2787. }
  2788. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2789. struct snd_ctl_elem_info *uinfo)
  2790. {
  2791. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2792. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2793. uinfo->count = 1;
  2794. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2795. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2796. return 0;
  2797. }
  2798. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2799. struct snd_ctl_elem_value *ucontrol)
  2800. {
  2801. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2802. u16 fe_id = 0, in_ch = 0;
  2803. fe_id = e->shift_l;
  2804. in_ch = e->shift_r;
  2805. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2806. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2807. return -EINVAL;
  2808. }
  2809. if (in_ch >= ADM_MAX_CHANNELS) {
  2810. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2811. return -EINVAL;
  2812. }
  2813. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2814. return 1;
  2815. }
  2816. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2817. struct snd_ctl_elem_value *ucontrol)
  2818. {
  2819. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2820. u16 fe_id = 0, in_ch = 0;
  2821. fe_id = e->shift_l;
  2822. in_ch = e->shift_r;
  2823. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2824. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2825. return -EINVAL;
  2826. }
  2827. if (in_ch >= ADM_MAX_CHANNELS) {
  2828. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2829. return -EINVAL;
  2830. }
  2831. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2832. return 1;
  2833. }
  2834. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_info *uinfo)
  2836. {
  2837. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2838. uinfo->count = ADM_MAX_CHANNELS;
  2839. uinfo->value.integer.min = 0;
  2840. uinfo->value.integer.max = WEIGHT_0_DB;
  2841. return 0;
  2842. }
  2843. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2844. struct snd_ctl_elem_value *ucontrol)
  2845. {
  2846. u16 fe_id = 0, out_ch = 0;
  2847. int i, weight;
  2848. fe_id = ((struct soc_multi_mixer_control *)
  2849. kcontrol->private_value)->shift;
  2850. out_ch = ((struct soc_multi_mixer_control *)
  2851. kcontrol->private_value)->rshift;
  2852. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2853. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2854. return -EINVAL;
  2855. }
  2856. if (out_ch >= ADM_MAX_CHANNELS) {
  2857. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2858. return -EINVAL;
  2859. }
  2860. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2861. __func__, fe_id,
  2862. ucontrol->value.integer.value[0],
  2863. ucontrol->value.integer.value[1],
  2864. ucontrol->value.integer.value[2],
  2865. ucontrol->value.integer.value[3],
  2866. ucontrol->value.integer.value[4],
  2867. ucontrol->value.integer.value[5],
  2868. ucontrol->value.integer.value[6],
  2869. ucontrol->value.integer.value[7]);
  2870. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2871. weight = ucontrol->value.integer.value[i];
  2872. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2873. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2874. __func__, fe_id, out_ch, i,
  2875. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2876. }
  2877. return 0;
  2878. }
  2879. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2880. struct snd_ctl_elem_value *ucontrol)
  2881. {
  2882. u16 fe_id = 0, out_ch = 0;
  2883. int i;
  2884. fe_id = ((struct soc_multi_mixer_control *)
  2885. kcontrol->private_value)->shift;
  2886. out_ch = ((struct soc_multi_mixer_control *)
  2887. kcontrol->private_value)->rshift;
  2888. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2889. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2890. return -EINVAL;
  2891. }
  2892. if (out_ch >= ADM_MAX_CHANNELS) {
  2893. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2894. return -EINVAL;
  2895. }
  2896. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2897. ucontrol->value.integer.value[i] =
  2898. channel_mixer[fe_id].channel_weight[out_ch][i];
  2899. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2900. __func__, fe_id,
  2901. ucontrol->value.integer.value[0],
  2902. ucontrol->value.integer.value[1],
  2903. ucontrol->value.integer.value[2],
  2904. ucontrol->value.integer.value[3],
  2905. ucontrol->value.integer.value[4],
  2906. ucontrol->value.integer.value[5],
  2907. ucontrol->value.integer.value[6],
  2908. ucontrol->value.integer.value[7]);
  2909. return 0;
  2910. }
  2911. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2912. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2913. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2914. msm_pcm_get_channel_rule_index,
  2915. msm_pcm_put_channel_rule_index),
  2916. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2917. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2918. msm_pcm_get_channel_rule_index,
  2919. msm_pcm_put_channel_rule_index),
  2920. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2921. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2922. msm_pcm_get_channel_rule_index,
  2923. msm_pcm_put_channel_rule_index),
  2924. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2925. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2926. msm_pcm_get_channel_rule_index,
  2927. msm_pcm_put_channel_rule_index),
  2928. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2929. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2930. msm_pcm_get_channel_rule_index,
  2931. msm_pcm_put_channel_rule_index),
  2932. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2933. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2934. msm_pcm_get_channel_rule_index,
  2935. msm_pcm_put_channel_rule_index),
  2936. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2937. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2938. msm_pcm_get_out_chs,
  2939. msm_pcm_put_out_chs),
  2940. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2941. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2942. msm_pcm_get_out_chs,
  2943. msm_pcm_put_out_chs),
  2944. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2945. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2946. msm_pcm_get_out_chs,
  2947. msm_pcm_put_out_chs),
  2948. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2949. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2950. msm_pcm_get_out_chs,
  2951. msm_pcm_put_out_chs),
  2952. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2953. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2954. msm_pcm_get_out_chs,
  2955. msm_pcm_put_out_chs),
  2956. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2957. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2958. msm_pcm_get_out_chs,
  2959. msm_pcm_put_out_chs),
  2960. {
  2961. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2962. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2963. .name = "MultiMedia1 Channel Mixer",
  2964. .info = msm_pcm_channel_mixer_info,
  2965. .get = msm_pcm_channel_mixer_get,
  2966. .put = msm_pcm_channel_mixer_put,
  2967. .private_value = (unsigned long)&(mm1_channel_mux)
  2968. },
  2969. {
  2970. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2971. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2972. .name = "MultiMedia2 Channel Mixer",
  2973. .info = msm_pcm_channel_mixer_info,
  2974. .get = msm_pcm_channel_mixer_get,
  2975. .put = msm_pcm_channel_mixer_put,
  2976. .private_value = (unsigned long)&(mm2_channel_mux)
  2977. },
  2978. {
  2979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2981. .name = "MultiMedia3 Channel Mixer",
  2982. .info = msm_pcm_channel_mixer_info,
  2983. .get = msm_pcm_channel_mixer_get,
  2984. .put = msm_pcm_channel_mixer_put,
  2985. .private_value = (unsigned long)&(mm3_channel_mux)
  2986. },
  2987. {
  2988. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2989. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2990. .name = "MultiMedia4 Channel Mixer",
  2991. .info = msm_pcm_channel_mixer_info,
  2992. .get = msm_pcm_channel_mixer_get,
  2993. .put = msm_pcm_channel_mixer_put,
  2994. .private_value = (unsigned long)&(mm4_channel_mux)
  2995. },
  2996. {
  2997. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2999. .name = "MultiMedia1 Output Channel1",
  3000. .info = msm_pcm_channel_weight_info,
  3001. .get = msm_pcm_channel_weight_get,
  3002. .put = msm_pcm_channel_weight_put,
  3003. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3004. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3005. },
  3006. {
  3007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3008. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3009. .name = "MultiMedia1 Output Channel2",
  3010. .info = msm_pcm_channel_weight_info,
  3011. .get = msm_pcm_channel_weight_get,
  3012. .put = msm_pcm_channel_weight_put,
  3013. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3014. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3015. },
  3016. {
  3017. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3018. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3019. .name = "MultiMedia1 Output Channel3",
  3020. .info = msm_pcm_channel_weight_info,
  3021. .get = msm_pcm_channel_weight_get,
  3022. .put = msm_pcm_channel_weight_put,
  3023. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3024. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3025. },
  3026. {
  3027. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3029. .name = "MultiMedia1 Output Channel4",
  3030. .info = msm_pcm_channel_weight_info,
  3031. .get = msm_pcm_channel_weight_get,
  3032. .put = msm_pcm_channel_weight_put,
  3033. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3034. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3035. },
  3036. {
  3037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3038. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3039. .name = "MultiMedia1 Output Channel5",
  3040. .info = msm_pcm_channel_weight_info,
  3041. .get = msm_pcm_channel_weight_get,
  3042. .put = msm_pcm_channel_weight_put,
  3043. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3044. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3045. },
  3046. {
  3047. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3048. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3049. .name = "MultiMedia1 Output Channel6",
  3050. .info = msm_pcm_channel_weight_info,
  3051. .get = msm_pcm_channel_weight_get,
  3052. .put = msm_pcm_channel_weight_put,
  3053. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3054. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3055. },
  3056. {
  3057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3059. .name = "MultiMedia1 Output Channel7",
  3060. .info = msm_pcm_channel_weight_info,
  3061. .get = msm_pcm_channel_weight_get,
  3062. .put = msm_pcm_channel_weight_put,
  3063. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3064. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3065. },
  3066. {
  3067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3068. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3069. .name = "MultiMedia1 Output Channel8",
  3070. .info = msm_pcm_channel_weight_info,
  3071. .get = msm_pcm_channel_weight_get,
  3072. .put = msm_pcm_channel_weight_put,
  3073. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3074. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3075. },
  3076. {
  3077. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3078. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3079. .name = "MultiMedia2 Output Channel1",
  3080. .info = msm_pcm_channel_weight_info,
  3081. .get = msm_pcm_channel_weight_get,
  3082. .put = msm_pcm_channel_weight_put,
  3083. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3084. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3085. },
  3086. {
  3087. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3089. .name = "MultiMedia2 Output Channel2",
  3090. .info = msm_pcm_channel_weight_info,
  3091. .get = msm_pcm_channel_weight_get,
  3092. .put = msm_pcm_channel_weight_put,
  3093. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3094. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3095. },
  3096. {
  3097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3098. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3099. .name = "MultiMedia2 Output Channel3",
  3100. .info = msm_pcm_channel_weight_info,
  3101. .get = msm_pcm_channel_weight_get,
  3102. .put = msm_pcm_channel_weight_put,
  3103. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3104. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3105. },
  3106. {
  3107. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3108. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3109. .name = "MultiMedia3 Output Channel1",
  3110. .info = msm_pcm_channel_weight_info,
  3111. .get = msm_pcm_channel_weight_get,
  3112. .put = msm_pcm_channel_weight_put,
  3113. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3114. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3115. },
  3116. {
  3117. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3119. .name = "MultiMedia3 Output Channel2",
  3120. .info = msm_pcm_channel_weight_info,
  3121. .get = msm_pcm_channel_weight_get,
  3122. .put = msm_pcm_channel_weight_put,
  3123. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3124. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3125. },
  3126. {
  3127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3128. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3129. .name = "MultiMedia1 Channel1",
  3130. .info = msm_pcm_channel_input_be_info,
  3131. .get = msm_pcm_channel_input_be_get,
  3132. .put = msm_pcm_channel_input_be_put,
  3133. .private_value = (unsigned long)&(mm1_ch1_enum)
  3134. },
  3135. {
  3136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3138. .name = "MultiMedia1 Channel2",
  3139. .info = msm_pcm_channel_input_be_info,
  3140. .get = msm_pcm_channel_input_be_get,
  3141. .put = msm_pcm_channel_input_be_put,
  3142. .private_value = (unsigned long)&(mm1_ch2_enum)
  3143. },
  3144. {
  3145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3147. .name = "MultiMedia1 Channel3",
  3148. .info = msm_pcm_channel_input_be_info,
  3149. .get = msm_pcm_channel_input_be_get,
  3150. .put = msm_pcm_channel_input_be_put,
  3151. .private_value = (unsigned long)&(mm1_ch3_enum)
  3152. },
  3153. {
  3154. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3155. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3156. .name = "MultiMedia1 Channel4",
  3157. .info = msm_pcm_channel_input_be_info,
  3158. .get = msm_pcm_channel_input_be_get,
  3159. .put = msm_pcm_channel_input_be_put,
  3160. .private_value = (unsigned long)&(mm1_ch4_enum)
  3161. },
  3162. {
  3163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3164. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3165. .name = "MultiMedia1 Channel5",
  3166. .info = msm_pcm_channel_input_be_info,
  3167. .get = msm_pcm_channel_input_be_get,
  3168. .put = msm_pcm_channel_input_be_put,
  3169. .private_value = (unsigned long)&(mm1_ch5_enum)
  3170. },
  3171. {
  3172. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3173. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3174. .name = "MultiMedia1 Channel6",
  3175. .info = msm_pcm_channel_input_be_info,
  3176. .get = msm_pcm_channel_input_be_get,
  3177. .put = msm_pcm_channel_input_be_put,
  3178. .private_value = (unsigned long)&(mm1_ch6_enum)
  3179. },
  3180. {
  3181. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3182. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3183. .name = "MultiMedia1 Channel7",
  3184. .info = msm_pcm_channel_input_be_info,
  3185. .get = msm_pcm_channel_input_be_get,
  3186. .put = msm_pcm_channel_input_be_put,
  3187. .private_value = (unsigned long)&(mm1_ch7_enum)
  3188. },
  3189. {
  3190. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3191. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3192. .name = "MultiMedia1 Channel8",
  3193. .info = msm_pcm_channel_input_be_info,
  3194. .get = msm_pcm_channel_input_be_get,
  3195. .put = msm_pcm_channel_input_be_put,
  3196. .private_value = (unsigned long)&(mm1_ch8_enum)
  3197. },
  3198. };
  3199. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_value *ucontrol)
  3201. {
  3202. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3203. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3204. ucontrol->value.integer.value[0]);
  3205. return 0;
  3206. }
  3207. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3211. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3212. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3213. return 0;
  3214. }
  3215. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3216. "Four", "Five", "Six", "Seven", "Eight"};
  3217. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3218. struct snd_ctl_elem_value *ucontrol)
  3219. {
  3220. switch (msm_ec_ref_bit_format) {
  3221. case SNDRV_PCM_FORMAT_S24_LE:
  3222. ucontrol->value.integer.value[0] = 2;
  3223. break;
  3224. case SNDRV_PCM_FORMAT_S16_LE:
  3225. ucontrol->value.integer.value[0] = 1;
  3226. break;
  3227. default:
  3228. ucontrol->value.integer.value[0] = 0;
  3229. break;
  3230. }
  3231. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3232. __func__, ucontrol->value.integer.value[0]);
  3233. return 0;
  3234. }
  3235. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3236. struct snd_ctl_elem_value *ucontrol)
  3237. {
  3238. u16 bit_width = 0;
  3239. switch (ucontrol->value.integer.value[0]) {
  3240. case 2:
  3241. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3242. break;
  3243. case 1:
  3244. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3245. break;
  3246. default:
  3247. msm_ec_ref_bit_format = 0;
  3248. break;
  3249. }
  3250. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3251. bit_width = 16;
  3252. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3253. bit_width = 24;
  3254. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3255. __func__, msm_ec_ref_bit_format);
  3256. adm_ec_ref_rx_bit_width(bit_width);
  3257. return 0;
  3258. }
  3259. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3260. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3261. struct snd_ctl_elem_value *ucontrol)
  3262. {
  3263. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3264. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3265. __func__, ucontrol->value.integer.value[0]);
  3266. return 0;
  3267. }
  3268. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3269. struct snd_ctl_elem_value *ucontrol)
  3270. {
  3271. switch (ucontrol->value.integer.value[0]) {
  3272. case 0:
  3273. msm_ec_ref_sampling_rate = 0;
  3274. break;
  3275. case 1:
  3276. msm_ec_ref_sampling_rate = 8000;
  3277. break;
  3278. case 2:
  3279. msm_ec_ref_sampling_rate = 16000;
  3280. break;
  3281. case 3:
  3282. msm_ec_ref_sampling_rate = 32000;
  3283. break;
  3284. case 4:
  3285. msm_ec_ref_sampling_rate = 44100;
  3286. break;
  3287. case 5:
  3288. msm_ec_ref_sampling_rate = 48000;
  3289. break;
  3290. case 6:
  3291. msm_ec_ref_sampling_rate = 96000;
  3292. break;
  3293. case 7:
  3294. msm_ec_ref_sampling_rate = 192000;
  3295. break;
  3296. case 8:
  3297. msm_ec_ref_sampling_rate = 384000;
  3298. break;
  3299. default:
  3300. msm_ec_ref_sampling_rate = 48000;
  3301. break;
  3302. }
  3303. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3304. __func__, msm_ec_ref_sampling_rate);
  3305. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3306. return 0;
  3307. }
  3308. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3309. "32000", "44100", "48000", "96000", "192000", "384000"};
  3310. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3311. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3312. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3313. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3314. };
  3315. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3316. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3317. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3318. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3319. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3320. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3321. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3322. };
  3323. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3324. struct snd_ctl_elem_value *ucontrol)
  3325. {
  3326. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3327. mutex_lock(&routing_lock);
  3328. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3329. mutex_unlock(&routing_lock);
  3330. return 0;
  3331. }
  3332. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3333. struct snd_ctl_elem_value *ucontrol)
  3334. {
  3335. int ec_ref_port_id;
  3336. struct snd_soc_dapm_widget *widget =
  3337. snd_soc_dapm_kcontrol_widget(kcontrol);
  3338. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3339. struct snd_soc_dapm_update *update = NULL;
  3340. mutex_lock(&routing_lock);
  3341. switch (ucontrol->value.integer.value[0]) {
  3342. case 0:
  3343. msm_route_ec_ref_rx = 0;
  3344. ec_ref_port_id = AFE_PORT_INVALID;
  3345. break;
  3346. case 1:
  3347. msm_route_ec_ref_rx = 1;
  3348. ec_ref_port_id = SLIMBUS_0_RX;
  3349. break;
  3350. case 2:
  3351. msm_route_ec_ref_rx = 2;
  3352. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3353. break;
  3354. case 3:
  3355. msm_route_ec_ref_rx = 3;
  3356. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3357. break;
  3358. case 4:
  3359. msm_route_ec_ref_rx = 4;
  3360. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3361. break;
  3362. case 5:
  3363. msm_route_ec_ref_rx = 5;
  3364. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3365. break;
  3366. case 6:
  3367. msm_route_ec_ref_rx = 6;
  3368. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3369. break;
  3370. case 7:
  3371. msm_route_ec_ref_rx = 7;
  3372. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3373. break;
  3374. case 9:
  3375. msm_route_ec_ref_rx = 9;
  3376. ec_ref_port_id = SLIMBUS_5_RX;
  3377. break;
  3378. case 10:
  3379. msm_route_ec_ref_rx = 10;
  3380. ec_ref_port_id = SLIMBUS_1_TX;
  3381. break;
  3382. case 11:
  3383. msm_route_ec_ref_rx = 11;
  3384. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3385. break;
  3386. case 12:
  3387. msm_route_ec_ref_rx = 12;
  3388. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3389. break;
  3390. case 13:
  3391. msm_route_ec_ref_rx = 13;
  3392. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3393. break;
  3394. case 14:
  3395. msm_route_ec_ref_rx = 14;
  3396. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3397. break;
  3398. case 15:
  3399. msm_route_ec_ref_rx = 15;
  3400. ec_ref_port_id = SLIMBUS_6_RX;
  3401. break;
  3402. case 16:
  3403. msm_route_ec_ref_rx = 16;
  3404. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3405. break;
  3406. case 17:
  3407. msm_route_ec_ref_rx = 17;
  3408. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3409. break;
  3410. case 18:
  3411. msm_route_ec_ref_rx = 18;
  3412. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3413. break;
  3414. case 19:
  3415. msm_route_ec_ref_rx = 19;
  3416. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3417. break;
  3418. case 20:
  3419. msm_route_ec_ref_rx = 20;
  3420. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3421. break;
  3422. case 21:
  3423. msm_route_ec_ref_rx = 21;
  3424. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3425. break;
  3426. case 22:
  3427. msm_route_ec_ref_rx = 22;
  3428. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3429. break;
  3430. case 23:
  3431. msm_route_ec_ref_rx = 23;
  3432. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3433. break;
  3434. case 24:
  3435. msm_route_ec_ref_rx = 24;
  3436. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3437. break;
  3438. case 25:
  3439. msm_route_ec_ref_rx = 25;
  3440. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3441. break;
  3442. case 26:
  3443. msm_route_ec_ref_rx = 26;
  3444. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3445. break;
  3446. case 27:
  3447. msm_route_ec_ref_rx = 27;
  3448. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3449. break;
  3450. case 28:
  3451. msm_route_ec_ref_rx = 28;
  3452. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3453. break;
  3454. default:
  3455. msm_route_ec_ref_rx = 0; /* NONE */
  3456. pr_err("%s EC ref rx %ld not valid\n",
  3457. __func__, ucontrol->value.integer.value[0]);
  3458. ec_ref_port_id = AFE_PORT_INVALID;
  3459. break;
  3460. }
  3461. adm_ec_ref_rx_id(ec_ref_port_id);
  3462. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3463. __func__, msm_route_ec_ref_rx);
  3464. mutex_unlock(&routing_lock);
  3465. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3466. msm_route_ec_ref_rx, e, update);
  3467. return 0;
  3468. }
  3469. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3470. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3471. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3472. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3473. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3474. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3475. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3476. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3477. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2"
  3478. };
  3479. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3480. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3481. };
  3482. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3483. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3484. msm_route_ec_ref_rx_enum[0],
  3485. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3486. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3487. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3488. msm_route_ec_ref_rx_enum[0],
  3489. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3490. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3491. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3492. msm_route_ec_ref_rx_enum[0],
  3493. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3494. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3495. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3496. msm_route_ec_ref_rx_enum[0],
  3497. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3498. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3499. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3500. msm_route_ec_ref_rx_enum[0],
  3501. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3502. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3503. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3504. msm_route_ec_ref_rx_enum[0],
  3505. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3506. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3507. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3508. msm_route_ec_ref_rx_enum[0],
  3509. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3510. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3511. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3512. msm_route_ec_ref_rx_enum[0],
  3513. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3514. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3515. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3516. msm_route_ec_ref_rx_enum[0],
  3517. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3518. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3519. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3520. msm_route_ec_ref_rx_enum[0],
  3521. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3522. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3523. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3524. msm_route_ec_ref_rx_enum[0],
  3525. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3526. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3527. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3528. msm_route_ec_ref_rx_enum[0],
  3529. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3530. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3531. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3532. msm_route_ec_ref_rx_enum[0],
  3533. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3534. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3535. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3536. msm_route_ec_ref_rx_enum[0],
  3537. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3538. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3539. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3540. msm_route_ec_ref_rx_enum[0],
  3541. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3542. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3543. struct snd_ctl_elem_value *ucontrol)
  3544. {
  3545. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3546. mutex_lock(&routing_lock);
  3547. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3548. mutex_unlock(&routing_lock);
  3549. return 0;
  3550. }
  3551. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3552. struct snd_ctl_elem_value *ucontrol)
  3553. {
  3554. struct snd_soc_dapm_widget *widget =
  3555. snd_soc_dapm_kcontrol_widget(kcontrol);
  3556. int mux = ucontrol->value.enumerated.item[0];
  3557. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3558. int ret = 1;
  3559. bool state = true;
  3560. uint16_t ext_ec_ref_port_id;
  3561. struct snd_soc_dapm_update *update = NULL;
  3562. if (mux >= e->items) {
  3563. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3564. return -EINVAL;
  3565. }
  3566. mutex_lock(&routing_lock);
  3567. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3568. switch (msm_route_ext_ec_ref) {
  3569. case EXT_EC_REF_PRI_MI2S_TX:
  3570. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3571. break;
  3572. case EXT_EC_REF_SEC_MI2S_TX:
  3573. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3574. break;
  3575. case EXT_EC_REF_TERT_MI2S_TX:
  3576. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3577. break;
  3578. case EXT_EC_REF_QUAT_MI2S_TX:
  3579. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3580. break;
  3581. case EXT_EC_REF_QUIN_MI2S_TX:
  3582. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3583. break;
  3584. case EXT_EC_REF_SLIM_1_TX:
  3585. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3586. break;
  3587. case EXT_EC_REF_NONE:
  3588. default:
  3589. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3590. state = false;
  3591. break;
  3592. }
  3593. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3594. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3595. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3596. mutex_unlock(&routing_lock);
  3597. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3598. update);
  3599. } else {
  3600. ret = -EINVAL;
  3601. mutex_unlock(&routing_lock);
  3602. }
  3603. return ret;
  3604. }
  3605. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3606. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3607. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3608. "SLIM_1_TX"};
  3609. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3610. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3611. };
  3612. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3613. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3614. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3615. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3616. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3617. MSM_BACKEND_DAI_PRI_I2S_RX,
  3618. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3619. msm_routing_put_audio_mixer),
  3620. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3621. MSM_BACKEND_DAI_PRI_I2S_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3625. MSM_BACKEND_DAI_PRI_I2S_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3629. MSM_BACKEND_DAI_PRI_I2S_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_PRI_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_PRI_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_PRI_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_PRI_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_PRI_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_PRI_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3657. MSM_BACKEND_DAI_PRI_I2S_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3661. MSM_BACKEND_DAI_PRI_I2S_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3665. MSM_BACKEND_DAI_PRI_I2S_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3669. MSM_BACKEND_DAI_PRI_I2S_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3673. MSM_BACKEND_DAI_PRI_I2S_RX,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3675. msm_routing_put_audio_mixer),
  3676. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3677. MSM_BACKEND_DAI_PRI_I2S_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3681. MSM_BACKEND_DAI_PRI_I2S_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3685. MSM_BACKEND_DAI_PRI_I2S_RX,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3687. msm_routing_put_audio_mixer),
  3688. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3689. MSM_BACKEND_DAI_PRI_I2S_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3693. MSM_BACKEND_DAI_PRI_I2S_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3697. MSM_BACKEND_DAI_PRI_I2S_RX,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3699. msm_routing_put_audio_mixer),
  3700. };
  3701. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_SEC_I2S_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_SEC_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_SEC_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_SEC_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SEC_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SEC_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SEC_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SEC_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SEC_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SEC_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_SEC_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_SEC_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_SEC_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_SEC_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_SEC_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_SEC_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_SEC_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_SEC_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_SEC_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3779. MSM_BACKEND_DAI_SEC_I2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3783. MSM_BACKEND_DAI_SEC_I2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. };
  3787. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3788. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SPDIF_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SPDIF_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SPDIF_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SPDIF_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SPDIF_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SPDIF_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SPDIF_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SPDIF_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SPDIF_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SPDIF_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SPDIF_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SPDIF_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SPDIF_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SPDIF_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SPDIF_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SPDIF_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SPDIF_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SPDIF_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SPDIF_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3865. MSM_BACKEND_DAI_SPDIF_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3869. MSM_BACKEND_DAI_SPDIF_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. };
  3873. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. };
  3939. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3940. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3941. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. };
  4025. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4026. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. };
  4111. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4112. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_MI2S_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_MI2S_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. };
  4197. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4198. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. };
  4283. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4284. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. };
  4369. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. };
  4447. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4448. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. };
  4453. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. };
  4539. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4540. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4541. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. };
  4625. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4626. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. };
  4691. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4692. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. };
  4757. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4758. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_HDMI_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_HDMI_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_HDMI_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_HDMI_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_HDMI_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_HDMI_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_HDMI_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_HDMI_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_HDMI_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_HDMI_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_HDMI_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_HDMI_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_HDMI_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_HDMI_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_HDMI_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_HDMI_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_HDMI_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_HDMI_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_HDMI_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_HDMI_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_HDMI_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. };
  4843. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4844. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4845. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. };
  4909. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4910. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. };
  4975. /* incall music delivery mixer */
  4976. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. };
  4994. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4995. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4996. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5000. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5008. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. };
  5012. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5014. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5018. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. };
  5030. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. };
  5096. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5097. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5098. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. };
  5162. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. };
  5228. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5229. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5230. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5234. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. };
  5294. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5295. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_USB_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_USB_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_USB_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_USB_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_USB_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_USB_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_USB_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_USB_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_USB_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_USB_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_USB_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_USB_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_USB_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_USB_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_USB_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_USB_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. };
  5360. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5361. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. };
  5446. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. };
  5512. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_INT_FM_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_INT_FM_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_INT_FM_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_INT_FM_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_FM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_FM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_FM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_FM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_FM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_FM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_INT_FM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_INT_FM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_INT_FM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_INT_FM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_INT_FM_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_INT_FM_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_INT_FM_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_INT_FM_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_INT_FM_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_INT_FM_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_INT_FM_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. };
  5598. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5599. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_AFE_PCM_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_AFE_PCM_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_AFE_PCM_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_AFE_PCM_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_AFE_PCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_AFE_PCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_AFE_PCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_AFE_PCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_AFE_PCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_AFE_PCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_AFE_PCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_AFE_PCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_AFE_PCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_AFE_PCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_AFE_PCM_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_AFE_PCM_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_AFE_PCM_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_AFE_PCM_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_AFE_PCM_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_AFE_PCM_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_AFE_PCM_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. };
  5684. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_AUXPCM_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_AUXPCM_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_AUXPCM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_AUXPCM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_AUXPCM_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_AUXPCM_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_AUXPCM_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_AUXPCM_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_AUXPCM_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_AUXPCM_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_AUXPCM_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_AUXPCM_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_AUXPCM_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_AUXPCM_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_AUXPCM_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. };
  5770. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. };
  5856. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. };
  5922. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. };
  5988. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5989. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. };
  6054. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6055. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. };
  6120. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. };
  6186. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. };
  6252. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6253. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. };
  6318. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6319. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. };
  6384. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6385. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. };
  6450. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6451. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. };
  6516. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. };
  6582. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. };
  6648. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6649. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. };
  6714. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6715. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. };
  6780. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6781. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. };
  6846. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6847. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. };
  6912. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. };
  6978. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6979. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. };
  7044. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7045. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. };
  7110. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7111. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. };
  7180. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7181. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. };
  7246. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7247. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. };
  7316. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7317. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. };
  7386. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7387. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. };
  7456. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7457. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. };
  7526. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7527. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. };
  7592. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7593. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. };
  7662. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7663. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. };
  7732. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7733. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. };
  7802. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7803. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_PRI_I2S_TX,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_MI2S_TX,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_AUXPCM_TX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_INT_FM_TX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_AFE_PCM_TX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_USB_TX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. };
  8004. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8005. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_INT_FM_TX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_MI2S_TX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_USB_TX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. };
  8162. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8163. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_INT_FM_TX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_MI2S_TX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_AFE_PCM_TX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_AUXPCM_TX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. };
  8320. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8321. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_TX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_AFE_PCM_TX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_USB_TX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. };
  8474. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8475. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_INT_FM_TX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_MI2S_TX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_AFE_PCM_TX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AUXPCM_TX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_USB_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. };
  8652. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8653. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_INT_FM_TX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_AUXPCM_TX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_USB_TX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. };
  8810. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8811. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_INT_FM_TX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_AFE_PCM_TX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_USB_TX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. };
  8972. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8973. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_INT_FM_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_AFE_PCM_TX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_USB_TX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_MI2S_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_AUXPCM_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. };
  9134. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_INT_FM_TX,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_AFE_PCM_TX,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. };
  9236. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9237. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_INT_FM_TX,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_AFE_PCM_TX,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_USB_TX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_MI2S_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_AUXPCM_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. };
  9362. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9363. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_INT_FM_TX,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_AFE_PCM_TX,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. };
  9424. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA18, 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_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_INT_FM_TX,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_AFE_PCM_TX,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. };
  9486. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9487. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_INT_FM_TX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_AFE_PCM_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. };
  9548. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9549. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. };
  9670. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9671. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_INT_FM_TX,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_AFE_PCM_TX,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. };
  9732. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9733. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_INT_FM_TX,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_AFE_PCM_TX,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. };
  9794. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9795. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_PRI_I2S_RX,
  9797. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9798. msm_routing_put_voice_mixer),
  9799. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_PRI_I2S_RX,
  9801. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9802. msm_routing_put_voice_mixer),
  9803. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_PRI_I2S_RX,
  9805. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9806. msm_routing_put_voice_mixer),
  9807. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_PRI_I2S_RX,
  9809. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9810. msm_routing_put_voice_mixer),
  9811. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_PRI_I2S_RX,
  9813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9814. msm_routing_put_voice_mixer),
  9815. };
  9816. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9817. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SEC_I2S_RX,
  9819. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9820. msm_routing_put_voice_mixer),
  9821. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEC_I2S_RX,
  9823. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9824. msm_routing_put_voice_mixer),
  9825. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEC_I2S_RX,
  9827. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9828. msm_routing_put_voice_mixer),
  9829. };
  9830. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9831. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9833. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9834. msm_routing_put_voice_mixer),
  9835. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9837. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9838. msm_routing_put_voice_mixer),
  9839. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9841. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9842. msm_routing_put_voice_mixer),
  9843. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9845. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9846. msm_routing_put_voice_mixer),
  9847. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9849. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9850. msm_routing_put_voice_mixer),
  9851. };
  9852. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9853. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9855. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9856. msm_routing_put_voice_mixer),
  9857. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9859. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9860. msm_routing_put_voice_mixer),
  9861. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9863. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9864. msm_routing_put_voice_mixer),
  9865. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9867. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9868. msm_routing_put_voice_mixer),
  9869. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9871. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9872. msm_routing_put_voice_mixer),
  9873. };
  9874. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9875. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9878. msm_routing_put_voice_mixer),
  9879. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9881. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9882. msm_routing_put_voice_mixer),
  9883. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9886. msm_routing_put_voice_mixer),
  9887. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9889. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9890. msm_routing_put_voice_mixer),
  9891. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9893. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9894. msm_routing_put_voice_mixer),
  9895. };
  9896. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9897. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_USB_RX,
  9899. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9900. msm_routing_put_voice_mixer),
  9901. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_USB_RX,
  9903. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9904. msm_routing_put_voice_mixer),
  9905. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_USB_RX,
  9907. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9908. msm_routing_put_voice_mixer),
  9909. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_USB_RX,
  9911. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9912. msm_routing_put_voice_mixer),
  9913. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_USB_RX,
  9915. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9916. msm_routing_put_voice_mixer),
  9917. };
  9918. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9919. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9921. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9922. msm_routing_put_voice_mixer),
  9923. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9925. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9926. msm_routing_put_voice_mixer),
  9927. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9929. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9930. msm_routing_put_voice_mixer),
  9931. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9933. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9934. msm_routing_put_voice_mixer),
  9935. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9937. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9938. msm_routing_put_voice_mixer),
  9939. };
  9940. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9941. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9943. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9944. msm_routing_put_voice_mixer),
  9945. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9947. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9948. msm_routing_put_voice_mixer),
  9949. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9951. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9952. msm_routing_put_voice_mixer),
  9953. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9955. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9956. msm_routing_put_voice_mixer),
  9957. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9959. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9960. msm_routing_put_voice_mixer),
  9961. };
  9962. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9963. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9965. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9966. msm_routing_put_voice_mixer),
  9967. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9969. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9970. msm_routing_put_voice_mixer),
  9971. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9973. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9974. msm_routing_put_voice_mixer),
  9975. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9977. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9978. msm_routing_put_voice_mixer),
  9979. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9981. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9982. msm_routing_put_voice_mixer),
  9983. };
  9984. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9985. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_MI2S_RX,
  9987. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9988. msm_routing_put_voice_mixer),
  9989. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_MI2S_RX,
  9991. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9992. msm_routing_put_voice_mixer),
  9993. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_MI2S_RX,
  9995. MSM_FRONTEND_DAI_QCHAT, 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_MI2S_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_MI2S_RX,
  10003. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10004. msm_routing_put_voice_mixer),
  10005. };
  10006. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10007. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10009. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10010. msm_routing_put_voice_mixer),
  10011. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10013. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10014. msm_routing_put_voice_mixer),
  10015. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10017. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10018. msm_routing_put_voice_mixer),
  10019. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10021. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10022. msm_routing_put_voice_mixer),
  10023. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10025. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10026. msm_routing_put_voice_mixer),
  10027. };
  10028. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10029. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_INT0_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_INT0_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_INT0_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_INT0_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_INT0_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 int4_mi2s_rx_voice_mixer_controls[] = {
  10051. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_INT4_MI2S_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_INT4_MI2S_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_INT4_MI2S_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_INT4_MI2S_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_INT4_MI2S_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 tert_mi2s_rx_voice_mixer_controls[] = {
  10073. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERTIARY_MI2S_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_TERTIARY_MI2S_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_TERTIARY_MI2S_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_TERTIARY_MI2S_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_TERTIARY_MI2S_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 quat_mi2s_rx_voice_mixer_controls[] = {
  10095. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_QUATERNARY_MI2S_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_QUATERNARY_MI2S_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_QUATERNARY_MI2S_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_QUATERNARY_MI2S_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_QUATERNARY_MI2S_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 quin_mi2s_rx_voice_mixer_controls[] = {
  10117. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_QUINARY_MI2S_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_QUINARY_MI2S_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_QUINARY_MI2S_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_QUINARY_MI2S_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_QUINARY_MI2S_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 afe_pcm_rx_voice_mixer_controls[] = {
  10139. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_AFE_PCM_RX,
  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_AFE_PCM_RX,
  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_AFE_PCM_RX,
  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_AFE_PCM_RX,
  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_AFE_PCM_RX,
  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 aux_pcm_rx_voice_mixer_controls[] = {
  10161. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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 sec_aux_pcm_rx_voice_mixer_controls[] = {
  10183. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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 tert_aux_pcm_rx_voice_mixer_controls[] = {
  10205. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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 quat_aux_pcm_rx_voice_mixer_controls[] = {
  10227. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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 quin_aux_pcm_rx_voice_mixer_controls[] = {
  10249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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 hdmi_rx_voice_mixer_controls[] = {
  10271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_HDMI_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_HDMI_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_HDMI_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_HDMI_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_HDMI_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 slimbus_7_rx_voice_mixer_controls[] = {
  10293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_SLIMBUS_7_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_SLIMBUS_7_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_SLIMBUS_7_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_SLIMBUS_7_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_SLIMBUS_7_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 slimbus_8_rx_voice_mixer_controls[] = {
  10315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_SLIMBUS_8_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_SLIMBUS_8_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_SLIMBUS_8_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_SLIMBUS_8_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_SLIMBUS_8_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 quat_tdm_rx_2_voice_mixer_controls[] = {
  10337. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10339. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10340. msm_routing_put_voice_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10343. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10345. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10346. msm_routing_put_voice_mixer),
  10347. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10349. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10350. msm_routing_put_voice_mixer),
  10351. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10353. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10354. msm_routing_put_voice_mixer),
  10355. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10357. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10358. msm_routing_put_voice_mixer),
  10359. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10361. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10362. msm_routing_put_voice_mixer),
  10363. };
  10364. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10365. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10367. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10368. msm_routing_put_voice_mixer),
  10369. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10371. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10372. msm_routing_put_voice_mixer),
  10373. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10375. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10376. msm_routing_put_voice_mixer),
  10377. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10379. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10380. msm_routing_put_voice_mixer),
  10381. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10383. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10384. msm_routing_put_voice_mixer),
  10385. };
  10386. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10387. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_EXTPROC_RX,
  10389. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10390. msm_routing_put_voice_mixer),
  10391. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_EXTPROC_RX,
  10393. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10394. msm_routing_put_voice_mixer),
  10395. };
  10396. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10397. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10399. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10400. msm_routing_put_voice_mixer),
  10401. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10403. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10404. msm_routing_put_voice_mixer),
  10405. };
  10406. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10407. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10409. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10410. msm_routing_put_voice_mixer),
  10411. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10413. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10414. msm_routing_put_voice_mixer),
  10415. };
  10416. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10417. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_PRI_I2S_TX,
  10419. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10420. msm_routing_put_voice_mixer),
  10421. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_MI2S_TX,
  10423. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10424. msm_routing_put_voice_mixer),
  10425. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10427. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10428. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10430. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10431. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10433. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10434. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10436. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10437. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10439. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10440. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10442. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10443. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10445. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10446. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10448. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10449. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10451. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10452. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10454. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10455. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10457. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10458. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10460. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10461. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10463. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10464. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_USB_TX,
  10466. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10467. msm_routing_put_voice_mixer),
  10468. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10470. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10473. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10474. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10476. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10477. };
  10478. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10479. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_PRI_I2S_TX,
  10481. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10482. msm_routing_put_voice_mixer),
  10483. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_MI2S_TX,
  10485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10486. msm_routing_put_voice_mixer),
  10487. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10489. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10490. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10492. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10493. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10495. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10496. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10498. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10499. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10501. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10502. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10504. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10505. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10507. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10508. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10510. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10511. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10513. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10514. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10516. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10517. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10519. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10520. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10522. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10523. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10525. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10526. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10528. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10531. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10532. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10534. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10535. };
  10536. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10537. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_PRI_I2S_TX,
  10539. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10540. msm_routing_put_voice_mixer),
  10541. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_MI2S_TX,
  10543. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10544. msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_AFE_PCM_TX,
  10555. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10556. msm_routing_put_voice_mixer),
  10557. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_AUXPCM_TX,
  10559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10560. msm_routing_put_voice_mixer),
  10561. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10564. msm_routing_put_voice_mixer),
  10565. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10567. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10568. msm_routing_put_voice_mixer),
  10569. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10571. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10572. msm_routing_put_voice_mixer),
  10573. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10576. msm_routing_put_voice_mixer),
  10577. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10580. msm_routing_put_voice_mixer),
  10581. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10583. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10584. msm_routing_put_voice_mixer),
  10585. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10587. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10588. msm_routing_put_voice_mixer),
  10589. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10591. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10592. msm_routing_put_voice_mixer),
  10593. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10595. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10596. msm_routing_put_voice_mixer),
  10597. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_USB_TX,
  10599. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10600. msm_routing_put_voice_mixer),
  10601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10603. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10604. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10606. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10607. };
  10608. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10609. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_EXTPROC_TX,
  10611. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10612. msm_routing_put_voice_stub_mixer),
  10613. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10615. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10616. msm_routing_put_voice_stub_mixer),
  10617. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10619. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10620. msm_routing_put_voice_stub_mixer),
  10621. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10623. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10624. msm_routing_put_voice_stub_mixer),
  10625. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_MI2S_TX,
  10627. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10628. msm_routing_put_voice_stub_mixer),
  10629. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10631. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10632. msm_routing_put_voice_stub_mixer),
  10633. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10635. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10636. msm_routing_put_voice_stub_mixer),
  10637. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10639. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10640. msm_routing_put_voice_stub_mixer),
  10641. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10643. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10644. msm_routing_put_voice_stub_mixer),
  10645. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_AUXPCM_TX,
  10647. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10648. msm_routing_put_voice_stub_mixer),
  10649. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10651. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10652. msm_routing_put_voice_stub_mixer),
  10653. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10655. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10656. msm_routing_put_voice_stub_mixer),
  10657. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10659. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10660. msm_routing_put_voice_stub_mixer),
  10661. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10663. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10664. msm_routing_put_voice_stub_mixer),
  10665. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10667. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10668. msm_routing_put_voice_stub_mixer),
  10669. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10671. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10672. msm_routing_put_voice_stub_mixer),
  10673. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_AFE_PCM_TX,
  10675. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10676. msm_routing_put_voice_stub_mixer),
  10677. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10679. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10680. msm_routing_put_voice_stub_mixer),
  10681. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10683. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10684. msm_routing_put_voice_stub_mixer),
  10685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10687. 1, 0, msm_routing_get_voice_stub_mixer,
  10688. msm_routing_put_voice_stub_mixer),
  10689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10691. 1, 0, msm_routing_get_voice_stub_mixer,
  10692. msm_routing_put_voice_stub_mixer),
  10693. };
  10694. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10695. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_EXTPROC_TX,
  10697. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10698. msm_routing_put_voice_stub_mixer),
  10699. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10701. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10702. msm_routing_put_voice_stub_mixer),
  10703. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10705. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10706. msm_routing_put_voice_stub_mixer),
  10707. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_AUXPCM_TX,
  10709. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10710. msm_routing_put_voice_stub_mixer),
  10711. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10713. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10714. msm_routing_put_voice_stub_mixer),
  10715. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10717. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10718. msm_routing_put_voice_stub_mixer),
  10719. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10721. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10722. msm_routing_put_voice_stub_mixer),
  10723. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10725. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10726. msm_routing_put_voice_stub_mixer),
  10727. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10729. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10730. msm_routing_put_voice_stub_mixer),
  10731. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10733. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10734. msm_routing_put_voice_stub_mixer),
  10735. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_AFE_PCM_TX,
  10737. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10738. msm_routing_put_voice_stub_mixer),
  10739. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10741. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10742. msm_routing_put_voice_stub_mixer),
  10743. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10745. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10746. msm_routing_put_voice_stub_mixer),
  10747. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10749. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10750. msm_routing_put_voice_stub_mixer),
  10751. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10753. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10754. msm_routing_put_voice_stub_mixer),
  10755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10757. 1, 0, msm_routing_get_voice_stub_mixer,
  10758. msm_routing_put_voice_stub_mixer),
  10759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10761. 1, 0, msm_routing_get_voice_stub_mixer,
  10762. msm_routing_put_voice_stub_mixer),
  10763. };
  10764. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10765. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_EXTPROC_TX,
  10767. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10768. msm_routing_put_voice_stub_mixer),
  10769. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10771. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10772. msm_routing_put_voice_stub_mixer),
  10773. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10775. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10776. msm_routing_put_voice_stub_mixer),
  10777. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_AUXPCM_TX,
  10779. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10780. msm_routing_put_voice_stub_mixer),
  10781. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10783. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10784. msm_routing_put_voice_stub_mixer),
  10785. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10788. msm_routing_put_voice_stub_mixer),
  10789. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10791. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10792. msm_routing_put_voice_stub_mixer),
  10793. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10796. msm_routing_put_voice_stub_mixer),
  10797. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10799. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10800. msm_routing_put_voice_stub_mixer),
  10801. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10803. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10804. msm_routing_put_voice_stub_mixer),
  10805. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_AFE_PCM_TX,
  10807. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10808. msm_routing_put_voice_stub_mixer),
  10809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10811. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10812. msm_routing_put_voice_stub_mixer),
  10813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10815. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10816. msm_routing_put_voice_stub_mixer),
  10817. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10819. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10820. msm_routing_put_voice_stub_mixer),
  10821. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10823. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10824. msm_routing_put_voice_stub_mixer),
  10825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10827. 1, 0, msm_routing_get_voice_stub_mixer,
  10828. msm_routing_put_voice_stub_mixer),
  10829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10831. 1, 0, msm_routing_get_voice_stub_mixer,
  10832. msm_routing_put_voice_stub_mixer),
  10833. };
  10834. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10835. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_PRI_I2S_TX,
  10837. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10838. msm_routing_put_voice_mixer),
  10839. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10841. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10842. msm_routing_put_voice_mixer),
  10843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10845. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10846. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10847. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_AFE_PCM_TX,
  10849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10850. msm_routing_put_voice_mixer),
  10851. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_AUXPCM_TX,
  10853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10854. msm_routing_put_voice_mixer),
  10855. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10858. msm_routing_put_voice_mixer),
  10859. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10862. msm_routing_put_voice_mixer),
  10863. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10866. msm_routing_put_voice_mixer),
  10867. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10870. msm_routing_put_voice_mixer),
  10871. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_MI2S_TX,
  10873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10874. msm_routing_put_voice_mixer),
  10875. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10878. msm_routing_put_voice_mixer),
  10879. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10882. msm_routing_put_voice_mixer),
  10883. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10886. msm_routing_put_voice_mixer),
  10887. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10890. msm_routing_put_voice_mixer),
  10891. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10894. msm_routing_put_voice_mixer),
  10895. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_USB_TX,
  10897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10898. msm_routing_put_voice_mixer),
  10899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10902. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10905. };
  10906. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10907. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10909. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10910. msm_routing_put_port_mixer),
  10911. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10913. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10914. msm_routing_put_port_mixer),
  10915. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10917. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10918. msm_routing_put_port_mixer),
  10919. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10921. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10922. msm_routing_put_port_mixer),
  10923. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10925. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10926. msm_routing_put_port_mixer),
  10927. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10929. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10930. msm_routing_put_port_mixer),
  10931. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10933. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10934. msm_routing_put_port_mixer),
  10935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10937. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10938. msm_routing_put_port_mixer),
  10939. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10941. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10942. msm_routing_put_port_mixer),
  10943. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10945. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10946. msm_routing_put_port_mixer),
  10947. };
  10948. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10949. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10951. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10952. msm_routing_put_port_mixer),
  10953. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10955. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10956. msm_routing_put_port_mixer),
  10957. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10959. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10960. msm_routing_put_port_mixer),
  10961. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10963. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10964. msm_routing_put_port_mixer),
  10965. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10967. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10968. msm_routing_put_port_mixer),
  10969. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10971. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10972. msm_routing_put_port_mixer),
  10973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10975. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10976. msm_routing_put_port_mixer),
  10977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10979. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10980. msm_routing_put_port_mixer),
  10981. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10983. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10984. msm_routing_put_port_mixer),
  10985. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10987. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10988. msm_routing_put_port_mixer),
  10989. };
  10990. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10991. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10993. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10994. msm_routing_put_port_mixer),
  10995. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10997. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10998. msm_routing_put_port_mixer),
  10999. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11001. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11002. msm_routing_put_port_mixer),
  11003. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11005. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11006. msm_routing_put_port_mixer),
  11007. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11009. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11010. msm_routing_put_port_mixer),
  11011. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11013. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11014. msm_routing_put_port_mixer),
  11015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11017. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11018. msm_routing_put_port_mixer),
  11019. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11021. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11022. msm_routing_put_port_mixer),
  11023. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11025. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11026. msm_routing_put_port_mixer),
  11027. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11029. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11030. msm_routing_put_port_mixer),
  11031. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11033. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11034. msm_routing_put_port_mixer),
  11035. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11037. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11038. msm_routing_put_port_mixer),
  11039. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11041. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11042. msm_routing_put_port_mixer),
  11043. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11045. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11046. msm_routing_put_port_mixer),
  11047. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11049. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11050. msm_routing_put_port_mixer),
  11051. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11053. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11054. msm_routing_put_port_mixer),
  11055. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11057. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11058. msm_routing_put_port_mixer),
  11059. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11061. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11062. msm_routing_put_port_mixer),
  11063. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11065. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11066. msm_routing_put_port_mixer),
  11067. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11069. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11070. msm_routing_put_port_mixer),
  11071. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11073. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11074. msm_routing_put_port_mixer),
  11075. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11077. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11078. msm_routing_put_port_mixer),
  11079. };
  11080. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11081. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_AUXPCM_RX,
  11083. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11084. msm_routing_put_port_mixer),
  11085. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_AUXPCM_RX,
  11087. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11088. msm_routing_put_port_mixer),
  11089. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_AUXPCM_RX,
  11091. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11092. msm_routing_put_port_mixer),
  11093. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_AUXPCM_RX,
  11095. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11096. msm_routing_put_port_mixer),
  11097. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_AUXPCM_RX,
  11099. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11100. msm_routing_put_port_mixer),
  11101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_AUXPCM_RX,
  11103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11104. msm_routing_put_port_mixer),
  11105. };
  11106. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11107. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11109. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11110. msm_routing_put_port_mixer),
  11111. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11113. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11114. msm_routing_put_port_mixer),
  11115. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11117. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11118. msm_routing_put_port_mixer),
  11119. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11121. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11122. msm_routing_put_port_mixer),
  11123. };
  11124. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11125. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11127. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11128. msm_routing_put_port_mixer),
  11129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11131. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11132. msm_routing_put_port_mixer),
  11133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. };
  11138. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11139. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11141. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11142. msm_routing_put_port_mixer),
  11143. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11145. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11146. msm_routing_put_port_mixer),
  11147. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11149. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. };
  11152. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11153. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11155. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11156. msm_routing_put_port_mixer),
  11157. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11159. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11160. msm_routing_put_port_mixer),
  11161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11164. msm_routing_put_port_mixer),
  11165. };
  11166. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11167. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11169. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11170. msm_routing_put_port_mixer),
  11171. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11173. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11174. msm_routing_put_port_mixer),
  11175. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11177. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11181. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11182. msm_routing_put_port_mixer),
  11183. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11185. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11186. msm_routing_put_port_mixer),
  11187. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11189. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11190. msm_routing_put_port_mixer),
  11191. };
  11192. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11193. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11195. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11196. msm_routing_put_port_mixer),
  11197. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11199. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11200. msm_routing_put_port_mixer),
  11201. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11203. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11204. msm_routing_put_port_mixer),
  11205. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11207. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11211. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11212. msm_routing_put_port_mixer),
  11213. };
  11214. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11215. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11217. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11218. msm_routing_put_port_mixer),
  11219. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11221. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11222. msm_routing_put_port_mixer),
  11223. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11225. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11226. msm_routing_put_port_mixer),
  11227. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11229. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11230. msm_routing_put_port_mixer),
  11231. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11233. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11234. msm_routing_put_port_mixer),
  11235. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11237. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11238. msm_routing_put_port_mixer),
  11239. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11241. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11242. msm_routing_put_port_mixer),
  11243. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11245. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11246. msm_routing_put_port_mixer),
  11247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11249. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11250. msm_routing_put_port_mixer),
  11251. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11253. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11254. msm_routing_put_port_mixer),
  11255. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11257. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11258. msm_routing_put_port_mixer),
  11259. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11261. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11262. msm_routing_put_port_mixer),
  11263. };
  11264. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11265. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11267. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11268. msm_routing_put_port_mixer),
  11269. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11271. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11272. msm_routing_put_port_mixer),
  11273. };
  11274. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_AFE_PCM_RX,
  11277. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11278. msm_routing_put_port_mixer),
  11279. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AFE_PCM_RX,
  11281. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11282. msm_routing_put_port_mixer),
  11283. };
  11284. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11285. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_HDMI_RX,
  11287. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11288. msm_routing_put_port_mixer),
  11289. };
  11290. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11291. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11293. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11294. msm_routing_put_port_mixer),
  11295. };
  11296. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11297. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11299. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11300. msm_routing_put_port_mixer),
  11301. };
  11302. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11303. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEC_I2S_RX,
  11305. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11306. msm_routing_put_port_mixer),
  11307. };
  11308. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11309. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_MI2S_RX,
  11311. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11312. msm_routing_put_port_mixer),
  11313. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_MI2S_RX,
  11315. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11316. msm_routing_put_port_mixer),
  11317. };
  11318. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11319. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11321. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11322. msm_routing_put_port_mixer),
  11323. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11325. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11326. msm_routing_put_port_mixer),
  11327. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11329. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11333. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11334. msm_routing_put_port_mixer),
  11335. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11337. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11338. msm_routing_put_port_mixer),
  11339. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11341. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11342. msm_routing_put_port_mixer),
  11343. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11345. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11346. msm_routing_put_port_mixer),
  11347. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11349. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11353. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11354. msm_routing_put_port_mixer),
  11355. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11357. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11358. msm_routing_put_port_mixer),
  11359. };
  11360. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11361. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_USB_RX,
  11363. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11364. msm_routing_put_port_mixer),
  11365. };
  11366. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11367. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11369. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11370. msm_routing_put_port_mixer),
  11371. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11373. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11374. msm_routing_put_port_mixer),
  11375. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11377. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11378. msm_routing_put_port_mixer),
  11379. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11381. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11382. msm_routing_put_port_mixer),
  11383. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11385. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11386. msm_routing_put_port_mixer),
  11387. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11389. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11390. msm_routing_put_port_mixer),
  11391. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11393. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11394. msm_routing_put_port_mixer),
  11395. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11397. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11398. msm_routing_put_port_mixer),
  11399. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11401. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11402. msm_routing_put_port_mixer),
  11403. };
  11404. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11405. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11407. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11408. msm_routing_put_port_mixer),
  11409. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11411. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11412. msm_routing_put_port_mixer),
  11413. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11415. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11419. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11420. msm_routing_put_port_mixer),
  11421. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11423. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11424. msm_routing_put_port_mixer),
  11425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11427. MSM_BACKEND_DAI_SECONDARY_MI2S_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_QUINARY_MI2S_RX,
  11431. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11432. msm_routing_put_port_mixer),
  11433. };
  11434. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11437. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11438. msm_routing_get_port_mixer,
  11439. msm_routing_put_port_mixer),
  11440. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11443. msm_routing_get_port_mixer,
  11444. msm_routing_put_port_mixer),
  11445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11447. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11448. msm_routing_get_port_mixer,
  11449. msm_routing_put_port_mixer),
  11450. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11451. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11452. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11453. msm_routing_get_port_mixer,
  11454. msm_routing_put_port_mixer),
  11455. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11457. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11458. msm_routing_get_port_mixer,
  11459. msm_routing_put_port_mixer),
  11460. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11462. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11463. msm_routing_get_port_mixer,
  11464. msm_routing_put_port_mixer),
  11465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11468. msm_routing_get_port_mixer,
  11469. msm_routing_put_port_mixer),
  11470. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11472. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11473. msm_routing_get_port_mixer,
  11474. msm_routing_put_port_mixer),
  11475. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11477. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11478. msm_routing_get_port_mixer,
  11479. msm_routing_put_port_mixer),
  11480. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11482. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11483. msm_routing_get_port_mixer,
  11484. msm_routing_put_port_mixer),
  11485. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11487. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11488. msm_routing_get_port_mixer,
  11489. msm_routing_put_port_mixer),
  11490. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11492. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11493. msm_routing_get_port_mixer,
  11494. msm_routing_put_port_mixer),
  11495. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11497. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11498. msm_routing_get_port_mixer,
  11499. msm_routing_put_port_mixer),
  11500. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11502. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11503. msm_routing_get_port_mixer,
  11504. msm_routing_put_port_mixer),
  11505. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11507. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11508. msm_routing_get_port_mixer,
  11509. msm_routing_put_port_mixer),
  11510. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11512. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11513. msm_routing_get_port_mixer,
  11514. msm_routing_put_port_mixer),
  11515. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11517. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11518. msm_routing_get_port_mixer,
  11519. msm_routing_put_port_mixer),
  11520. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11522. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11523. msm_routing_get_port_mixer,
  11524. msm_routing_put_port_mixer),
  11525. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11527. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11528. msm_routing_get_port_mixer,
  11529. msm_routing_put_port_mixer),
  11530. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11532. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11533. msm_routing_get_port_mixer,
  11534. msm_routing_put_port_mixer),
  11535. };
  11536. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11537. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11539. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11540. msm_routing_get_port_mixer,
  11541. msm_routing_put_port_mixer),
  11542. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11545. msm_routing_get_port_mixer,
  11546. msm_routing_put_port_mixer),
  11547. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11549. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11550. msm_routing_get_port_mixer,
  11551. msm_routing_put_port_mixer),
  11552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11555. msm_routing_get_port_mixer,
  11556. msm_routing_put_port_mixer),
  11557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11559. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11560. msm_routing_get_port_mixer,
  11561. msm_routing_put_port_mixer),
  11562. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11564. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11565. msm_routing_get_port_mixer,
  11566. msm_routing_put_port_mixer),
  11567. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11569. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11570. msm_routing_get_port_mixer,
  11571. msm_routing_put_port_mixer),
  11572. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11574. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11575. msm_routing_get_port_mixer,
  11576. msm_routing_put_port_mixer),
  11577. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11579. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11580. msm_routing_get_port_mixer,
  11581. msm_routing_put_port_mixer),
  11582. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11584. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11585. msm_routing_get_port_mixer,
  11586. msm_routing_put_port_mixer),
  11587. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11589. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11590. msm_routing_get_port_mixer,
  11591. msm_routing_put_port_mixer),
  11592. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11594. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11595. msm_routing_get_port_mixer,
  11596. msm_routing_put_port_mixer),
  11597. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11599. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11600. msm_routing_get_port_mixer,
  11601. msm_routing_put_port_mixer),
  11602. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11604. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11605. msm_routing_get_port_mixer,
  11606. msm_routing_put_port_mixer),
  11607. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11609. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11610. msm_routing_get_port_mixer,
  11611. msm_routing_put_port_mixer),
  11612. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11614. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11615. msm_routing_get_port_mixer,
  11616. msm_routing_put_port_mixer),
  11617. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11619. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11620. msm_routing_get_port_mixer,
  11621. msm_routing_put_port_mixer),
  11622. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11624. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11625. msm_routing_get_port_mixer,
  11626. msm_routing_put_port_mixer),
  11627. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11629. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11630. msm_routing_get_port_mixer,
  11631. msm_routing_put_port_mixer),
  11632. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11634. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11635. msm_routing_get_port_mixer,
  11636. msm_routing_put_port_mixer),
  11637. };
  11638. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11639. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11641. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11642. msm_routing_get_port_mixer,
  11643. msm_routing_put_port_mixer),
  11644. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11646. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11647. msm_routing_get_port_mixer,
  11648. msm_routing_put_port_mixer),
  11649. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11651. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11652. msm_routing_get_port_mixer,
  11653. msm_routing_put_port_mixer),
  11654. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11656. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11657. msm_routing_get_port_mixer,
  11658. msm_routing_put_port_mixer),
  11659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11661. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11662. msm_routing_get_port_mixer,
  11663. msm_routing_put_port_mixer),
  11664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11666. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11667. msm_routing_get_port_mixer,
  11668. msm_routing_put_port_mixer),
  11669. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11671. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11672. msm_routing_get_port_mixer,
  11673. msm_routing_put_port_mixer),
  11674. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11676. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11677. msm_routing_get_port_mixer,
  11678. msm_routing_put_port_mixer),
  11679. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11681. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11682. msm_routing_get_port_mixer,
  11683. msm_routing_put_port_mixer),
  11684. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11686. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11687. msm_routing_get_port_mixer,
  11688. msm_routing_put_port_mixer),
  11689. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11691. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11692. msm_routing_get_port_mixer,
  11693. msm_routing_put_port_mixer),
  11694. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11696. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11697. msm_routing_get_port_mixer,
  11698. msm_routing_put_port_mixer),
  11699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11701. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11702. msm_routing_get_port_mixer,
  11703. msm_routing_put_port_mixer),
  11704. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11706. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11707. msm_routing_get_port_mixer,
  11708. msm_routing_put_port_mixer),
  11709. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11711. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11712. msm_routing_get_port_mixer,
  11713. msm_routing_put_port_mixer),
  11714. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11716. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11717. msm_routing_get_port_mixer,
  11718. msm_routing_put_port_mixer),
  11719. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11721. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11722. msm_routing_get_port_mixer,
  11723. msm_routing_put_port_mixer),
  11724. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11726. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11727. msm_routing_get_port_mixer,
  11728. msm_routing_put_port_mixer),
  11729. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11731. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11732. msm_routing_get_port_mixer,
  11733. msm_routing_put_port_mixer),
  11734. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11736. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11737. msm_routing_get_port_mixer,
  11738. msm_routing_put_port_mixer),
  11739. };
  11740. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11744. msm_routing_get_port_mixer,
  11745. msm_routing_put_port_mixer),
  11746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11749. msm_routing_get_port_mixer,
  11750. msm_routing_put_port_mixer),
  11751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11754. msm_routing_get_port_mixer,
  11755. msm_routing_put_port_mixer),
  11756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11759. msm_routing_get_port_mixer,
  11760. msm_routing_put_port_mixer),
  11761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11764. msm_routing_get_port_mixer,
  11765. msm_routing_put_port_mixer),
  11766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11769. msm_routing_get_port_mixer,
  11770. msm_routing_put_port_mixer),
  11771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11774. msm_routing_get_port_mixer,
  11775. msm_routing_put_port_mixer),
  11776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11779. msm_routing_get_port_mixer,
  11780. msm_routing_put_port_mixer),
  11781. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11783. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11784. msm_routing_get_port_mixer,
  11785. msm_routing_put_port_mixer),
  11786. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11788. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11789. msm_routing_get_port_mixer,
  11790. msm_routing_put_port_mixer),
  11791. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11793. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11794. msm_routing_get_port_mixer,
  11795. msm_routing_put_port_mixer),
  11796. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11798. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11799. msm_routing_get_port_mixer,
  11800. msm_routing_put_port_mixer),
  11801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11804. msm_routing_get_port_mixer,
  11805. msm_routing_put_port_mixer),
  11806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11809. msm_routing_get_port_mixer,
  11810. msm_routing_put_port_mixer),
  11811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11814. msm_routing_get_port_mixer,
  11815. msm_routing_put_port_mixer),
  11816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11819. msm_routing_get_port_mixer,
  11820. msm_routing_put_port_mixer),
  11821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11824. msm_routing_get_port_mixer,
  11825. msm_routing_put_port_mixer),
  11826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11829. msm_routing_get_port_mixer,
  11830. msm_routing_put_port_mixer),
  11831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11834. msm_routing_get_port_mixer,
  11835. msm_routing_put_port_mixer),
  11836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11839. msm_routing_get_port_mixer,
  11840. msm_routing_put_port_mixer),
  11841. };
  11842. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11846. msm_routing_get_port_mixer,
  11847. msm_routing_put_port_mixer),
  11848. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11849. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11850. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11851. msm_routing_get_port_mixer,
  11852. msm_routing_put_port_mixer),
  11853. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11855. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11856. msm_routing_get_port_mixer,
  11857. msm_routing_put_port_mixer),
  11858. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11860. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11861. msm_routing_get_port_mixer,
  11862. msm_routing_put_port_mixer),
  11863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11866. msm_routing_get_port_mixer,
  11867. msm_routing_put_port_mixer),
  11868. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11870. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11871. msm_routing_get_port_mixer,
  11872. msm_routing_put_port_mixer),
  11873. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11875. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11876. msm_routing_get_port_mixer,
  11877. msm_routing_put_port_mixer),
  11878. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11880. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11881. msm_routing_get_port_mixer,
  11882. msm_routing_put_port_mixer),
  11883. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11885. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11886. msm_routing_get_port_mixer,
  11887. msm_routing_put_port_mixer),
  11888. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11890. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11891. msm_routing_get_port_mixer,
  11892. msm_routing_put_port_mixer),
  11893. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11895. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11896. msm_routing_get_port_mixer,
  11897. msm_routing_put_port_mixer),
  11898. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11900. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11901. msm_routing_get_port_mixer,
  11902. msm_routing_put_port_mixer),
  11903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11905. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11906. msm_routing_get_port_mixer,
  11907. msm_routing_put_port_mixer),
  11908. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11910. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11911. msm_routing_get_port_mixer,
  11912. msm_routing_put_port_mixer),
  11913. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11915. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11916. msm_routing_get_port_mixer,
  11917. msm_routing_put_port_mixer),
  11918. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11920. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11921. msm_routing_get_port_mixer,
  11922. msm_routing_put_port_mixer),
  11923. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11925. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11926. msm_routing_get_port_mixer,
  11927. msm_routing_put_port_mixer),
  11928. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11930. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11931. msm_routing_get_port_mixer,
  11932. msm_routing_put_port_mixer),
  11933. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11935. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11936. msm_routing_get_port_mixer,
  11937. msm_routing_put_port_mixer),
  11938. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11940. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11941. msm_routing_get_port_mixer,
  11942. msm_routing_put_port_mixer),
  11943. };
  11944. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11948. msm_routing_get_port_mixer,
  11949. msm_routing_put_port_mixer),
  11950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11951. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11953. msm_routing_get_port_mixer,
  11954. msm_routing_put_port_mixer),
  11955. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11957. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11958. msm_routing_get_port_mixer,
  11959. msm_routing_put_port_mixer),
  11960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11963. msm_routing_get_port_mixer,
  11964. msm_routing_put_port_mixer),
  11965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11968. msm_routing_get_port_mixer,
  11969. msm_routing_put_port_mixer),
  11970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11972. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11973. msm_routing_get_port_mixer,
  11974. msm_routing_put_port_mixer),
  11975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11977. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11978. msm_routing_get_port_mixer,
  11979. msm_routing_put_port_mixer),
  11980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11981. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11982. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11983. msm_routing_get_port_mixer,
  11984. msm_routing_put_port_mixer),
  11985. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11987. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11988. msm_routing_get_port_mixer,
  11989. msm_routing_put_port_mixer),
  11990. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11992. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11993. msm_routing_get_port_mixer,
  11994. msm_routing_put_port_mixer),
  11995. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11997. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11998. msm_routing_get_port_mixer,
  11999. msm_routing_put_port_mixer),
  12000. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12002. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12003. msm_routing_get_port_mixer,
  12004. msm_routing_put_port_mixer),
  12005. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12007. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12008. msm_routing_get_port_mixer,
  12009. msm_routing_put_port_mixer),
  12010. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12012. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12013. msm_routing_get_port_mixer,
  12014. msm_routing_put_port_mixer),
  12015. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12017. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12018. msm_routing_get_port_mixer,
  12019. msm_routing_put_port_mixer),
  12020. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12021. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12022. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12023. msm_routing_get_port_mixer,
  12024. msm_routing_put_port_mixer),
  12025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12027. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12028. msm_routing_get_port_mixer,
  12029. msm_routing_put_port_mixer),
  12030. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12032. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12033. msm_routing_get_port_mixer,
  12034. msm_routing_put_port_mixer),
  12035. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12037. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12038. msm_routing_get_port_mixer,
  12039. msm_routing_put_port_mixer),
  12040. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12042. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12043. msm_routing_get_port_mixer,
  12044. msm_routing_put_port_mixer),
  12045. };
  12046. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12049. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12050. msm_routing_get_port_mixer,
  12051. msm_routing_put_port_mixer),
  12052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12054. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12055. msm_routing_get_port_mixer,
  12056. msm_routing_put_port_mixer),
  12057. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12059. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12060. msm_routing_get_port_mixer,
  12061. msm_routing_put_port_mixer),
  12062. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12064. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12065. msm_routing_get_port_mixer,
  12066. msm_routing_put_port_mixer),
  12067. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12069. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12070. msm_routing_get_port_mixer,
  12071. msm_routing_put_port_mixer),
  12072. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12074. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12075. msm_routing_get_port_mixer,
  12076. msm_routing_put_port_mixer),
  12077. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12079. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12080. msm_routing_get_port_mixer,
  12081. msm_routing_put_port_mixer),
  12082. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12084. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12085. msm_routing_get_port_mixer,
  12086. msm_routing_put_port_mixer),
  12087. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12089. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12090. msm_routing_get_port_mixer,
  12091. msm_routing_put_port_mixer),
  12092. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12094. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12095. msm_routing_get_port_mixer,
  12096. msm_routing_put_port_mixer),
  12097. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12099. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12100. msm_routing_get_port_mixer,
  12101. msm_routing_put_port_mixer),
  12102. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12104. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12105. msm_routing_get_port_mixer,
  12106. msm_routing_put_port_mixer),
  12107. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12109. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12110. msm_routing_get_port_mixer,
  12111. msm_routing_put_port_mixer),
  12112. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12113. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12114. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12115. msm_routing_get_port_mixer,
  12116. msm_routing_put_port_mixer),
  12117. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12119. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12120. msm_routing_get_port_mixer,
  12121. msm_routing_put_port_mixer),
  12122. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12124. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12125. msm_routing_get_port_mixer,
  12126. msm_routing_put_port_mixer),
  12127. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12129. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12130. msm_routing_get_port_mixer,
  12131. msm_routing_put_port_mixer),
  12132. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12134. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12135. msm_routing_get_port_mixer,
  12136. msm_routing_put_port_mixer),
  12137. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12139. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12140. msm_routing_get_port_mixer,
  12141. msm_routing_put_port_mixer),
  12142. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12144. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12145. msm_routing_get_port_mixer,
  12146. msm_routing_put_port_mixer),
  12147. };
  12148. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12151. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12152. msm_routing_get_port_mixer,
  12153. msm_routing_put_port_mixer),
  12154. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12156. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12157. msm_routing_get_port_mixer,
  12158. msm_routing_put_port_mixer),
  12159. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12161. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12162. msm_routing_get_port_mixer,
  12163. msm_routing_put_port_mixer),
  12164. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12166. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12167. msm_routing_get_port_mixer,
  12168. msm_routing_put_port_mixer),
  12169. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12171. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12172. msm_routing_get_port_mixer,
  12173. msm_routing_put_port_mixer),
  12174. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12176. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12177. msm_routing_get_port_mixer,
  12178. msm_routing_put_port_mixer),
  12179. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12181. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12182. msm_routing_get_port_mixer,
  12183. msm_routing_put_port_mixer),
  12184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12185. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12186. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12187. msm_routing_get_port_mixer,
  12188. msm_routing_put_port_mixer),
  12189. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12191. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12192. msm_routing_get_port_mixer,
  12193. msm_routing_put_port_mixer),
  12194. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12196. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12197. msm_routing_get_port_mixer,
  12198. msm_routing_put_port_mixer),
  12199. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12201. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12202. msm_routing_get_port_mixer,
  12203. msm_routing_put_port_mixer),
  12204. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12206. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12207. msm_routing_get_port_mixer,
  12208. msm_routing_put_port_mixer),
  12209. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12211. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12212. msm_routing_get_port_mixer,
  12213. msm_routing_put_port_mixer),
  12214. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12216. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12217. msm_routing_get_port_mixer,
  12218. msm_routing_put_port_mixer),
  12219. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12221. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12222. msm_routing_get_port_mixer,
  12223. msm_routing_put_port_mixer),
  12224. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12226. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12227. msm_routing_get_port_mixer,
  12228. msm_routing_put_port_mixer),
  12229. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12231. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12232. msm_routing_get_port_mixer,
  12233. msm_routing_put_port_mixer),
  12234. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12236. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12237. msm_routing_get_port_mixer,
  12238. msm_routing_put_port_mixer),
  12239. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12241. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12242. msm_routing_get_port_mixer,
  12243. msm_routing_put_port_mixer),
  12244. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12246. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12247. msm_routing_get_port_mixer,
  12248. msm_routing_put_port_mixer),
  12249. };
  12250. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12251. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12253. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12254. msm_routing_get_port_mixer,
  12255. msm_routing_put_port_mixer),
  12256. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12258. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12259. msm_routing_get_port_mixer,
  12260. msm_routing_put_port_mixer),
  12261. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12263. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12264. msm_routing_get_port_mixer,
  12265. msm_routing_put_port_mixer),
  12266. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12268. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12269. msm_routing_get_port_mixer,
  12270. msm_routing_put_port_mixer),
  12271. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12273. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12274. msm_routing_get_port_mixer,
  12275. msm_routing_put_port_mixer),
  12276. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12278. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12279. msm_routing_get_port_mixer,
  12280. msm_routing_put_port_mixer),
  12281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12283. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12284. msm_routing_get_port_mixer,
  12285. msm_routing_put_port_mixer),
  12286. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12288. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12289. msm_routing_get_port_mixer,
  12290. msm_routing_put_port_mixer),
  12291. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12293. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12294. msm_routing_get_port_mixer,
  12295. msm_routing_put_port_mixer),
  12296. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12298. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12299. msm_routing_get_port_mixer,
  12300. msm_routing_put_port_mixer),
  12301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12303. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12304. msm_routing_get_port_mixer,
  12305. msm_routing_put_port_mixer),
  12306. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12308. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12309. msm_routing_get_port_mixer,
  12310. msm_routing_put_port_mixer),
  12311. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12313. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12314. msm_routing_get_port_mixer,
  12315. msm_routing_put_port_mixer),
  12316. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12318. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12319. msm_routing_get_port_mixer,
  12320. msm_routing_put_port_mixer),
  12321. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12323. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12324. msm_routing_get_port_mixer,
  12325. msm_routing_put_port_mixer),
  12326. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12328. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12329. msm_routing_get_port_mixer,
  12330. msm_routing_put_port_mixer),
  12331. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12333. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12334. msm_routing_get_port_mixer,
  12335. msm_routing_put_port_mixer),
  12336. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12338. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12339. msm_routing_get_port_mixer,
  12340. msm_routing_put_port_mixer),
  12341. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12343. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12344. msm_routing_get_port_mixer,
  12345. msm_routing_put_port_mixer),
  12346. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12348. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12349. msm_routing_get_port_mixer,
  12350. msm_routing_put_port_mixer),
  12351. };
  12352. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12356. msm_routing_get_port_mixer,
  12357. msm_routing_put_port_mixer),
  12358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12361. msm_routing_get_port_mixer,
  12362. msm_routing_put_port_mixer),
  12363. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12365. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12366. msm_routing_get_port_mixer,
  12367. msm_routing_put_port_mixer),
  12368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12371. msm_routing_get_port_mixer,
  12372. msm_routing_put_port_mixer),
  12373. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12375. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12376. msm_routing_get_port_mixer,
  12377. msm_routing_put_port_mixer),
  12378. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12379. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12381. msm_routing_get_port_mixer,
  12382. msm_routing_put_port_mixer),
  12383. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12386. msm_routing_get_port_mixer,
  12387. msm_routing_put_port_mixer),
  12388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12390. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12391. msm_routing_get_port_mixer,
  12392. msm_routing_put_port_mixer),
  12393. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12395. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12396. msm_routing_get_port_mixer,
  12397. msm_routing_put_port_mixer),
  12398. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12400. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12401. msm_routing_get_port_mixer,
  12402. msm_routing_put_port_mixer),
  12403. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12405. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12406. msm_routing_get_port_mixer,
  12407. msm_routing_put_port_mixer),
  12408. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12410. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12411. msm_routing_get_port_mixer,
  12412. msm_routing_put_port_mixer),
  12413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12415. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12416. msm_routing_get_port_mixer,
  12417. msm_routing_put_port_mixer),
  12418. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12420. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12421. msm_routing_get_port_mixer,
  12422. msm_routing_put_port_mixer),
  12423. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12425. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12426. msm_routing_get_port_mixer,
  12427. msm_routing_put_port_mixer),
  12428. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12430. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12431. msm_routing_get_port_mixer,
  12432. msm_routing_put_port_mixer),
  12433. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12435. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12436. msm_routing_get_port_mixer,
  12437. msm_routing_put_port_mixer),
  12438. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12440. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12441. msm_routing_get_port_mixer,
  12442. msm_routing_put_port_mixer),
  12443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12445. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12446. msm_routing_get_port_mixer,
  12447. msm_routing_put_port_mixer),
  12448. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12450. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12451. msm_routing_get_port_mixer,
  12452. msm_routing_put_port_mixer),
  12453. };
  12454. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12458. msm_routing_get_port_mixer,
  12459. msm_routing_put_port_mixer),
  12460. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12463. msm_routing_get_port_mixer,
  12464. msm_routing_put_port_mixer),
  12465. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12467. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12468. msm_routing_get_port_mixer,
  12469. msm_routing_put_port_mixer),
  12470. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12471. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12472. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12473. msm_routing_get_port_mixer,
  12474. msm_routing_put_port_mixer),
  12475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12477. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12478. msm_routing_get_port_mixer,
  12479. msm_routing_put_port_mixer),
  12480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12482. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12483. msm_routing_get_port_mixer,
  12484. msm_routing_put_port_mixer),
  12485. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12488. msm_routing_get_port_mixer,
  12489. msm_routing_put_port_mixer),
  12490. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12493. msm_routing_get_port_mixer,
  12494. msm_routing_put_port_mixer),
  12495. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12497. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12498. msm_routing_get_port_mixer,
  12499. msm_routing_put_port_mixer),
  12500. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12502. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12503. msm_routing_get_port_mixer,
  12504. msm_routing_put_port_mixer),
  12505. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12507. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12508. msm_routing_get_port_mixer,
  12509. msm_routing_put_port_mixer),
  12510. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12512. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12513. msm_routing_get_port_mixer,
  12514. msm_routing_put_port_mixer),
  12515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12517. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12518. msm_routing_get_port_mixer,
  12519. msm_routing_put_port_mixer),
  12520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12522. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12523. msm_routing_get_port_mixer,
  12524. msm_routing_put_port_mixer),
  12525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12527. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12528. msm_routing_get_port_mixer,
  12529. msm_routing_put_port_mixer),
  12530. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12532. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12533. msm_routing_get_port_mixer,
  12534. msm_routing_put_port_mixer),
  12535. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12537. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12538. msm_routing_get_port_mixer,
  12539. msm_routing_put_port_mixer),
  12540. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12542. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12543. msm_routing_get_port_mixer,
  12544. msm_routing_put_port_mixer),
  12545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12547. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12548. msm_routing_get_port_mixer,
  12549. msm_routing_put_port_mixer),
  12550. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12552. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12553. msm_routing_get_port_mixer,
  12554. msm_routing_put_port_mixer),
  12555. };
  12556. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12559. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12560. msm_routing_get_port_mixer,
  12561. msm_routing_put_port_mixer),
  12562. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12564. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12565. msm_routing_get_port_mixer,
  12566. msm_routing_put_port_mixer),
  12567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12569. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12570. msm_routing_get_port_mixer,
  12571. msm_routing_put_port_mixer),
  12572. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12573. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12574. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12575. msm_routing_get_port_mixer,
  12576. msm_routing_put_port_mixer),
  12577. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12579. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12580. msm_routing_get_port_mixer,
  12581. msm_routing_put_port_mixer),
  12582. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12584. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12585. msm_routing_get_port_mixer,
  12586. msm_routing_put_port_mixer),
  12587. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12589. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12590. msm_routing_get_port_mixer,
  12591. msm_routing_put_port_mixer),
  12592. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12593. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12594. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12595. msm_routing_get_port_mixer,
  12596. msm_routing_put_port_mixer),
  12597. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12599. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12600. msm_routing_get_port_mixer,
  12601. msm_routing_put_port_mixer),
  12602. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12604. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12605. msm_routing_get_port_mixer,
  12606. msm_routing_put_port_mixer),
  12607. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12609. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12610. msm_routing_get_port_mixer,
  12611. msm_routing_put_port_mixer),
  12612. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12614. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12615. msm_routing_get_port_mixer,
  12616. msm_routing_put_port_mixer),
  12617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12619. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12620. msm_routing_get_port_mixer,
  12621. msm_routing_put_port_mixer),
  12622. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12624. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12625. msm_routing_get_port_mixer,
  12626. msm_routing_put_port_mixer),
  12627. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12629. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12630. msm_routing_get_port_mixer,
  12631. msm_routing_put_port_mixer),
  12632. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12634. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12635. msm_routing_get_port_mixer,
  12636. msm_routing_put_port_mixer),
  12637. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12639. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12640. msm_routing_get_port_mixer,
  12641. msm_routing_put_port_mixer),
  12642. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12644. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12645. msm_routing_get_port_mixer,
  12646. msm_routing_put_port_mixer),
  12647. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12649. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12650. msm_routing_get_port_mixer,
  12651. msm_routing_put_port_mixer),
  12652. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12654. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12655. msm_routing_get_port_mixer,
  12656. msm_routing_put_port_mixer),
  12657. };
  12658. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12659. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12661. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12662. msm_routing_get_port_mixer,
  12663. msm_routing_put_port_mixer),
  12664. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12666. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12667. msm_routing_get_port_mixer,
  12668. msm_routing_put_port_mixer),
  12669. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12671. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12672. msm_routing_get_port_mixer,
  12673. msm_routing_put_port_mixer),
  12674. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12676. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12677. msm_routing_get_port_mixer,
  12678. msm_routing_put_port_mixer),
  12679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12681. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12682. msm_routing_get_port_mixer,
  12683. msm_routing_put_port_mixer),
  12684. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12686. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12687. msm_routing_get_port_mixer,
  12688. msm_routing_put_port_mixer),
  12689. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12691. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12692. msm_routing_get_port_mixer,
  12693. msm_routing_put_port_mixer),
  12694. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12696. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12697. msm_routing_get_port_mixer,
  12698. msm_routing_put_port_mixer),
  12699. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12701. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12702. msm_routing_get_port_mixer,
  12703. msm_routing_put_port_mixer),
  12704. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12706. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12707. msm_routing_get_port_mixer,
  12708. msm_routing_put_port_mixer),
  12709. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12711. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12712. msm_routing_get_port_mixer,
  12713. msm_routing_put_port_mixer),
  12714. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12716. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12717. msm_routing_get_port_mixer,
  12718. msm_routing_put_port_mixer),
  12719. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12721. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12722. msm_routing_get_port_mixer,
  12723. msm_routing_put_port_mixer),
  12724. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12726. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12727. msm_routing_get_port_mixer,
  12728. msm_routing_put_port_mixer),
  12729. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12731. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12732. msm_routing_get_port_mixer,
  12733. msm_routing_put_port_mixer),
  12734. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12736. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12737. msm_routing_get_port_mixer,
  12738. msm_routing_put_port_mixer),
  12739. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12741. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12742. msm_routing_get_port_mixer,
  12743. msm_routing_put_port_mixer),
  12744. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12746. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12747. msm_routing_get_port_mixer,
  12748. msm_routing_put_port_mixer),
  12749. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12751. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12752. msm_routing_get_port_mixer,
  12753. msm_routing_put_port_mixer),
  12754. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12756. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12757. msm_routing_get_port_mixer,
  12758. msm_routing_put_port_mixer),
  12759. };
  12760. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12761. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12763. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12764. msm_routing_get_port_mixer,
  12765. msm_routing_put_port_mixer),
  12766. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12768. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12769. msm_routing_get_port_mixer,
  12770. msm_routing_put_port_mixer),
  12771. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12773. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12774. msm_routing_get_port_mixer,
  12775. msm_routing_put_port_mixer),
  12776. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12778. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12779. msm_routing_get_port_mixer,
  12780. msm_routing_put_port_mixer),
  12781. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12783. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12784. msm_routing_get_port_mixer,
  12785. msm_routing_put_port_mixer),
  12786. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12788. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12789. msm_routing_get_port_mixer,
  12790. msm_routing_put_port_mixer),
  12791. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12793. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12794. msm_routing_get_port_mixer,
  12795. msm_routing_put_port_mixer),
  12796. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12798. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12799. msm_routing_get_port_mixer,
  12800. msm_routing_put_port_mixer),
  12801. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12803. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12804. msm_routing_get_port_mixer,
  12805. msm_routing_put_port_mixer),
  12806. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12808. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12809. msm_routing_get_port_mixer,
  12810. msm_routing_put_port_mixer),
  12811. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12813. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12814. msm_routing_get_port_mixer,
  12815. msm_routing_put_port_mixer),
  12816. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12818. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12819. msm_routing_get_port_mixer,
  12820. msm_routing_put_port_mixer),
  12821. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12823. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12824. msm_routing_get_port_mixer,
  12825. msm_routing_put_port_mixer),
  12826. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12827. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12828. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12829. msm_routing_get_port_mixer,
  12830. msm_routing_put_port_mixer),
  12831. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12833. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12834. msm_routing_get_port_mixer,
  12835. msm_routing_put_port_mixer),
  12836. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12838. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12839. msm_routing_get_port_mixer,
  12840. msm_routing_put_port_mixer),
  12841. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12843. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12844. msm_routing_get_port_mixer,
  12845. msm_routing_put_port_mixer),
  12846. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12848. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12849. msm_routing_get_port_mixer,
  12850. msm_routing_put_port_mixer),
  12851. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12853. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12854. msm_routing_get_port_mixer,
  12855. msm_routing_put_port_mixer),
  12856. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12858. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12859. msm_routing_get_port_mixer,
  12860. msm_routing_put_port_mixer),
  12861. };
  12862. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12866. msm_routing_get_port_mixer,
  12867. msm_routing_put_port_mixer),
  12868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12871. msm_routing_get_port_mixer,
  12872. msm_routing_put_port_mixer),
  12873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12876. msm_routing_get_port_mixer,
  12877. msm_routing_put_port_mixer),
  12878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12881. msm_routing_get_port_mixer,
  12882. msm_routing_put_port_mixer),
  12883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12886. msm_routing_get_port_mixer,
  12887. msm_routing_put_port_mixer),
  12888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12891. msm_routing_get_port_mixer,
  12892. msm_routing_put_port_mixer),
  12893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12896. msm_routing_get_port_mixer,
  12897. msm_routing_put_port_mixer),
  12898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12901. msm_routing_get_port_mixer,
  12902. msm_routing_put_port_mixer),
  12903. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12905. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12906. msm_routing_get_port_mixer,
  12907. msm_routing_put_port_mixer),
  12908. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12910. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12911. msm_routing_get_port_mixer,
  12912. msm_routing_put_port_mixer),
  12913. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12915. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12916. msm_routing_get_port_mixer,
  12917. msm_routing_put_port_mixer),
  12918. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12920. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12921. msm_routing_get_port_mixer,
  12922. msm_routing_put_port_mixer),
  12923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12926. msm_routing_get_port_mixer,
  12927. msm_routing_put_port_mixer),
  12928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12931. msm_routing_get_port_mixer,
  12932. msm_routing_put_port_mixer),
  12933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12936. msm_routing_get_port_mixer,
  12937. msm_routing_put_port_mixer),
  12938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12941. msm_routing_get_port_mixer,
  12942. msm_routing_put_port_mixer),
  12943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12946. msm_routing_get_port_mixer,
  12947. msm_routing_put_port_mixer),
  12948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12951. msm_routing_get_port_mixer,
  12952. msm_routing_put_port_mixer),
  12953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12956. msm_routing_get_port_mixer,
  12957. msm_routing_put_port_mixer),
  12958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12961. msm_routing_get_port_mixer,
  12962. msm_routing_put_port_mixer),
  12963. };
  12964. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12965. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12967. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12968. msm_routing_get_port_mixer,
  12969. msm_routing_put_port_mixer),
  12970. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12972. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12973. msm_routing_get_port_mixer,
  12974. msm_routing_put_port_mixer),
  12975. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12977. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12978. msm_routing_get_port_mixer,
  12979. msm_routing_put_port_mixer),
  12980. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12982. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12983. msm_routing_get_port_mixer,
  12984. msm_routing_put_port_mixer),
  12985. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12987. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12988. msm_routing_get_port_mixer,
  12989. msm_routing_put_port_mixer),
  12990. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12992. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12993. msm_routing_get_port_mixer,
  12994. msm_routing_put_port_mixer),
  12995. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12997. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12998. msm_routing_get_port_mixer,
  12999. msm_routing_put_port_mixer),
  13000. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13002. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13003. msm_routing_get_port_mixer,
  13004. msm_routing_put_port_mixer),
  13005. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13007. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13008. msm_routing_get_port_mixer,
  13009. msm_routing_put_port_mixer),
  13010. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13012. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13013. msm_routing_get_port_mixer,
  13014. msm_routing_put_port_mixer),
  13015. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13017. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13018. msm_routing_get_port_mixer,
  13019. msm_routing_put_port_mixer),
  13020. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13022. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13023. msm_routing_get_port_mixer,
  13024. msm_routing_put_port_mixer),
  13025. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13027. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13028. msm_routing_get_port_mixer,
  13029. msm_routing_put_port_mixer),
  13030. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13032. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13033. msm_routing_get_port_mixer,
  13034. msm_routing_put_port_mixer),
  13035. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13037. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13038. msm_routing_get_port_mixer,
  13039. msm_routing_put_port_mixer),
  13040. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13042. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13043. msm_routing_get_port_mixer,
  13044. msm_routing_put_port_mixer),
  13045. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13047. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13048. msm_routing_get_port_mixer,
  13049. msm_routing_put_port_mixer),
  13050. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13052. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13053. msm_routing_get_port_mixer,
  13054. msm_routing_put_port_mixer),
  13055. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13057. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13058. msm_routing_get_port_mixer,
  13059. msm_routing_put_port_mixer),
  13060. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13062. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13063. msm_routing_get_port_mixer,
  13064. msm_routing_put_port_mixer),
  13065. };
  13066. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13067. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13069. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13070. msm_routing_get_port_mixer,
  13071. msm_routing_put_port_mixer),
  13072. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13074. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13075. msm_routing_get_port_mixer,
  13076. msm_routing_put_port_mixer),
  13077. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13079. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13080. msm_routing_get_port_mixer,
  13081. msm_routing_put_port_mixer),
  13082. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13084. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13085. msm_routing_get_port_mixer,
  13086. msm_routing_put_port_mixer),
  13087. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13089. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13090. msm_routing_get_port_mixer,
  13091. msm_routing_put_port_mixer),
  13092. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13094. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13095. msm_routing_get_port_mixer,
  13096. msm_routing_put_port_mixer),
  13097. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13099. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13100. msm_routing_get_port_mixer,
  13101. msm_routing_put_port_mixer),
  13102. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13104. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13105. msm_routing_get_port_mixer,
  13106. msm_routing_put_port_mixer),
  13107. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13109. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13110. msm_routing_get_port_mixer,
  13111. msm_routing_put_port_mixer),
  13112. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13114. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13115. msm_routing_get_port_mixer,
  13116. msm_routing_put_port_mixer),
  13117. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13119. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13120. msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13124. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13125. msm_routing_get_port_mixer,
  13126. msm_routing_put_port_mixer),
  13127. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13129. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13130. msm_routing_get_port_mixer,
  13131. msm_routing_put_port_mixer),
  13132. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13134. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13135. msm_routing_get_port_mixer,
  13136. msm_routing_put_port_mixer),
  13137. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13139. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13140. msm_routing_get_port_mixer,
  13141. msm_routing_put_port_mixer),
  13142. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13144. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13145. msm_routing_get_port_mixer,
  13146. msm_routing_put_port_mixer),
  13147. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13149. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13150. msm_routing_get_port_mixer,
  13151. msm_routing_put_port_mixer),
  13152. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13154. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13155. msm_routing_get_port_mixer,
  13156. msm_routing_put_port_mixer),
  13157. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13159. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13160. msm_routing_get_port_mixer,
  13161. msm_routing_put_port_mixer),
  13162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13164. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13165. msm_routing_get_port_mixer,
  13166. msm_routing_put_port_mixer),
  13167. };
  13168. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13169. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13171. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13172. msm_routing_get_port_mixer,
  13173. msm_routing_put_port_mixer),
  13174. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13176. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13177. msm_routing_get_port_mixer,
  13178. msm_routing_put_port_mixer),
  13179. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13181. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13182. msm_routing_get_port_mixer,
  13183. msm_routing_put_port_mixer),
  13184. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13186. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13187. msm_routing_get_port_mixer,
  13188. msm_routing_put_port_mixer),
  13189. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13191. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13192. msm_routing_get_port_mixer,
  13193. msm_routing_put_port_mixer),
  13194. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13196. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13197. msm_routing_get_port_mixer,
  13198. msm_routing_put_port_mixer),
  13199. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13201. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13202. msm_routing_get_port_mixer,
  13203. msm_routing_put_port_mixer),
  13204. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13206. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13207. msm_routing_get_port_mixer,
  13208. msm_routing_put_port_mixer),
  13209. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13211. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13212. msm_routing_get_port_mixer,
  13213. msm_routing_put_port_mixer),
  13214. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13215. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13216. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13217. msm_routing_get_port_mixer,
  13218. msm_routing_put_port_mixer),
  13219. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13221. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13222. msm_routing_get_port_mixer,
  13223. msm_routing_put_port_mixer),
  13224. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13226. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13227. msm_routing_get_port_mixer,
  13228. msm_routing_put_port_mixer),
  13229. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13231. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13232. msm_routing_get_port_mixer,
  13233. msm_routing_put_port_mixer),
  13234. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13236. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13237. msm_routing_get_port_mixer,
  13238. msm_routing_put_port_mixer),
  13239. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13241. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13242. msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13246. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13247. msm_routing_get_port_mixer,
  13248. msm_routing_put_port_mixer),
  13249. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13251. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13252. msm_routing_get_port_mixer,
  13253. msm_routing_put_port_mixer),
  13254. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13256. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13257. msm_routing_get_port_mixer,
  13258. msm_routing_put_port_mixer),
  13259. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13261. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13262. msm_routing_get_port_mixer,
  13263. msm_routing_put_port_mixer),
  13264. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13266. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13267. msm_routing_get_port_mixer,
  13268. msm_routing_put_port_mixer),
  13269. };
  13270. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13271. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13273. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13274. msm_routing_get_port_mixer,
  13275. msm_routing_put_port_mixer),
  13276. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13278. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13279. msm_routing_get_port_mixer,
  13280. msm_routing_put_port_mixer),
  13281. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13283. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13284. msm_routing_get_port_mixer,
  13285. msm_routing_put_port_mixer),
  13286. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13287. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13288. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13289. msm_routing_get_port_mixer,
  13290. msm_routing_put_port_mixer),
  13291. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13293. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13294. msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13298. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13299. msm_routing_get_port_mixer,
  13300. msm_routing_put_port_mixer),
  13301. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13303. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13304. msm_routing_get_port_mixer,
  13305. msm_routing_put_port_mixer),
  13306. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13308. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13309. msm_routing_get_port_mixer,
  13310. msm_routing_put_port_mixer),
  13311. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13313. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13314. msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13318. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13319. msm_routing_get_port_mixer,
  13320. msm_routing_put_port_mixer),
  13321. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13323. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13324. msm_routing_get_port_mixer,
  13325. msm_routing_put_port_mixer),
  13326. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13328. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13329. msm_routing_get_port_mixer,
  13330. msm_routing_put_port_mixer),
  13331. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13333. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13334. msm_routing_get_port_mixer,
  13335. msm_routing_put_port_mixer),
  13336. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13338. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13339. msm_routing_get_port_mixer,
  13340. msm_routing_put_port_mixer),
  13341. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13343. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13344. msm_routing_get_port_mixer,
  13345. msm_routing_put_port_mixer),
  13346. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13348. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13349. msm_routing_get_port_mixer,
  13350. msm_routing_put_port_mixer),
  13351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13353. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13354. msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13358. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13359. msm_routing_get_port_mixer,
  13360. msm_routing_put_port_mixer),
  13361. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13363. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13364. msm_routing_get_port_mixer,
  13365. msm_routing_put_port_mixer),
  13366. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13368. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13369. msm_routing_get_port_mixer,
  13370. msm_routing_put_port_mixer),
  13371. };
  13372. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13373. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13375. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13376. msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13380. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13381. msm_routing_get_port_mixer,
  13382. msm_routing_put_port_mixer),
  13383. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13385. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13386. msm_routing_get_port_mixer,
  13387. msm_routing_put_port_mixer),
  13388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13391. msm_routing_get_port_mixer,
  13392. msm_routing_put_port_mixer),
  13393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13395. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13396. msm_routing_get_port_mixer,
  13397. msm_routing_put_port_mixer),
  13398. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13400. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13401. msm_routing_get_port_mixer,
  13402. msm_routing_put_port_mixer),
  13403. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13405. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13406. msm_routing_get_port_mixer,
  13407. msm_routing_put_port_mixer),
  13408. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13410. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13411. msm_routing_get_port_mixer,
  13412. msm_routing_put_port_mixer),
  13413. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13415. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13416. msm_routing_get_port_mixer,
  13417. msm_routing_put_port_mixer),
  13418. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13420. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13421. msm_routing_get_port_mixer,
  13422. msm_routing_put_port_mixer),
  13423. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13425. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13426. msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13430. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13431. msm_routing_get_port_mixer,
  13432. msm_routing_put_port_mixer),
  13433. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13435. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13436. msm_routing_get_port_mixer,
  13437. msm_routing_put_port_mixer),
  13438. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13440. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13441. msm_routing_get_port_mixer,
  13442. msm_routing_put_port_mixer),
  13443. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13445. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13446. msm_routing_get_port_mixer,
  13447. msm_routing_put_port_mixer),
  13448. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13450. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13451. msm_routing_get_port_mixer,
  13452. msm_routing_put_port_mixer),
  13453. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13455. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13456. msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13460. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13461. msm_routing_get_port_mixer,
  13462. msm_routing_put_port_mixer),
  13463. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13465. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13466. msm_routing_get_port_mixer,
  13467. msm_routing_put_port_mixer),
  13468. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13470. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13471. msm_routing_get_port_mixer,
  13472. msm_routing_put_port_mixer),
  13473. };
  13474. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13475. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13477. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, 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_TERTIARY_MI2S_RX,
  13481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13482. msm_routing_put_port_mixer),
  13483. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13485. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13489. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13490. msm_routing_put_port_mixer),
  13491. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13493. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13494. msm_routing_put_port_mixer),
  13495. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13497. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13501. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. };
  13504. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13505. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13507. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13511. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13512. msm_routing_put_port_mixer),
  13513. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13516. msm_routing_put_port_mixer),
  13517. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13519. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13523. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13524. msm_routing_put_port_mixer),
  13525. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13527. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13531. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13535. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13536. msm_routing_put_port_mixer),
  13537. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13539. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. };
  13542. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13543. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13545. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13546. msm_routing_put_listen_mixer),
  13547. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13549. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13550. msm_routing_put_listen_mixer),
  13551. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13554. msm_routing_put_listen_mixer),
  13555. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13557. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13558. msm_routing_put_listen_mixer),
  13559. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13561. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13562. msm_routing_put_listen_mixer),
  13563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13565. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13566. msm_routing_put_listen_mixer),
  13567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13569. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13570. msm_routing_put_listen_mixer),
  13571. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13573. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13574. msm_routing_put_listen_mixer),
  13575. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13577. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13578. msm_routing_put_listen_mixer),
  13579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13581. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13582. msm_routing_put_listen_mixer),
  13583. };
  13584. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13585. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13587. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13588. msm_routing_put_listen_mixer),
  13589. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13590. SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13592. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13593. msm_routing_put_listen_mixer),
  13594. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13596. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13597. msm_routing_put_listen_mixer),
  13598. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13601. msm_routing_put_listen_mixer),
  13602. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13605. msm_routing_put_listen_mixer),
  13606. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13609. msm_routing_put_listen_mixer),
  13610. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13612. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13613. msm_routing_put_listen_mixer),
  13614. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13616. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13617. msm_routing_put_listen_mixer),
  13618. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13620. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13621. msm_routing_put_listen_mixer),
  13622. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13624. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13625. msm_routing_put_listen_mixer),
  13626. };
  13627. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13628. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13630. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13631. msm_routing_put_listen_mixer),
  13632. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13635. msm_routing_put_listen_mixer),
  13636. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13639. msm_routing_put_listen_mixer),
  13640. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13643. msm_routing_put_listen_mixer),
  13644. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13647. msm_routing_put_listen_mixer),
  13648. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13650. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13651. msm_routing_put_listen_mixer),
  13652. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13654. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13655. msm_routing_put_listen_mixer),
  13656. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13658. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13659. msm_routing_put_listen_mixer),
  13660. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13662. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13663. msm_routing_put_listen_mixer),
  13664. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13666. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13667. msm_routing_put_listen_mixer),
  13668. };
  13669. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13670. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13672. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13673. msm_routing_put_listen_mixer),
  13674. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13676. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13677. msm_routing_put_listen_mixer),
  13678. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13681. msm_routing_put_listen_mixer),
  13682. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13684. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13685. msm_routing_put_listen_mixer),
  13686. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13688. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13689. msm_routing_put_listen_mixer),
  13690. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13692. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13693. msm_routing_put_listen_mixer),
  13694. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13696. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13697. msm_routing_put_listen_mixer),
  13698. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13700. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13701. msm_routing_put_listen_mixer),
  13702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13704. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13705. msm_routing_put_listen_mixer),
  13706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13708. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13709. msm_routing_put_listen_mixer),
  13710. };
  13711. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13712. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13714. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13715. msm_routing_put_listen_mixer),
  13716. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13718. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13719. msm_routing_put_listen_mixer),
  13720. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13722. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13723. msm_routing_put_listen_mixer),
  13724. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13726. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13727. msm_routing_put_listen_mixer),
  13728. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13730. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13731. msm_routing_put_listen_mixer),
  13732. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13734. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13735. msm_routing_put_listen_mixer),
  13736. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13738. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13739. msm_routing_put_listen_mixer),
  13740. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13742. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13743. msm_routing_put_listen_mixer),
  13744. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13746. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13747. msm_routing_put_listen_mixer),
  13748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13750. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13751. msm_routing_put_listen_mixer),
  13752. };
  13753. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13754. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13756. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13757. msm_routing_put_listen_mixer),
  13758. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13760. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13761. msm_routing_put_listen_mixer),
  13762. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13764. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13765. msm_routing_put_listen_mixer),
  13766. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13768. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13769. msm_routing_put_listen_mixer),
  13770. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13772. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13773. msm_routing_put_listen_mixer),
  13774. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13776. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13777. msm_routing_put_listen_mixer),
  13778. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13780. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13781. msm_routing_put_listen_mixer),
  13782. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13784. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13785. msm_routing_put_listen_mixer),
  13786. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13788. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13789. msm_routing_put_listen_mixer),
  13790. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13792. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13793. msm_routing_put_listen_mixer),
  13794. };
  13795. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13796. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13798. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13799. msm_routing_put_listen_mixer),
  13800. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13802. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13803. msm_routing_put_listen_mixer),
  13804. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13806. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13807. msm_routing_put_listen_mixer),
  13808. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13810. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13811. msm_routing_put_listen_mixer),
  13812. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13814. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13815. msm_routing_put_listen_mixer),
  13816. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13818. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13819. msm_routing_put_listen_mixer),
  13820. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13822. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13823. msm_routing_put_listen_mixer),
  13824. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13826. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13827. msm_routing_put_listen_mixer),
  13828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13830. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13831. msm_routing_put_listen_mixer),
  13832. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13834. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13835. msm_routing_put_listen_mixer),
  13836. };
  13837. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13838. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13840. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13841. msm_routing_put_listen_mixer),
  13842. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13844. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13845. msm_routing_put_listen_mixer),
  13846. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13848. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13852. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13853. msm_routing_put_listen_mixer),
  13854. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13856. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13857. msm_routing_put_listen_mixer),
  13858. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13860. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13861. msm_routing_put_listen_mixer),
  13862. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13864. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13865. msm_routing_put_listen_mixer),
  13866. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13868. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13869. msm_routing_put_listen_mixer),
  13870. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13872. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13873. msm_routing_put_listen_mixer),
  13874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13876. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13877. msm_routing_put_listen_mixer),
  13878. };
  13879. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13880. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13881. 0, 1, 0, msm_routing_get_switch_mixer,
  13882. msm_routing_put_switch_mixer);
  13883. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13884. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13885. 0, 1, 0, msm_routing_get_switch_mixer,
  13886. msm_routing_put_switch_mixer);
  13887. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13888. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13889. 0, 1, 0, msm_routing_get_switch_mixer,
  13890. msm_routing_put_switch_mixer);
  13891. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13892. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13893. 0, 1, 0, msm_routing_get_switch_mixer,
  13894. msm_routing_put_switch_mixer);
  13895. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13896. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13897. 0, 1, 0, msm_routing_get_switch_mixer,
  13898. msm_routing_put_switch_mixer);
  13899. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13900. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13901. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13902. msm_routing_put_fm_pcmrx_switch_mixer);
  13903. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13904. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13905. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13906. msm_routing_put_int0_mi2s_switch_mixer);
  13907. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13908. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13909. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13910. msm_routing_put_int4_mi2s_switch_mixer);
  13911. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13912. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13913. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13914. msm_routing_put_pri_mi2s_switch_mixer);
  13915. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13916. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13917. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13918. msm_routing_put_sec_mi2s_switch_mixer);
  13919. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13920. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13921. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13922. msm_routing_put_tert_mi2s_switch_mixer);
  13923. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13924. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13925. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13926. msm_routing_put_quat_mi2s_switch_mixer);
  13927. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13928. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13929. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13930. msm_routing_put_quin_mi2s_switch_mixer);
  13931. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13932. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13933. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13934. msm_routing_put_hfp_switch_mixer);
  13935. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13936. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13937. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13938. msm_routing_put_hfp_switch_mixer);
  13939. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13940. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13941. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13942. msm_routing_put_hfp_switch_mixer);
  13943. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13944. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13945. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13946. msm_routing_put_hfp_switch_mixer);
  13947. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13948. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13949. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13950. msm_routing_put_usb_switch_mixer);
  13951. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13952. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13953. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13954. msm_routing_a2dp_switch_mixer_put);
  13955. static const struct soc_enum lsm_port_enum =
  13956. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13957. static const char * const lsm_func_text[] = {
  13958. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13959. };
  13960. static const struct soc_enum lsm_func_enum =
  13961. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13962. static const struct snd_kcontrol_new lsm_controls[] = {
  13963. /* kcontrol of lsm_function */
  13964. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13965. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13966. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13967. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13968. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13969. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13970. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13971. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13972. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13973. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13974. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13975. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13976. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13977. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13978. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13979. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13980. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13981. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13982. /* kcontrol of lsm_port */
  13983. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13984. msm_routing_lsm_port_get,
  13985. msm_routing_lsm_port_put),
  13986. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13987. msm_routing_lsm_port_get,
  13988. msm_routing_lsm_port_put),
  13989. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13990. msm_routing_lsm_port_get,
  13991. msm_routing_lsm_port_put),
  13992. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  13993. msm_routing_lsm_port_get,
  13994. msm_routing_lsm_port_put),
  13995. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  13996. msm_routing_lsm_port_get,
  13997. msm_routing_lsm_port_put),
  13998. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  13999. msm_routing_lsm_port_get,
  14000. msm_routing_lsm_port_put),
  14001. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14002. msm_routing_lsm_port_get,
  14003. msm_routing_lsm_port_put),
  14004. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14005. msm_routing_lsm_port_get,
  14006. msm_routing_lsm_port_put),
  14007. };
  14008. static const char * const aanc_slim_0_rx_text[] = {
  14009. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14010. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14011. };
  14012. static const struct soc_enum aanc_slim_0_rx_enum =
  14013. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14014. aanc_slim_0_rx_text);
  14015. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14016. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14017. msm_routing_slim_0_rx_aanc_mux_get,
  14018. msm_routing_slim_0_rx_aanc_mux_put)
  14019. };
  14020. static int msm_routing_get_stereo_to_custom_stereo_control(
  14021. struct snd_kcontrol *kcontrol,
  14022. struct snd_ctl_elem_value *ucontrol)
  14023. {
  14024. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14025. return 0;
  14026. }
  14027. static int msm_routing_put_stereo_to_custom_stereo_control(
  14028. struct snd_kcontrol *kcontrol,
  14029. struct snd_ctl_elem_value *ucontrol)
  14030. {
  14031. int flag = 0, i = 0, rc = 0, idx = 0;
  14032. int be_index = 0, port_id, topo_id;
  14033. unsigned int session_id = 0;
  14034. uint16_t op_FL_ip_FL_weight = 0;
  14035. uint16_t op_FL_ip_FR_weight = 0;
  14036. uint16_t op_FR_ip_FL_weight = 0;
  14037. uint16_t op_FR_ip_FR_weight = 0;
  14038. flag = ucontrol->value.integer.value[0];
  14039. pr_debug("%s E flag %d\n", __func__, flag);
  14040. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14041. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14042. __func__, is_custom_stereo_on, flag);
  14043. return 0;
  14044. }
  14045. is_custom_stereo_on = flag ? true : false;
  14046. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14047. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14048. port_id = msm_bedais[be_index].port_id;
  14049. if (!msm_bedais[be_index].active)
  14050. continue;
  14051. if ((port_id != SLIMBUS_0_RX) &&
  14052. (port_id != RT_PROXY_PORT_001_RX) &&
  14053. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14054. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14055. continue;
  14056. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14057. MSM_FRONTEND_DAI_MM_SIZE) {
  14058. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14059. LEGACY_PCM_MODE)
  14060. goto skip_send_custom_stereo;
  14061. session_id =
  14062. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14063. if (is_custom_stereo_on) {
  14064. op_FL_ip_FL_weight =
  14065. Q14_GAIN_ZERO_POINT_FIVE;
  14066. op_FL_ip_FR_weight =
  14067. Q14_GAIN_ZERO_POINT_FIVE;
  14068. op_FR_ip_FL_weight =
  14069. Q14_GAIN_ZERO_POINT_FIVE;
  14070. op_FR_ip_FR_weight =
  14071. Q14_GAIN_ZERO_POINT_FIVE;
  14072. } else {
  14073. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14074. op_FL_ip_FR_weight = 0;
  14075. op_FR_ip_FL_weight = 0;
  14076. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14077. }
  14078. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14079. unsigned long copp =
  14080. session_copp_map[i]
  14081. [SESSION_TYPE_RX][be_index];
  14082. if (!test_bit(idx, &copp))
  14083. goto skip_send_custom_stereo;
  14084. topo_id = adm_get_topology_for_port_copp_idx(
  14085. msm_bedais[be_index].port_id, idx);
  14086. if (topo_id < 0)
  14087. pr_debug("%s:Err:custom stereo topo %d",
  14088. __func__, topo_id);
  14089. pr_debug("idx %d\n", idx);
  14090. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14091. rc = msm_ds2_dap_set_custom_stereo_onoff
  14092. (msm_bedais[be_index].port_id,
  14093. idx, is_custom_stereo_on);
  14094. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14095. rc = dolby_dap_set_custom_stereo_onoff(
  14096. msm_bedais[be_index].port_id,
  14097. idx, is_custom_stereo_on);
  14098. else
  14099. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14100. (msm_bedais[be_index].port_id,
  14101. idx, session_id,
  14102. op_FL_ip_FL_weight,
  14103. op_FL_ip_FR_weight,
  14104. op_FR_ip_FL_weight,
  14105. op_FR_ip_FR_weight);
  14106. if (rc < 0)
  14107. skip_send_custom_stereo:
  14108. pr_err("%s: err setting custom stereo\n",
  14109. __func__);
  14110. }
  14111. }
  14112. }
  14113. return 0;
  14114. }
  14115. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14116. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14117. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14118. msm_routing_put_stereo_to_custom_stereo_control),
  14119. };
  14120. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14121. struct snd_ctl_elem_value *ucontrol)
  14122. {
  14123. return 0;
  14124. }
  14125. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14126. struct snd_ctl_elem_value *ucontrol)
  14127. {
  14128. int i = 0, j;
  14129. int num_app_types = ucontrol->value.integer.value[i++];
  14130. pr_debug("%s\n", __func__);
  14131. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14132. sizeof(struct msm_pcm_routing_app_type_data));
  14133. if (num_app_types > MAX_APP_TYPES) {
  14134. pr_err("%s: number of app types exceed the max supported\n",
  14135. __func__);
  14136. return -EINVAL;
  14137. }
  14138. for (j = 0; j < num_app_types; j++) {
  14139. app_type_cfg[j].app_type =
  14140. ucontrol->value.integer.value[i++];
  14141. app_type_cfg[j].sample_rate =
  14142. ucontrol->value.integer.value[i++];
  14143. app_type_cfg[j].bit_width =
  14144. ucontrol->value.integer.value[i++];
  14145. }
  14146. return 0;
  14147. }
  14148. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14149. struct snd_ctl_elem_value *ucontrol)
  14150. {
  14151. int j, fe_id, be_id, port_type;
  14152. int ret = 0;
  14153. unsigned long copp;
  14154. struct msm_pcm_routing_bdai_data *bedai;
  14155. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14156. SESSION_TYPE_RX;
  14157. int app_type = ucontrol->value.integer.value[1];
  14158. int gain = (ucontrol->value.integer.value[2] +
  14159. ucontrol->value.integer.value[3])/2;
  14160. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14161. MSM_AFE_PORT_TYPE_TX;
  14162. mutex_lock(&routing_lock);
  14163. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14164. if (is_be_dai_extproc(be_id))
  14165. continue;
  14166. bedai = &msm_bedais[be_id];
  14167. if (afe_get_port_type(bedai->port_id) != port_type)
  14168. continue;
  14169. if (!bedai->active)
  14170. continue;
  14171. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14172. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14173. continue;
  14174. if (app_type !=
  14175. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14176. continue;
  14177. copp = session_copp_map[fe_id][dir][be_id];
  14178. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14179. if (!test_bit(j, &copp))
  14180. continue;
  14181. ret |= adm_set_volume(bedai->port_id, j, gain);
  14182. }
  14183. }
  14184. }
  14185. mutex_unlock(&routing_lock);
  14186. return ret ? -EINVAL : 0;
  14187. }
  14188. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14189. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14190. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14191. msm_routing_put_app_type_cfg_control),
  14192. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14193. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14194. };
  14195. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14196. struct snd_ctl_elem_value *ucontrol)
  14197. {
  14198. int copp_idx, fe_id, be_id, port_type;
  14199. int ret = 0;
  14200. unsigned long copp;
  14201. struct msm_pcm_routing_bdai_data *bedai;
  14202. u8 *packed_params = NULL;
  14203. struct param_hdr_v3 param_hdr;
  14204. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14205. sizeof(uint32_t));
  14206. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14207. SESSION_TYPE_RX;
  14208. int app_type = ucontrol->value.integer.value[1];
  14209. int module_id = ucontrol->value.integer.value[2];
  14210. int instance_id = ucontrol->value.integer.value[3];
  14211. int param_id = ucontrol->value.integer.value[4];
  14212. int param_value = ucontrol->value.integer.value[5];
  14213. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14214. MSM_AFE_PORT_TYPE_TX;
  14215. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14216. __func__, app_type, module_id,
  14217. instance_id, param_id, param_value);
  14218. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14219. if (!packed_params)
  14220. return -ENOMEM;
  14221. memset(&param_hdr, 0, sizeof(param_hdr));
  14222. param_hdr.module_id = module_id;
  14223. param_hdr.instance_id = instance_id;
  14224. param_hdr.param_id = param_id;
  14225. param_hdr.param_size = sizeof(uint32_t);
  14226. packed_param_size = 0;
  14227. mutex_lock(&routing_lock);
  14228. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14229. if (is_be_dai_extproc(be_id))
  14230. continue;
  14231. bedai = &msm_bedais[be_id];
  14232. if (afe_get_port_type(bedai->port_id) != port_type)
  14233. continue;
  14234. if (!bedai->active)
  14235. continue;
  14236. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14237. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14238. continue;
  14239. if (app_type !=
  14240. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14241. continue;
  14242. copp = session_copp_map[fe_id][dir][be_id];
  14243. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14244. copp_idx++) {
  14245. if (!test_bit(copp_idx, &copp))
  14246. continue;
  14247. ret = q6common_pack_pp_params(packed_params,
  14248. &param_hdr,
  14249. (u8 *) &param_value,
  14250. &packed_param_size);
  14251. if (ret) {
  14252. pr_err("%s: Failed to pack params, error %d\n",
  14253. __func__, ret);
  14254. goto done;
  14255. }
  14256. ret = adm_set_pp_params(bedai->port_id,
  14257. copp_idx, NULL,
  14258. packed_params,
  14259. packed_param_size);
  14260. if (ret) {
  14261. pr_err("%s: Setting param failed with err=%d\n",
  14262. __func__, ret);
  14263. ret = -EINVAL;
  14264. goto done;
  14265. }
  14266. }
  14267. }
  14268. }
  14269. done:
  14270. mutex_unlock(&routing_lock);
  14271. kfree(packed_params);
  14272. return ret;
  14273. }
  14274. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14275. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14276. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14277. };
  14278. static int msm_routing_get_lsm_app_type_cfg_control(
  14279. struct snd_kcontrol *kcontrol,
  14280. struct snd_ctl_elem_value *ucontrol)
  14281. {
  14282. return 0;
  14283. }
  14284. static int msm_routing_put_lsm_app_type_cfg_control(
  14285. struct snd_kcontrol *kcontrol,
  14286. struct snd_ctl_elem_value *ucontrol)
  14287. {
  14288. int shift = ((struct soc_multi_mixer_control *)
  14289. kcontrol->private_value)->shift;
  14290. int i = 0, j;
  14291. int num_app_types = ucontrol->value.integer.value[i++];
  14292. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14293. sizeof(struct msm_pcm_routing_app_type_data));
  14294. if (num_app_types > MAX_APP_TYPES) {
  14295. pr_err("%s: number of app types exceed the max supported\n",
  14296. __func__);
  14297. return -EINVAL;
  14298. }
  14299. for (j = 0; j < num_app_types; j++) {
  14300. lsm_app_type_cfg[j].app_type =
  14301. ucontrol->value.integer.value[i++];
  14302. lsm_app_type_cfg[j].sample_rate =
  14303. ucontrol->value.integer.value[i++];
  14304. lsm_app_type_cfg[j].bit_width =
  14305. ucontrol->value.integer.value[i++];
  14306. /* Shift of 1 indicates this is V2 mixer control */
  14307. if (shift == 1)
  14308. lsm_app_type_cfg[j].num_out_channels =
  14309. ucontrol->value.integer.value[i++];
  14310. }
  14311. return 0;
  14312. }
  14313. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14314. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14315. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14316. msm_routing_put_lsm_app_type_cfg_control),
  14317. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14318. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14319. msm_routing_put_lsm_app_type_cfg_control),
  14320. };
  14321. static int msm_routing_get_use_ds1_or_ds2_control(
  14322. struct snd_kcontrol *kcontrol,
  14323. struct snd_ctl_elem_value *ucontrol)
  14324. {
  14325. ucontrol->value.integer.value[0] = is_ds2_on;
  14326. return 0;
  14327. }
  14328. static int msm_routing_put_use_ds1_or_ds2_control(
  14329. struct snd_kcontrol *kcontrol,
  14330. struct snd_ctl_elem_value *ucontrol)
  14331. {
  14332. is_ds2_on = ucontrol->value.integer.value[0];
  14333. return 0;
  14334. }
  14335. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14336. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14337. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14338. msm_routing_put_use_ds1_or_ds2_control),
  14339. };
  14340. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14341. struct snd_ctl_elem_value *ucontrol) {
  14342. int rc = 0;
  14343. int be_idx = 0;
  14344. char *param_value;
  14345. int *update_param_value;
  14346. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14347. struct param_hdr_v3 param_hdr;
  14348. param_value = kzalloc(param_size, GFP_KERNEL);
  14349. if (!param_value)
  14350. return -ENOMEM;
  14351. memset(&param_hdr, 0, sizeof(param_hdr));
  14352. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14353. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14354. break;
  14355. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14356. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14357. param_hdr.instance_id = INSTANCE_ID_0;
  14358. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14359. param_hdr.param_size = param_size;
  14360. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14361. NULL, &param_hdr, (u8 *) param_value);
  14362. if (rc) {
  14363. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14364. kfree(param_value);
  14365. return -EINVAL;
  14366. }
  14367. update_param_value = (int *)param_value;
  14368. ucontrol->value.integer.value[0] = update_param_value[0];
  14369. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14370. __func__, update_param_value[0]);
  14371. }
  14372. kfree(param_value);
  14373. return 0;
  14374. }
  14375. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14376. struct snd_ctl_elem_value *ucontrol)
  14377. {
  14378. voc_session_id = ucontrol->value.integer.value[0];
  14379. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14380. return 0;
  14381. }
  14382. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14383. struct snd_ctl_elem_value *ucontrol)
  14384. {
  14385. ucontrol->value.integer.value[0] = voc_session_id;
  14386. return 0;
  14387. }
  14388. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14389. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14390. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14391. msm_voc_session_id_put),
  14392. };
  14393. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14394. struct snd_ctl_elem_info *uinfo)
  14395. {
  14396. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14397. uinfo->count = sizeof(struct sound_focus_param);
  14398. return 0;
  14399. }
  14400. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14401. struct snd_ctl_elem_value *ucontrol)
  14402. {
  14403. int ret = 0;
  14404. struct sound_focus_param soundFocusData;
  14405. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14406. sizeof(struct sound_focus_param));
  14407. ret = voc_set_sound_focus(soundFocusData);
  14408. if (ret) {
  14409. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14410. __func__, ret);
  14411. ret = -EINVAL;
  14412. }
  14413. return ret;
  14414. }
  14415. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14416. struct snd_ctl_elem_value *ucontrol)
  14417. {
  14418. int ret = 0;
  14419. struct sound_focus_param soundFocusData;
  14420. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14421. ret = voc_get_sound_focus(&soundFocusData);
  14422. if (ret) {
  14423. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14424. __func__, ret);
  14425. ret = -EINVAL;
  14426. goto done;
  14427. }
  14428. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14429. sizeof(struct sound_focus_param));
  14430. done:
  14431. return ret;
  14432. }
  14433. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14434. struct snd_ctl_elem_info *uinfo)
  14435. {
  14436. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14437. uinfo->count = sizeof(struct source_tracking_param);
  14438. return 0;
  14439. }
  14440. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14441. struct snd_ctl_elem_value *ucontrol)
  14442. {
  14443. int ret = 0;
  14444. struct source_tracking_param sourceTrackingData;
  14445. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14446. ret = voc_get_source_tracking(&sourceTrackingData);
  14447. if (ret) {
  14448. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14449. __func__, ret);
  14450. ret = -EINVAL;
  14451. goto done;
  14452. }
  14453. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14454. sizeof(struct source_tracking_param));
  14455. done:
  14456. return ret;
  14457. }
  14458. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14459. int *copp_idx)
  14460. {
  14461. int i, idx, be_idx;
  14462. int ret = 0;
  14463. unsigned long copp;
  14464. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14465. ret = q6audio_validate_port(port_id);
  14466. if (ret < 0) {
  14467. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14468. __func__, port_id, ret);
  14469. ret = -EINVAL;
  14470. goto done;
  14471. }
  14472. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14473. if (msm_bedais[be_idx].port_id == port_id)
  14474. break;
  14475. }
  14476. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14477. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14478. ret = -EINVAL;
  14479. goto done;
  14480. }
  14481. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14482. MSM_FRONTEND_DAI_MM_SIZE) {
  14483. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14484. copp = session_copp_map[i]
  14485. [session_type][be_idx];
  14486. if (test_bit(idx, &copp))
  14487. break;
  14488. }
  14489. if (idx >= MAX_COPPS_PER_PORT)
  14490. continue;
  14491. else
  14492. break;
  14493. }
  14494. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14495. pr_err("%s: Invalid FE, exiting\n", __func__);
  14496. ret = -EINVAL;
  14497. goto done;
  14498. }
  14499. *copp_idx = idx;
  14500. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14501. done:
  14502. return ret;
  14503. }
  14504. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14505. const char *prefix, int *port_id)
  14506. {
  14507. int ret = 0;
  14508. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14509. /*
  14510. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14511. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14512. * and compare the string with the backend name to derive the port id.
  14513. */
  14514. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14515. "SLIMBUS_0")) {
  14516. *port_id = SLIMBUS_0_TX;
  14517. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14518. "TERT_MI2S")) {
  14519. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14520. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14521. "INT3_MI2S")) {
  14522. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14523. } else {
  14524. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14525. __func__, kcontrol->id.name);
  14526. ret = -EINVAL;
  14527. goto done;
  14528. }
  14529. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14530. __func__, kcontrol->id.name, *port_id);
  14531. done:
  14532. return ret;
  14533. }
  14534. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14535. struct snd_ctl_elem_value *ucontrol)
  14536. {
  14537. int ret = 0;
  14538. struct sound_focus_param soundFocusData;
  14539. int port_id, copp_idx;
  14540. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14541. "Sound Focus Audio Tx ", &port_id);
  14542. if (ret != 0) {
  14543. pr_err("%s: Error in deriving port id, err=%d\n",
  14544. __func__, ret);
  14545. ret = -EINVAL;
  14546. goto done;
  14547. }
  14548. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14549. &copp_idx);
  14550. if (ret) {
  14551. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14552. __func__, port_id);
  14553. ret = -EINVAL;
  14554. goto done;
  14555. }
  14556. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14557. sizeof(struct sound_focus_param));
  14558. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14559. if (ret) {
  14560. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14561. __func__, ret);
  14562. ret = -EINVAL;
  14563. goto done;
  14564. }
  14565. done:
  14566. return ret;
  14567. }
  14568. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14569. struct snd_ctl_elem_value *ucontrol)
  14570. {
  14571. int ret = 0;
  14572. struct sound_focus_param soundFocusData;
  14573. int port_id, copp_idx;
  14574. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14575. "Sound Focus Audio Tx ", &port_id);
  14576. if (ret) {
  14577. pr_err("%s: Error in deriving port id, err=%d\n",
  14578. __func__, ret);
  14579. ret = -EINVAL;
  14580. goto done;
  14581. }
  14582. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14583. &copp_idx);
  14584. if (ret) {
  14585. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14586. __func__, port_id);
  14587. ret = -EINVAL;
  14588. goto done;
  14589. }
  14590. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14591. if (ret) {
  14592. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14593. __func__, ret);
  14594. ret = -EINVAL;
  14595. goto done;
  14596. }
  14597. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14598. sizeof(struct sound_focus_param));
  14599. done:
  14600. return ret;
  14601. }
  14602. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14603. struct snd_ctl_elem_value *ucontrol)
  14604. {
  14605. int ret = 0;
  14606. struct source_tracking_param sourceTrackingData;
  14607. int port_id, copp_idx;
  14608. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14609. "Source Tracking Audio Tx ", &port_id);
  14610. if (ret) {
  14611. pr_err("%s: Error in deriving port id, err=%d\n",
  14612. __func__, ret);
  14613. ret = -EINVAL;
  14614. goto done;
  14615. }
  14616. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14617. &copp_idx);
  14618. if (ret) {
  14619. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14620. __func__, port_id);
  14621. ret = -EINVAL;
  14622. goto done;
  14623. }
  14624. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14625. if (ret) {
  14626. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14627. __func__, ret);
  14628. ret = -EINVAL;
  14629. goto done;
  14630. }
  14631. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14632. sizeof(struct source_tracking_param));
  14633. done:
  14634. return ret;
  14635. }
  14636. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14637. {
  14638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14640. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14641. .info = msm_sound_focus_info,
  14642. .get = msm_voice_sound_focus_get,
  14643. .put = msm_voice_sound_focus_put,
  14644. },
  14645. {
  14646. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14648. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14649. .info = msm_source_tracking_info,
  14650. .get = msm_voice_source_tracking_get,
  14651. },
  14652. {
  14653. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14654. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14655. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14656. .info = msm_sound_focus_info,
  14657. .get = msm_audio_sound_focus_get,
  14658. .put = msm_audio_sound_focus_put,
  14659. },
  14660. {
  14661. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14663. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14664. .info = msm_source_tracking_info,
  14665. .get = msm_audio_source_tracking_get,
  14666. },
  14667. {
  14668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14670. .name = "Sound Focus Voice Tx TERT_MI2S",
  14671. .info = msm_sound_focus_info,
  14672. .get = msm_voice_sound_focus_get,
  14673. .put = msm_voice_sound_focus_put,
  14674. },
  14675. {
  14676. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14678. .name = "Source Tracking Voice Tx TERT_MI2S",
  14679. .info = msm_source_tracking_info,
  14680. .get = msm_voice_source_tracking_get,
  14681. },
  14682. {
  14683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14684. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14685. .name = "Sound Focus Audio Tx TERT_MI2S",
  14686. .info = msm_sound_focus_info,
  14687. .get = msm_audio_sound_focus_get,
  14688. .put = msm_audio_sound_focus_put,
  14689. },
  14690. {
  14691. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14693. .name = "Source Tracking Audio Tx TERT_MI2S",
  14694. .info = msm_source_tracking_info,
  14695. .get = msm_audio_source_tracking_get,
  14696. },
  14697. {
  14698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14700. .name = "Sound Focus Voice Tx INT3_MI2S",
  14701. .info = msm_sound_focus_info,
  14702. .get = msm_voice_sound_focus_get,
  14703. .put = msm_voice_sound_focus_put,
  14704. },
  14705. {
  14706. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14708. .name = "Source Tracking Voice Tx INT3_MI2S",
  14709. .info = msm_source_tracking_info,
  14710. .get = msm_voice_source_tracking_get,
  14711. },
  14712. {
  14713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14715. .name = "Sound Focus Audio Tx INT3_MI2S",
  14716. .info = msm_sound_focus_info,
  14717. .get = msm_audio_sound_focus_get,
  14718. .put = msm_audio_sound_focus_put,
  14719. },
  14720. {
  14721. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14722. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14723. .name = "Source Tracking Audio Tx INT3_MI2S",
  14724. .info = msm_source_tracking_info,
  14725. .get = msm_audio_source_tracking_get,
  14726. },
  14727. };
  14728. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14729. struct snd_ctl_elem_value *ucontrol)
  14730. {
  14731. int ret = 0;
  14732. int item;
  14733. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14734. pr_debug("%s item is %d\n", __func__,
  14735. ucontrol->value.enumerated.item[0]);
  14736. mutex_lock(&routing_lock);
  14737. item = ucontrol->value.enumerated.item[0];
  14738. if (item < e->items) {
  14739. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14740. __func__, e->shift_l, e->values[item]);
  14741. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14742. e->values[item] < MSM_BACKEND_DAI_MAX)
  14743. /* Enable feedback TX path */
  14744. ret = afe_spk_prot_feed_back_cfg(
  14745. msm_bedais[e->values[item]].port_id,
  14746. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14747. else {
  14748. pr_debug("%s values are out of range item %d\n",
  14749. __func__, e->values[item]);
  14750. /* Disable feedback TX path */
  14751. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14752. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14753. else
  14754. ret = -EINVAL;
  14755. }
  14756. } else {
  14757. pr_err("%s item value is out of range item\n", __func__);
  14758. ret = -EINVAL;
  14759. }
  14760. mutex_unlock(&routing_lock);
  14761. return ret;
  14762. }
  14763. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14764. struct snd_ctl_elem_value *ucontrol)
  14765. {
  14766. int ret = 0;
  14767. int item;
  14768. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14769. pr_debug("%s item is %d\n", __func__,
  14770. ucontrol->value.enumerated.item[0]);
  14771. mutex_lock(&routing_lock);
  14772. item = ucontrol->value.enumerated.item[0];
  14773. if (item < e->items) {
  14774. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14775. __func__, e->shift_l, e->values[item]);
  14776. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14777. e->values[item] < MSM_BACKEND_DAI_MAX)
  14778. /* Enable feedback TX path */
  14779. ret = afe_spk_prot_feed_back_cfg(
  14780. msm_bedais[e->values[item]].port_id,
  14781. msm_bedais[e->shift_l].port_id,
  14782. 1, 1, 1);
  14783. else {
  14784. pr_debug("%s values are out of range item %d\n",
  14785. __func__, e->values[item]);
  14786. /* Disable feedback TX path */
  14787. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14788. ret = afe_spk_prot_feed_back_cfg(0,
  14789. 0, 0, 0, 0);
  14790. else
  14791. ret = -EINVAL;
  14792. }
  14793. } else {
  14794. pr_err("%s item value is out of range item\n", __func__);
  14795. ret = -EINVAL;
  14796. }
  14797. mutex_unlock(&routing_lock);
  14798. return ret;
  14799. }
  14800. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14801. struct snd_ctl_elem_value *ucontrol)
  14802. {
  14803. pr_debug("%s\n", __func__);
  14804. return 0;
  14805. }
  14806. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14807. struct snd_ctl_elem_value *ucontrol)
  14808. {
  14809. pr_debug("%s\n", __func__);
  14810. ucontrol->value.enumerated.item[0] = 0;
  14811. return 0;
  14812. }
  14813. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14814. "ZERO", "SLIM4_TX"
  14815. };
  14816. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14817. "ZERO", "SLIM4_TX"
  14818. };
  14819. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14820. "ZERO", "WSA_CDC_DMA_TX_0"
  14821. };
  14822. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14823. "ZERO", "WSA_CDC_DMA_TX_0"
  14824. };
  14825. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14826. "ZERO", "SENARY_TX"
  14827. };
  14828. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14829. "ZERO", "INT5_MI2S_TX"
  14830. };
  14831. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14832. "ZERO", "INT5_MI2S_TX"
  14833. };
  14834. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14835. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14836. };
  14837. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14838. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14839. };
  14840. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14841. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14842. };
  14843. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14844. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14845. };
  14846. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14847. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14848. };
  14849. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14850. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14851. };
  14852. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14853. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14854. };
  14855. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14856. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14857. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14858. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14859. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14860. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14861. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14862. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14863. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14864. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14865. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14866. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14867. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14868. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14869. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14870. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14871. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14872. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14873. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14874. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14875. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14876. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14877. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14878. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14879. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14880. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14881. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14882. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14883. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14884. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14885. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14886. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14887. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14888. spkr_prot_put_vi_lch_port);
  14889. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14890. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14891. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14892. spkr_prot_put_vi_rch_port);
  14893. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14894. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14895. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14896. spkr_prot_put_vi_lch_port);
  14897. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14898. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14899. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14900. spkr_prot_put_vi_rch_port);
  14901. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14902. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14903. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14904. spkr_prot_put_vi_lch_port);
  14905. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14906. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14907. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14908. spkr_prot_put_vi_lch_port);
  14909. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14910. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14911. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14912. spkr_prot_put_vi_rch_port);
  14913. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14914. /* Frontend AIF */
  14915. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14916. * Stream name must contains substring of front-end dai name
  14917. */
  14918. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14919. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14920. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14921. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14922. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14923. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14924. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14925. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14926. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14927. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14928. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14929. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14930. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14931. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14932. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14933. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14934. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14935. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14936. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14937. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14938. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14939. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14940. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14941. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14942. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14943. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14944. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14945. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14946. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14947. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14948. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14949. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14950. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14951. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14952. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14953. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14954. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14955. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14956. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14958. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14960. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14962. 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14964. 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14966. 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14968. 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  14970. 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  14972. 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  14974. 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  14976. 0, 0, 0, 0),
  14977. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  14978. 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  14980. 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  14982. 0, 0, 0, 0),
  14983. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  14984. 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  14986. 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  14988. 0, 0, 0, 0),
  14989. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  14990. 0, 0, 0, 0),
  14991. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  14992. 0, 0, 0, 0),
  14993. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  14994. 0, 0, 0, 0),
  14995. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  14996. 0, 0, 0, 0),
  14997. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  14998. 0, 0, 0, 0),
  14999. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15000. 0, 0, 0, 0),
  15001. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15002. 0, 0, 0, 0),
  15003. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15004. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15005. 0, 0, 0, 0),
  15006. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15007. "INT0 MI2S_RX Hostless Playback",
  15008. 0, 0, 0, 0),
  15009. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15010. "INT4 MI2S_RX Hostless Playback",
  15011. 0, 0, 0, 0),
  15012. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15013. "Primary MI2S_RX Hostless Playback",
  15014. 0, 0, 0, 0),
  15015. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15016. "Secondary MI2S_RX Hostless Playback",
  15017. 0, 0, 0, 0),
  15018. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15019. "Tertiary MI2S_RX Hostless Playback",
  15020. 0, 0, 0, 0),
  15021. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15022. "Quaternary MI2S_RX Hostless Playback",
  15023. 0, 0, 0, 0),
  15024. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15025. "Quinary MI2S_RX Hostless Playback",
  15026. 0, 0, 0, 0),
  15027. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15028. 0, 0, 0, 0),
  15029. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15030. 0, 0, 0, 0),
  15031. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15032. 0, 0, 0, 0),
  15033. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15034. 0, 0, 0, 0),
  15035. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15036. 0, 0, 0, 0),
  15037. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15038. "INT3 MI2S_TX Hostless Capture",
  15039. 0, 0, 0, 0),
  15040. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15041. "Tertiary MI2S_TX Hostless Capture",
  15042. 0, 0, 0, 0),
  15043. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15044. "Secondary MI2S_TX Hostless Capture",
  15045. 0, 0, 0, 0),
  15046. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15047. "Primary MI2S_TX Hostless Capture",
  15048. 0, 0, 0, 0),
  15049. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15050. 0, 0, 0, 0),
  15051. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15052. 0, 0, 0, 0),
  15053. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15054. "Quaternary MI2S_TX Hostless Capture",
  15055. 0, 0, 0, 0),
  15056. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15057. "Quinary MI2S_TX Hostless Capture",
  15058. 0, 0, 0, 0),
  15059. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15060. "Primary TDM0 Hostless Playback",
  15061. 0, 0, 0, 0),
  15062. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15063. "Primary TDM0 Hostless Capture",
  15064. 0, 0, 0, 0),
  15065. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15066. "Primary TDM1 Hostless Playback",
  15067. 0, 0, 0, 0),
  15068. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15069. "Primary TDM1 Hostless Capture",
  15070. 0, 0, 0, 0),
  15071. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15072. "Primary TDM2 Hostless Playback",
  15073. 0, 0, 0, 0),
  15074. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15075. "Primary TDM2 Hostless Capture",
  15076. 0, 0, 0, 0),
  15077. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15078. "Primary TDM3 Hostless Playback",
  15079. 0, 0, 0, 0),
  15080. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15081. "Primary TDM3 Hostless Capture",
  15082. 0, 0, 0, 0),
  15083. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15084. "Primary TDM4 Hostless Playback",
  15085. 0, 0, 0, 0),
  15086. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15087. "Primary TDM4 Hostless Capture",
  15088. 0, 0, 0, 0),
  15089. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15090. "Primary TDM5 Hostless Playback",
  15091. 0, 0, 0, 0),
  15092. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15093. "Primary TDM5 Hostless Capture",
  15094. 0, 0, 0, 0),
  15095. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15096. "Primary TDM6 Hostless Playback",
  15097. 0, 0, 0, 0),
  15098. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15099. "Primary TDM6 Hostless Capture",
  15100. 0, 0, 0, 0),
  15101. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15102. "Primary TDM7 Hostless Playback",
  15103. 0, 0, 0, 0),
  15104. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15105. "Primary TDM7 Hostless Capture",
  15106. 0, 0, 0, 0),
  15107. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15108. "Secondary TDM0 Hostless Playback",
  15109. 0, 0, 0, 0),
  15110. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15111. "Secondary TDM0 Hostless Capture",
  15112. 0, 0, 0, 0),
  15113. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15114. "Secondary TDM1 Hostless Playback",
  15115. 0, 0, 0, 0),
  15116. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15117. "Secondary TDM1 Hostless Capture",
  15118. 0, 0, 0, 0),
  15119. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15120. "Secondary TDM2 Hostless Playback",
  15121. 0, 0, 0, 0),
  15122. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15123. "Secondary TDM2 Hostless Capture",
  15124. 0, 0, 0, 0),
  15125. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15126. "Secondary TDM3 Hostless Playback",
  15127. 0, 0, 0, 0),
  15128. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15129. "Secondary TDM3 Hostless Capture",
  15130. 0, 0, 0, 0),
  15131. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15132. "Secondary TDM4 Hostless Playback",
  15133. 0, 0, 0, 0),
  15134. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15135. "Secondary TDM4 Hostless Capture",
  15136. 0, 0, 0, 0),
  15137. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15138. "Secondary TDM5 Hostless Playback",
  15139. 0, 0, 0, 0),
  15140. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15141. "Secondary TDM5 Hostless Capture",
  15142. 0, 0, 0, 0),
  15143. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15144. "Secondary TDM6 Hostless Playback",
  15145. 0, 0, 0, 0),
  15146. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15147. "Secondary TDM6 Hostless Capture",
  15148. 0, 0, 0, 0),
  15149. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15150. "Secondary TDM7 Hostless Playback",
  15151. 0, 0, 0, 0),
  15152. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15153. "Secondary TDM7 Hostless Capture",
  15154. 0, 0, 0, 0),
  15155. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15156. "Tertiary TDM0 Hostless Playback",
  15157. 0, 0, 0, 0),
  15158. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15159. "Tertiary TDM0 Hostless Capture",
  15160. 0, 0, 0, 0),
  15161. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15162. "Tertiary TDM1 Hostless Playback",
  15163. 0, 0, 0, 0),
  15164. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15165. "Tertiary TDM1 Hostless Capture",
  15166. 0, 0, 0, 0),
  15167. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15168. "Tertiary TDM2 Hostless Playback",
  15169. 0, 0, 0, 0),
  15170. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15171. "Tertiary TDM2 Hostless Capture",
  15172. 0, 0, 0, 0),
  15173. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15174. "Tertiary TDM3 Hostless Playback",
  15175. 0, 0, 0, 0),
  15176. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15177. "Tertiary TDM3 Hostless Capture",
  15178. 0, 0, 0, 0),
  15179. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15180. "Tertiary TDM4 Hostless Playback",
  15181. 0, 0, 0, 0),
  15182. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15183. "Tertiary TDM4 Hostless Capture",
  15184. 0, 0, 0, 0),
  15185. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15186. "Tertiary TDM5 Hostless Playback",
  15187. 0, 0, 0, 0),
  15188. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15189. "Tertiary TDM5 Hostless Capture",
  15190. 0, 0, 0, 0),
  15191. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15192. "Tertiary TDM6 Hostless Playback",
  15193. 0, 0, 0, 0),
  15194. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15195. "Tertiary TDM6 Hostless Capture",
  15196. 0, 0, 0, 0),
  15197. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15198. "Tertiary TDM7 Hostless Playback",
  15199. 0, 0, 0, 0),
  15200. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15201. "Tertiary TDM7 Hostless Capture",
  15202. 0, 0, 0, 0),
  15203. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15204. "Quaternary TDM0 Hostless Playback",
  15205. 0, 0, 0, 0),
  15206. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15207. "Quaternary TDM0 Hostless Capture",
  15208. 0, 0, 0, 0),
  15209. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15210. "Quaternary TDM1 Hostless Playback",
  15211. 0, 0, 0, 0),
  15212. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15213. "Quaternary TDM1 Hostless Capture",
  15214. 0, 0, 0, 0),
  15215. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15216. "Quaternary TDM2 Hostless Playback",
  15217. 0, 0, 0, 0),
  15218. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15219. "Quaternary TDM2 Hostless Capture",
  15220. 0, 0, 0, 0),
  15221. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15222. "Quaternary TDM3 Hostless Playback",
  15223. 0, 0, 0, 0),
  15224. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15225. "Quaternary TDM3 Hostless Capture",
  15226. 0, 0, 0, 0),
  15227. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15228. "Quaternary TDM4 Hostless Playback",
  15229. 0, 0, 0, 0),
  15230. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15231. "Quaternary TDM4 Hostless Capture",
  15232. 0, 0, 0, 0),
  15233. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15234. "Quaternary TDM5 Hostless Playback",
  15235. 0, 0, 0, 0),
  15236. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15237. "Quaternary TDM5 Hostless Capture",
  15238. 0, 0, 0, 0),
  15239. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15240. "Quaternary TDM6 Hostless Playback",
  15241. 0, 0, 0, 0),
  15242. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15243. "Quaternary TDM6 Hostless Capture",
  15244. 0, 0, 0, 0),
  15245. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15246. "Quaternary TDM7 Hostless Playback",
  15247. 0, 0, 0, 0),
  15248. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15249. "Quaternary TDM7 Hostless Capture",
  15250. 0, 0, 0, 0),
  15251. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15252. "Quinary TDM0 Hostless Playback",
  15253. 0, 0, 0, 0),
  15254. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15255. "Quinary TDM0 Hostless Capture",
  15256. 0, 0, 0, 0),
  15257. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15258. "Quinary TDM1 Hostless Playback",
  15259. 0, 0, 0, 0),
  15260. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15261. "Quinary TDM1 Hostless Capture",
  15262. 0, 0, 0, 0),
  15263. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15264. "Quinary TDM2 Hostless Playback",
  15265. 0, 0, 0, 0),
  15266. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15267. "Quinary TDM2 Hostless Capture",
  15268. 0, 0, 0, 0),
  15269. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15270. "Quinary TDM3 Hostless Playback",
  15271. 0, 0, 0, 0),
  15272. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15273. "Quinary TDM3 Hostless Capture",
  15274. 0, 0, 0, 0),
  15275. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15276. "Quinary TDM4 Hostless Playback",
  15277. 0, 0, 0, 0),
  15278. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15279. "Quinary TDM4 Hostless Capture",
  15280. 0, 0, 0, 0),
  15281. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15282. "Quinary TDM5 Hostless Playback",
  15283. 0, 0, 0, 0),
  15284. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15285. "Quinary TDM5 Hostless Capture",
  15286. 0, 0, 0, 0),
  15287. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15288. "Quinary TDM6 Hostless Playback",
  15289. 0, 0, 0, 0),
  15290. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15291. "Quinary TDM6 Hostless Capture",
  15292. 0, 0, 0, 0),
  15293. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15294. "Quinary TDM7 Hostless Playback",
  15295. 0, 0, 0, 0),
  15296. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15297. "Quinary TDM7 Hostless Capture",
  15298. 0, 0, 0, 0),
  15299. /* LSM */
  15300. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15301. 0, 0, 0, 0),
  15302. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15303. 0, 0, 0, 0),
  15304. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15305. 0, 0, 0, 0),
  15306. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15307. 0, 0, 0, 0),
  15308. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15309. 0, 0, 0, 0),
  15310. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15311. 0, 0, 0, 0),
  15312. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15313. 0, 0, 0, 0),
  15314. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15317. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15318. /* Backend AIF */
  15319. /* Stream name equals to backend dai link stream name */
  15320. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15321. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15322. 0, 0, 0, 0),
  15323. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15324. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15325. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15326. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15327. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15328. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15329. 0, 0, 0, 0),
  15330. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15331. 0, 0, 0, 0),
  15332. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15333. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15334. 0, 0, 0, 0),
  15335. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15336. 0, 0, 0, 0),
  15337. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15338. 0, 0, 0, 0),
  15339. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15340. "Secondary MI2S Playback SD1",
  15341. 0, 0, 0, 0),
  15342. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15343. 0, 0, 0, 0),
  15344. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15345. 0, 0, 0, 0),
  15346. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15347. 0, 0, 0, 0),
  15348. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15349. 0, 0, 0, 0),
  15350. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15351. 0, 0, 0, 0),
  15352. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15353. 0, 0, 0, 0),
  15354. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15355. 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15357. 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15359. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15361. 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15363. 0, 0, 0, 0),
  15364. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15365. 0, 0, 0, 0),
  15366. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15367. 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15369. 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15371. 0, 0, 0, 0),
  15372. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15375. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15377. 0, 0, 0, 0),
  15378. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15379. 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15383. 0, 0, 0, 0),
  15384. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15385. 0, 0, 0, 0),
  15386. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15387. 0, 0, 0, 0),
  15388. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15389. 0, 0, 0, 0),
  15390. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15391. 0, 0, 0, 0),
  15392. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15393. 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15395. 0, 0, 0, 0),
  15396. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15397. 0, 0, 0, 0),
  15398. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15399. 0, 0, 0, 0),
  15400. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15401. 0, 0, 0, 0),
  15402. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15403. 0, 0, 0, 0),
  15404. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15405. 0, 0, 0, 0),
  15406. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15407. 0, 0, 0, 0),
  15408. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15409. 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15411. 0, 0, 0, 0),
  15412. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15413. 0, 0, 0, 0),
  15414. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15415. 0, 0, 0, 0),
  15416. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15417. 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15419. 0, 0, 0, 0),
  15420. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15421. 0, 0, 0, 0),
  15422. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15423. 0, 0, 0, 0),
  15424. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15425. 0, 0, 0, 0),
  15426. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15427. 0, 0, 0, 0),
  15428. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15429. 0, 0, 0, 0),
  15430. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15431. 0, 0, 0, 0),
  15432. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15433. 0, 0, 0, 0),
  15434. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15435. 0, 0, 0, 0),
  15436. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15437. 0, 0, 0, 0),
  15438. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15439. 0, 0, 0, 0),
  15440. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15441. 0, 0, 0, 0),
  15442. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15443. 0, 0, 0, 0),
  15444. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15445. 0, 0, 0, 0),
  15446. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15447. 0, 0, 0, 0),
  15448. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15449. 0, 0, 0, 0),
  15450. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15451. 0, 0, 0, 0),
  15452. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15453. 0, 0, 0, 0),
  15454. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15455. 0, 0, 0, 0),
  15456. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15457. 0, 0, 0, 0),
  15458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15459. 0, 0, 0, 0),
  15460. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15461. 0, 0, 0, 0),
  15462. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15463. 0, 0, 0, 0),
  15464. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15465. 0, 0, 0, 0),
  15466. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15467. 0, 0, 0, 0),
  15468. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15469. 0, 0, 0, 0),
  15470. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15471. 0, 0, 0, 0),
  15472. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15473. 0, 0, 0, 0),
  15474. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15475. 0, 0, 0, 0),
  15476. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15477. 0, 0, 0, 0),
  15478. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15479. 0, 0, 0, 0),
  15480. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15481. 0, 0, 0, 0),
  15482. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15483. 0, 0, 0, 0),
  15484. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15485. 0, 0, 0, 0),
  15486. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15491. 0, 0, 0, 0),
  15492. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15497. 0, 0, 0, 0),
  15498. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15503. 0, 0, 0, 0),
  15504. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15505. 0, 0, 0, 0),
  15506. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15507. 0, 0, 0, 0),
  15508. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15509. 0, 0, 0, 0),
  15510. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15511. 0, 0, 0, 0),
  15512. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15513. 0, 0, 0, 0),
  15514. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15515. 0, 0, 0, 0),
  15516. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15517. 0, 0, 0, 0),
  15518. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15519. 0, 0, 0, 0),
  15520. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15521. 0, 0, 0, 0),
  15522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15523. 0, 0, 0, 0),
  15524. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15525. 0, 0, 0, 0),
  15526. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15527. 0, 0, 0, 0),
  15528. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15529. 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15531. 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15533. 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15537. 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15539. 0, 0, 0, 0),
  15540. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15541. 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15543. 0, 0, 0, 0),
  15544. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15545. 0, 0, 0, 0),
  15546. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15547. 0, 0, 0, 0),
  15548. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15549. 0, 0, 0, 0),
  15550. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15551. 0, 0, 0, 0),
  15552. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15553. 0, 0, 0, 0),
  15554. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15555. 0, 0, 0, 0),
  15556. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15557. 0, 0, 0, 0),
  15558. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15559. 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15561. 0, 0, 0, 0),
  15562. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15563. 0, 0, 0, 0),
  15564. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15565. 0, 0, 0, 0),
  15566. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15567. 0, 0, 0, 0),
  15568. /* incall */
  15569. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15570. 0, 0, 0, 0),
  15571. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15572. 0, 0, 0, 0),
  15573. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15574. 0, 0, 0, 0),
  15575. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15576. 0, 0, 0, 0),
  15577. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15578. 0, 0, 0, 0),
  15579. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15580. 0, 0, 0, 0),
  15581. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15582. 0, 0, 0, 0),
  15583. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15584. 0, 0, 0, 0),
  15585. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15586. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15588. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15589. 0, 0, 0, 0),
  15590. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15591. 0, 0, 0, 0),
  15592. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15593. 0, 0, 0, 0),
  15594. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15595. 0, 0, 0, 0),
  15596. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15597. 0, 0, 0, 0),
  15598. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15599. 0, 0, 0, 0),
  15600. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15601. 0, 0, 0, 0),
  15602. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15603. 0, 0, 0, 0),
  15604. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15605. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15606. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15607. 0, 0, 0, 0),
  15608. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15609. 0, 0, 0, 0),
  15610. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15611. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15612. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15613. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15615. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15617. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15619. /* In- call recording */
  15620. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15621. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15623. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15624. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15625. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15626. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15627. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15628. /* Switch Definitions */
  15629. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15630. &slim_fm_switch_mixer_controls),
  15631. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15632. &slim1_fm_switch_mixer_controls),
  15633. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15634. &slim3_fm_switch_mixer_controls),
  15635. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15636. &slim4_fm_switch_mixer_controls),
  15637. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15638. &slim6_fm_switch_mixer_controls),
  15639. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15640. &pcm_rx_switch_mixer_controls),
  15641. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15642. &int0_mi2s_rx_switch_mixer_controls),
  15643. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15644. &int4_mi2s_rx_switch_mixer_controls),
  15645. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15646. &pri_mi2s_rx_switch_mixer_controls),
  15647. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15648. &sec_mi2s_rx_switch_mixer_controls),
  15649. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15650. &tert_mi2s_rx_switch_mixer_controls),
  15651. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15652. &quat_mi2s_rx_switch_mixer_controls),
  15653. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15654. &quin_mi2s_rx_switch_mixer_controls),
  15655. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15656. &hfp_pri_aux_switch_mixer_controls),
  15657. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15658. &hfp_aux_switch_mixer_controls),
  15659. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15660. &hfp_int_switch_mixer_controls),
  15661. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15662. &hfp_slim7_switch_mixer_controls),
  15663. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15664. &usb_switch_mixer_controls),
  15665. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15666. &a2dp_slim7_switch_mixer_controls),
  15667. /* Mixer definitions */
  15668. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15669. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15670. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15671. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15672. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15673. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15674. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15675. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15676. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15677. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15678. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15679. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15680. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15681. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15682. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15683. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15684. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15685. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15686. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15687. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15688. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15689. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15690. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15691. quaternary_mi2s_rx_mixer_controls,
  15692. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15693. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15694. tertiary_mi2s_rx_mixer_controls,
  15695. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15696. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15697. secondary_mi2s_rx_mixer_controls,
  15698. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15699. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15700. secondary_mi2s_rx2_mixer_controls,
  15701. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15702. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15703. primary_mi2s_rx_mixer_controls,
  15704. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15705. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15706. int0_mi2s_rx_mixer_controls,
  15707. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15708. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15709. int4_mi2s_rx_mixer_controls,
  15710. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15711. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15712. quinary_mi2s_rx_mixer_controls,
  15713. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15714. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15715. pri_tdm_rx_0_mixer_controls,
  15716. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15717. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15718. pri_tdm_rx_1_mixer_controls,
  15719. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15720. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15721. pri_tdm_rx_2_mixer_controls,
  15722. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15723. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15724. pri_tdm_rx_3_mixer_controls,
  15725. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15726. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15727. pri_tdm_tx_0_mixer_controls,
  15728. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15729. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15730. sec_tdm_rx_0_mixer_controls,
  15731. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15732. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15733. sec_tdm_rx_1_mixer_controls,
  15734. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15735. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15736. sec_tdm_rx_2_mixer_controls,
  15737. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15738. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15739. sec_tdm_rx_3_mixer_controls,
  15740. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15741. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15742. sec_tdm_tx_0_mixer_controls,
  15743. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15744. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15745. tert_tdm_rx_0_mixer_controls,
  15746. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15747. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15748. tert_tdm_tx_0_mixer_controls,
  15749. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15750. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15751. tert_tdm_rx_1_mixer_controls,
  15752. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15753. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15754. tert_tdm_rx_2_mixer_controls,
  15755. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15756. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15757. tert_tdm_rx_3_mixer_controls,
  15758. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15759. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15760. tert_tdm_rx_4_mixer_controls,
  15761. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15762. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15763. quat_tdm_rx_0_mixer_controls,
  15764. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15765. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15766. quat_tdm_tx_0_mixer_controls,
  15767. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15768. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15769. quat_tdm_rx_1_mixer_controls,
  15770. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15771. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15772. quat_tdm_rx_2_mixer_controls,
  15773. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15774. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15775. quat_tdm_rx_3_mixer_controls,
  15776. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15777. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15778. quin_tdm_rx_0_mixer_controls,
  15779. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15780. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15781. quin_tdm_tx_0_mixer_controls,
  15782. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15783. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15784. quin_tdm_rx_1_mixer_controls,
  15785. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15786. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15787. quin_tdm_rx_2_mixer_controls,
  15788. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15789. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15790. quin_tdm_rx_3_mixer_controls,
  15791. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15792. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15793. wsa_cdc_dma_rx_0_mixer_controls,
  15794. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15795. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15796. wsa_cdc_dma_rx_1_mixer_controls,
  15797. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15798. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15799. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15800. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15801. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15802. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15803. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15805. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15806. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15807. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15808. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15809. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15810. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15811. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15812. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15813. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15814. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15815. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15816. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15817. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15818. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15819. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15820. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15821. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15822. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15823. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15824. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15825. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15826. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15827. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15829. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15830. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15831. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15832. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15833. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15834. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15835. tert_auxpcm_rx_mixer_controls,
  15836. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15837. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15838. quat_auxpcm_rx_mixer_controls,
  15839. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15840. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15841. quin_auxpcm_rx_mixer_controls,
  15842. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15843. /* incall */
  15844. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15845. incall_music_delivery_mixer_controls,
  15846. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15847. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15848. incall_music2_delivery_mixer_controls,
  15849. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15850. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15851. slimbus_4_rx_mixer_controls,
  15852. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15853. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15854. slimbus_6_rx_mixer_controls,
  15855. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15856. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15857. usb_audio_rx_mixer_controls,
  15858. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15859. /* Voice Mixer */
  15860. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15861. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15862. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15863. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15864. SND_SOC_NOPM, 0, 0,
  15865. sec_i2s_rx_voice_mixer_controls,
  15866. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15868. SND_SOC_NOPM, 0, 0,
  15869. sec_mi2s_rx_voice_mixer_controls,
  15870. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15871. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15872. SND_SOC_NOPM, 0, 0,
  15873. slimbus_rx_voice_mixer_controls,
  15874. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15875. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15876. SND_SOC_NOPM, 0, 0,
  15877. bt_sco_rx_voice_mixer_controls,
  15878. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15879. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15880. SND_SOC_NOPM, 0, 0,
  15881. afe_pcm_rx_voice_mixer_controls,
  15882. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15883. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15884. SND_SOC_NOPM, 0, 0,
  15885. aux_pcm_rx_voice_mixer_controls,
  15886. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15887. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15888. SND_SOC_NOPM, 0, 0,
  15889. sec_aux_pcm_rx_voice_mixer_controls,
  15890. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15891. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15892. SND_SOC_NOPM, 0, 0,
  15893. tert_aux_pcm_rx_voice_mixer_controls,
  15894. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15895. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15896. SND_SOC_NOPM, 0, 0,
  15897. quat_aux_pcm_rx_voice_mixer_controls,
  15898. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15899. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15900. SND_SOC_NOPM, 0, 0,
  15901. quin_aux_pcm_rx_voice_mixer_controls,
  15902. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15903. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15904. SND_SOC_NOPM, 0, 0,
  15905. hdmi_rx_voice_mixer_controls,
  15906. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15907. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15908. SND_SOC_NOPM, 0, 0,
  15909. mi2s_rx_voice_mixer_controls,
  15910. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15911. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15912. SND_SOC_NOPM, 0, 0,
  15913. pri_mi2s_rx_voice_mixer_controls,
  15914. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15915. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15916. SND_SOC_NOPM, 0, 0,
  15917. int0_mi2s_rx_voice_mixer_controls,
  15918. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15919. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15920. SND_SOC_NOPM, 0, 0,
  15921. int4_mi2s_rx_voice_mixer_controls,
  15922. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15923. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15924. SND_SOC_NOPM, 0, 0,
  15925. tert_mi2s_rx_voice_mixer_controls,
  15926. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15927. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15928. SND_SOC_NOPM, 0, 0,
  15929. quat_mi2s_rx_voice_mixer_controls,
  15930. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15931. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15932. SND_SOC_NOPM, 0, 0,
  15933. quin_mi2s_rx_voice_mixer_controls,
  15934. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15935. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15936. SND_SOC_NOPM, 0, 0,
  15937. quat_tdm_rx_2_voice_mixer_controls,
  15938. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15939. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15940. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15941. ARRAY_SIZE(tx_voip_mixer_controls)),
  15942. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15943. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15944. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15945. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15946. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15947. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15948. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15949. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15950. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15951. int_bt_a2dp_rx_mixer_controls,
  15952. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15953. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15954. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15955. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15956. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15957. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15958. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15959. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15960. tx_voice2_stub_mixer_controls,
  15961. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15962. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15963. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15964. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15965. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15966. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15967. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15968. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15969. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  15970. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  15971. SND_SOC_NOPM, 0, 0,
  15972. slimbus_6_rx_voice_mixer_controls,
  15973. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  15974. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15975. slimbus_7_rx_voice_mixer_controls,
  15976. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  15977. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15978. slimbus_8_rx_voice_mixer_controls,
  15979. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  15980. /* port mixer */
  15981. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  15982. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  15983. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  15984. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  15985. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  15986. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  15987. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  15988. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  15989. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  15990. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  15991. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  15992. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  15993. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  15994. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  15995. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  15996. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  15997. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  15998. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  15999. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16000. sbus_1_rx_port_mixer_controls,
  16001. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16002. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16003. bt_sco_rx_port_mixer_controls,
  16004. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16005. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16006. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16007. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16008. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16009. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16010. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16011. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16012. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16013. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16014. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16015. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16016. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16017. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16018. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16019. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16020. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16021. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16022. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16023. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16024. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16025. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16026. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16027. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16028. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16029. primary_mi2s_rx_port_mixer_controls,
  16030. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16031. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16032. sec_mi2s_rx_port_mixer_controls,
  16033. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16034. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16035. tert_mi2s_rx_port_mixer_controls,
  16036. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16037. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16038. quat_mi2s_rx_port_mixer_controls,
  16039. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16040. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16041. quin_mi2s_rx_port_mixer_controls,
  16042. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16043. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16044. pri_tdm_rx_0_port_mixer_controls,
  16045. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16046. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16047. pri_tdm_rx_1_port_mixer_controls,
  16048. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16049. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16050. pri_tdm_rx_2_port_mixer_controls,
  16051. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16052. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16053. pri_tdm_rx_3_port_mixer_controls,
  16054. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16055. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16056. sec_tdm_rx_0_port_mixer_controls,
  16057. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16058. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16059. sec_tdm_rx_1_port_mixer_controls,
  16060. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16061. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16062. sec_tdm_rx_2_port_mixer_controls,
  16063. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16064. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16065. sec_tdm_rx_3_port_mixer_controls,
  16066. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16067. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16068. tert_tdm_rx_0_port_mixer_controls,
  16069. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16070. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16071. tert_tdm_rx_1_port_mixer_controls,
  16072. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16073. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16074. tert_tdm_rx_2_port_mixer_controls,
  16075. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16076. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16077. tert_tdm_rx_3_port_mixer_controls,
  16078. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16079. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16080. quat_tdm_rx_0_port_mixer_controls,
  16081. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16082. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16083. quat_tdm_rx_1_port_mixer_controls,
  16084. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16085. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16086. quat_tdm_rx_2_port_mixer_controls,
  16087. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16088. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16089. quat_tdm_rx_3_port_mixer_controls,
  16090. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16091. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16092. quin_tdm_rx_0_port_mixer_controls,
  16093. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16094. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16095. quin_tdm_rx_1_port_mixer_controls,
  16096. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16097. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16098. quin_tdm_rx_2_port_mixer_controls,
  16099. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16100. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16101. quin_tdm_rx_3_port_mixer_controls,
  16102. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16103. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16104. int0_mi2s_rx_port_mixer_controls,
  16105. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16106. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16107. int4_mi2s_rx_port_mixer_controls,
  16108. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16110. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16111. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16112. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16113. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16114. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16115. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16116. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16117. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16118. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16119. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16120. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16121. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16122. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16123. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16124. /* lsm mixer definitions */
  16125. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16126. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16127. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16128. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16129. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16130. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16131. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16132. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16133. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16134. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16135. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16136. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16137. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16138. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16139. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16140. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16141. /* Virtual Pins to force backends ON atm */
  16142. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16143. SND_SOC_DAPM_INPUT("BE_IN"),
  16144. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16145. &slim0_rx_vi_fb_lch_mux),
  16146. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16147. &slim0_rx_vi_fb_rch_mux),
  16148. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16149. &wsa_rx_0_vi_fb_lch_mux),
  16150. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16151. &wsa_rx_0_vi_fb_rch_mux),
  16152. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16153. &mi2s_rx_vi_fb_mux),
  16154. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16155. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16156. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16157. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16158. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16159. &voc_ext_ec_mux),
  16160. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16161. &ext_ec_ref_mux_ul1),
  16162. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16163. &ext_ec_ref_mux_ul2),
  16164. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16165. &ext_ec_ref_mux_ul3),
  16166. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16167. &ext_ec_ref_mux_ul4),
  16168. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16169. &ext_ec_ref_mux_ul5),
  16170. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16171. &ext_ec_ref_mux_ul6),
  16172. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16173. &ext_ec_ref_mux_ul8),
  16174. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16175. &ext_ec_ref_mux_ul9),
  16176. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16177. &ext_ec_ref_mux_ul10),
  16178. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16179. &ext_ec_ref_mux_ul16),
  16180. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16181. &ext_ec_ref_mux_ul17),
  16182. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16183. &ext_ec_ref_mux_ul18),
  16184. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16185. &ext_ec_ref_mux_ul19),
  16186. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16187. &ext_ec_ref_mux_ul28),
  16188. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16189. &ext_ec_ref_mux_ul29),
  16190. };
  16191. static const struct snd_soc_dapm_route intercon[] = {
  16192. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16193. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16194. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16195. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16196. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16197. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16198. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16199. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16200. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16201. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16202. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16203. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16204. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16205. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16206. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16207. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16208. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16209. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16210. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16211. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16212. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16213. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16214. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16215. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16216. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16217. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16218. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16219. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16220. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16221. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16222. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16223. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16224. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16225. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16226. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16227. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16228. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16229. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16230. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16231. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16232. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16233. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16234. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16235. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16236. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16237. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16238. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16239. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16240. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16241. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16242. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16243. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16244. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16245. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16246. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16247. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16248. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16249. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16250. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16251. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16252. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16253. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16254. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16255. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16256. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16257. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16258. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16259. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16260. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16261. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16262. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16263. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16264. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16265. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16266. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16267. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16268. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16269. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16270. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16271. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16272. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16273. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16274. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16275. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16276. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16277. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16278. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16279. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16280. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16281. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16282. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16283. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16284. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16285. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16286. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16287. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16288. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16289. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16290. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16291. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16292. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16293. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16294. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16295. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16296. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16297. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16298. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16299. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16300. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16301. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16302. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16303. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16304. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16305. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16306. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16307. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16308. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16309. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16310. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16311. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16312. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16313. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16314. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16315. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16316. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16317. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16318. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16319. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16320. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16321. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16322. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16323. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16324. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16325. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16326. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16327. {"HDMI", NULL, "HDMI Mixer"},
  16328. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16329. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16330. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16331. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16332. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16333. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16334. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16335. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16336. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16337. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16338. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16339. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16340. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16341. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16342. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16343. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16344. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16345. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16346. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16347. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16348. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16349. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16350. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16351. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16352. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16353. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16354. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16355. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16356. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16357. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16358. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16359. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16360. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16361. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16362. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16363. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16364. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16365. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16366. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16367. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16368. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16369. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16370. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16371. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16372. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16373. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16374. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16375. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16376. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16377. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16378. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16379. /* incall */
  16380. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16381. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16382. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16383. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16384. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16385. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16386. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16387. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16388. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16389. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16390. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16391. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16392. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16393. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16394. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16395. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16396. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16397. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16398. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16399. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16400. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16401. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16402. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16403. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16404. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16405. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16406. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16407. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16408. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16409. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16410. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16411. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16412. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16413. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16414. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16415. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16416. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16417. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16418. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16419. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16420. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16421. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16422. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16423. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16424. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16425. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16426. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16427. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16428. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16429. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16430. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16431. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16432. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16433. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16434. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16435. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16436. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16437. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16438. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16439. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16440. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16441. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16442. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16443. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16444. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16445. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16446. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16447. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16448. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16449. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16450. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16451. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16452. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16453. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16454. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16455. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16456. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16457. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16458. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16459. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16460. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16461. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16462. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16463. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16464. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16465. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16466. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16467. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16468. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16469. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16470. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16471. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16472. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16473. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16474. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16475. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16476. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16477. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16478. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16479. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16480. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16481. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16482. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16483. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16484. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16485. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16486. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16487. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16488. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16489. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16490. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16491. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16492. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16493. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16494. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16495. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16496. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16497. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16498. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16499. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16500. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16501. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16502. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16503. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16504. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16505. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16506. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16507. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16508. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16509. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16510. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16511. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16512. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16513. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16514. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16515. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16516. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16517. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16518. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16519. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16520. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16521. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16522. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16523. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16524. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16525. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16526. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16527. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16528. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16529. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16530. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16531. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16532. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16533. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16534. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16535. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16536. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16537. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16538. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16539. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16540. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16541. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16542. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16543. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16544. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16545. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16546. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16547. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16548. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16549. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16550. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16551. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16552. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16553. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16554. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16555. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16556. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16557. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16558. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16559. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16560. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16561. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16562. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16563. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16564. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16565. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16566. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16567. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16568. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16569. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16570. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16571. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16572. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16573. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16574. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16575. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16576. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16577. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16578. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16579. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16580. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16581. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16582. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16583. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16584. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16585. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16586. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16587. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16588. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16589. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16590. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16591. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16592. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16593. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16594. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16595. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16596. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16597. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16598. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16599. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16600. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16601. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16602. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16603. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16604. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16605. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16606. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16607. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16608. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16609. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16610. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16611. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16612. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16613. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16614. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16615. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16616. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16617. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16618. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16619. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16620. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16621. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16622. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16623. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16624. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16625. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16626. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16627. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16628. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16629. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16630. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16631. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16632. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16633. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16634. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16635. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16636. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16637. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16638. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16639. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16640. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16641. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16642. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16643. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16644. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16645. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16646. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16647. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16648. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16649. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16650. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16651. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16652. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16653. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16654. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16655. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16656. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16657. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16658. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16659. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16660. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16661. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16662. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16663. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16664. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16665. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16666. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16667. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16668. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16669. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16670. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16671. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16672. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16673. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16674. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16675. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16676. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16677. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16678. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16679. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16680. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16681. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16682. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16683. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16684. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16685. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16686. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16687. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16688. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16689. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16690. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16691. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16692. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16693. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16694. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16695. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16696. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16697. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16698. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16699. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16700. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16701. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16702. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16703. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16704. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16705. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16706. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16707. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16708. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16709. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16710. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16711. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16712. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16713. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16714. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16715. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16716. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16717. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16718. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16719. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16720. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16721. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16722. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16723. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16724. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16725. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16726. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16727. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16728. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16729. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16730. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16731. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16732. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16733. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16734. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16735. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16736. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16737. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16738. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16739. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16740. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16741. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16742. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16743. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16744. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16745. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16746. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16747. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16748. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16749. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16750. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16751. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16752. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16753. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16754. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16755. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16756. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16757. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16758. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16759. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16760. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16761. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16762. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16763. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16764. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16765. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16766. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16767. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16768. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16769. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16770. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16771. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16772. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16773. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16774. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16775. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16776. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16777. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16778. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16779. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16780. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16781. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16782. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16783. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16784. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16785. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16786. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16787. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16788. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16789. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16790. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16791. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16792. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16793. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16794. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16795. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16796. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16797. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16798. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16799. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16800. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16801. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16802. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16803. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16804. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16805. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16806. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16807. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16808. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16809. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16810. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16811. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16812. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16813. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16814. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16815. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16816. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16817. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16818. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16819. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16820. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16821. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16822. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16823. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16824. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16825. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16826. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16827. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16828. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16829. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16830. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16831. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16832. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16833. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16834. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16835. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16836. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16837. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16838. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16839. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16840. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16841. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16842. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16843. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16844. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16845. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16846. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16847. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16848. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16849. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16850. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16851. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16852. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16853. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16854. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16855. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16856. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16857. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16858. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16859. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16860. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16861. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16862. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16863. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16864. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16865. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16866. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16867. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16868. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16869. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16870. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16871. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16872. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16873. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16874. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16875. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16876. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16877. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16878. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16879. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16880. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16881. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16882. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16883. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16884. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16885. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16886. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16887. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16888. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16889. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16890. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16891. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16892. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16893. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16894. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16895. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16896. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16897. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16898. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16899. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16900. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16901. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16902. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16903. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16904. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16905. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16906. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16907. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16908. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16909. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16910. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16911. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16912. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16913. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16914. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16915. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16916. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16917. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16918. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16919. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16920. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16921. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16922. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16923. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16924. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16925. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16926. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16927. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16928. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16929. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16930. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16931. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16932. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16933. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16934. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16935. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16936. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16937. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16938. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16939. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16940. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16941. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16942. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16943. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16944. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16945. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16946. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16947. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16948. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16949. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16950. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16951. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16952. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16953. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16954. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16955. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16956. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16957. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16958. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16959. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16960. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16961. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16962. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16963. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16964. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16965. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16966. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16967. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16968. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16969. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16970. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16971. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16972. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16973. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16974. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16975. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16976. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16977. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16978. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16979. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16980. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16981. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16982. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16983. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16984. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  16985. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16986. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16987. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16988. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16989. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16990. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16991. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16992. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16993. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16994. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16995. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16996. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16997. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16998. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16999. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17000. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17001. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17002. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17003. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17004. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17005. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17006. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17007. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17008. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17009. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17010. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17011. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17012. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17013. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17014. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17015. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17016. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17017. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17018. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17019. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17020. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17021. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17022. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17023. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17024. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17025. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17026. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17027. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17028. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17029. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17030. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17031. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17032. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17033. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17034. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17035. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17036. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17037. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17038. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17039. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17040. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17041. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17042. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17043. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17044. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17045. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17046. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17047. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17048. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17049. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17050. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17051. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17052. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17053. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17054. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17055. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17056. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17057. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17058. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17059. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17060. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17061. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17062. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17063. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17064. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17065. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17066. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17067. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17068. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17069. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17070. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17071. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17072. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17073. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17074. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17075. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17076. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17077. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17078. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17079. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17080. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17081. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17082. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17083. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17084. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17085. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17086. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17087. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17088. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17089. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17090. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17091. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17092. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17093. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17094. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17095. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17096. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17097. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17098. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17099. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17100. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17101. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17102. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17103. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17104. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17105. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17106. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17107. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17108. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17109. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17110. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17111. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17112. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17113. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17114. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17115. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17116. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17117. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17118. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17119. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17120. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17121. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17122. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17123. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17124. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17125. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17126. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17127. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17128. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17129. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17130. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17131. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17132. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17133. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17134. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17135. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17136. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17137. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17138. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17139. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17140. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17141. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17142. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17143. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17144. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17145. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17146. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17147. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17148. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17149. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17150. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17151. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17152. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17153. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17154. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17155. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17156. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17157. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17158. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17159. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17160. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17161. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17162. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17163. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17164. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17165. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17166. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17167. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17168. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17169. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17170. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17171. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17172. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17173. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17174. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17175. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17176. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17177. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17178. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17179. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17180. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17181. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17182. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17183. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17184. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17185. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17186. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17187. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17188. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17189. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17190. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17191. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17192. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17193. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17194. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17195. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17196. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17197. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17198. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17199. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17200. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17201. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17202. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17203. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17204. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17205. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17206. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17207. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17208. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17209. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17210. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17211. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17212. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17213. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17214. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17215. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17216. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17217. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17218. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17219. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17220. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17221. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17222. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17223. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17224. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17225. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17226. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17227. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17228. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17229. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17230. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17231. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17232. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17233. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17234. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17235. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17236. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17237. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17238. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17239. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17240. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17241. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17242. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17243. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17244. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17245. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17246. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17247. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17248. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17249. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17250. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17251. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17252. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17253. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17254. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17255. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17256. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17257. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17258. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17259. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17260. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17261. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17262. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17263. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17264. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17265. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17266. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17267. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17268. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17269. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17270. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17271. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17272. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17273. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17274. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17275. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17276. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17277. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17278. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17279. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17280. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17281. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17282. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17283. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17284. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17285. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17286. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17287. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17288. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17289. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17290. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17291. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17292. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17293. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17294. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17295. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17296. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17297. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17298. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17299. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17300. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17301. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17302. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17303. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17304. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17305. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17306. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17307. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17308. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17309. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17310. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17311. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17312. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17313. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17314. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17315. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17316. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17317. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17318. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17319. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17320. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17321. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17322. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17323. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17324. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17325. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17326. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17327. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17328. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17329. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17330. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17331. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17332. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17333. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17334. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17335. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17336. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17337. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17338. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17339. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17340. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17341. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17342. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17343. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17344. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17345. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17346. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17347. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17348. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17349. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17350. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17351. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17352. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17353. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17354. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17355. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17356. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17357. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17358. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17359. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17360. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17361. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17362. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17363. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17364. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17365. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17366. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17367. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17368. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17369. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17370. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17371. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17372. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17373. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17374. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17375. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17376. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17377. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17378. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17379. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17380. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17381. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17382. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17383. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17384. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17385. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17386. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17387. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17388. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17389. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17390. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17391. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17392. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17393. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17394. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17395. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17396. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17397. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17398. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17399. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17400. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17401. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17402. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17403. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17404. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17405. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17406. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17407. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17408. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17409. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17410. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17411. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17412. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17413. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17414. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17415. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17416. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17417. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17418. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17419. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17420. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17421. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17422. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17423. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17424. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17425. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17426. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17427. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17428. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17429. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17430. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17431. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17432. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17433. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17434. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17435. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17436. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17437. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17438. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17439. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17440. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17441. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17442. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17443. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17444. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17445. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17446. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17447. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17448. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17449. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17450. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17451. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17452. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17453. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17454. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17455. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17456. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17457. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17458. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17459. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17460. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17461. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17462. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17463. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17464. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17465. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17466. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17467. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17468. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17469. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17470. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17471. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17472. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17473. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17474. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17475. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17476. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17477. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17478. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17479. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17480. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17481. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17482. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17483. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17484. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17485. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17486. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17487. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17488. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17489. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17490. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17491. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17492. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17493. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17494. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17495. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17496. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17497. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17498. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17499. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17500. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17501. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17502. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17503. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17504. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17505. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17506. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17507. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17508. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17509. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17510. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17511. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17512. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17513. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17514. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17515. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17516. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17517. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17518. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17519. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17520. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17521. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17522. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17523. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17524. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17525. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17526. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17527. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17528. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17529. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17530. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17531. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17532. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17533. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17534. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17535. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17536. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17537. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17538. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17539. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17540. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17541. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17542. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17543. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17544. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17545. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17546. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17547. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17548. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17549. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17550. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17551. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17552. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17553. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17554. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17555. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17556. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17557. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17558. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17559. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17560. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17561. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17562. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17563. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17564. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17565. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17566. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17567. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17568. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17569. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17570. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17571. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17572. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17573. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17574. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17575. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17576. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17577. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17578. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17579. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17580. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17581. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17582. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17583. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17584. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17585. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17586. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17587. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17588. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17589. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17590. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17591. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17592. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17593. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17594. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17595. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17596. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17597. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17598. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17599. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17600. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17601. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17602. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17603. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17604. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17605. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17606. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17607. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17608. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17609. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17610. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17611. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17612. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17613. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17614. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17615. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17616. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17617. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17618. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17619. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17620. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17621. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17622. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17623. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17624. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17625. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17626. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17627. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17628. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17629. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17630. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17631. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17632. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17633. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17634. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17635. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17636. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17637. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17638. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17639. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17640. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17641. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17642. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17643. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17644. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17645. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17646. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17647. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17648. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17649. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17650. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17651. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17652. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17653. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17654. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17655. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17656. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17657. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17658. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17659. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17660. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17661. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17662. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17663. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17664. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17665. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17666. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17667. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17668. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17669. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17670. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17671. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17672. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17673. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17674. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17675. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17676. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17677. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17678. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17679. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17680. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17681. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17682. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17683. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17684. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17685. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17686. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17687. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17688. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17689. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17690. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17691. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17692. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17693. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17694. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17695. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17696. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17697. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17698. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17699. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17700. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17701. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17702. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17703. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17704. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17705. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17706. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17707. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17708. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17709. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17710. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17711. {"HDMI", NULL, "HDMI_DL_HL"},
  17712. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17713. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17714. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17715. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17716. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17717. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17718. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17719. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17720. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17721. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17722. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17723. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17724. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17725. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17726. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17727. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17728. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17729. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17730. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17731. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17732. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17733. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17734. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17735. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17736. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17737. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17738. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17739. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17740. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17741. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17742. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17743. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17744. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17745. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17746. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17747. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17748. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17749. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17750. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17751. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17752. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17753. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17754. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17755. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17756. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17757. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17758. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17759. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17760. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17761. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17762. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17763. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17764. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17765. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17766. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17767. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17768. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17769. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17770. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17771. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17772. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17773. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17774. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17775. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17776. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17777. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17778. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17779. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17780. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17781. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17782. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17783. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17784. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17785. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17786. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17787. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17788. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17789. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17790. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17791. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17792. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17793. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17794. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17795. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17796. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17797. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17798. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17799. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17800. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17801. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17802. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17803. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17804. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17805. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17806. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17807. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17808. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17809. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17810. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17811. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17812. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17813. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17814. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17815. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17816. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17817. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17818. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17819. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17820. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17821. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17822. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17823. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17824. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17825. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17826. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17827. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17828. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17829. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17830. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17831. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17832. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17833. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17834. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17835. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17836. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17837. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17838. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17839. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17840. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17841. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17842. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17843. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17844. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17845. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17846. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17847. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17848. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17849. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17850. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17851. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17852. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17853. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17854. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17855. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17856. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17857. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17858. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17859. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17860. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17861. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17862. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17863. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17864. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17865. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17866. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17867. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17868. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17869. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17870. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17871. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17872. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17873. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17874. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17875. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17876. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17877. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17878. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17879. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17880. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17881. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17882. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17883. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17884. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17885. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17886. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17887. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17888. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17889. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17890. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17891. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17892. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17893. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17894. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17895. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17896. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17897. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17898. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17899. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17900. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17901. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17902. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17903. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17904. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17905. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17906. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17907. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17908. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17909. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17910. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17911. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17912. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17913. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17914. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17915. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17916. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17917. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17918. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17919. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17920. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17921. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17922. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17923. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17924. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17925. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17926. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17927. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17928. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17929. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17930. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17931. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17932. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17933. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17934. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17935. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17936. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17937. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17938. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17939. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17940. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17941. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17942. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17943. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17944. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17945. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17946. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17947. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17948. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17949. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17950. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17951. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17952. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17953. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17954. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17955. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17956. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17957. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17958. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17959. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17960. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17961. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17962. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17963. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17964. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17965. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17966. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17967. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17968. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17969. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17970. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17971. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17972. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17973. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17974. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17975. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17976. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17977. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17978. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17979. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  17980. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17981. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17982. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17983. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17984. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17985. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17986. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17987. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17988. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  17989. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17990. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17991. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17992. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17993. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17994. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17995. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17996. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17997. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  17998. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17999. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18000. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18001. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18002. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18003. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18004. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18005. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18006. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18007. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18008. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18009. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18010. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18011. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18012. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18013. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18014. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18015. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18016. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18017. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18018. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18019. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18020. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18021. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18022. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18023. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18024. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18025. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18026. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18027. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18028. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18029. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18030. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18031. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18032. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18033. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18034. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18035. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18036. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18037. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18038. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18039. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18040. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18041. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18042. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18043. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18044. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18045. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18046. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18047. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18048. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18049. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18050. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18051. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18052. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18053. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18054. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18055. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18056. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18057. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18058. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18059. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18060. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18061. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18062. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18063. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18064. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18065. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18066. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18067. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18068. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18069. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18070. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18071. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18072. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18073. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18074. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18075. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18076. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18077. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18078. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18079. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18080. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18081. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18082. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18083. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18084. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18085. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18086. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18087. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18088. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18089. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18090. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18091. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18092. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18093. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18094. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18095. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18096. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18097. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18098. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18099. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18100. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18101. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18102. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18103. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18104. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18105. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18106. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18107. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18108. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18109. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18110. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18111. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18112. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18113. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18114. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18115. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18116. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18117. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18118. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18119. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18120. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18121. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18122. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18123. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18124. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18125. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18126. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18127. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18128. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18129. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18130. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18131. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18132. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18133. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18134. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18135. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18136. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18137. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18138. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18139. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18140. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18141. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18142. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18143. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18144. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18145. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18146. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18147. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18148. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18149. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18150. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18151. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18152. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18153. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18154. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18155. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18156. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18157. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18158. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18159. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18160. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18161. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18162. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18163. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18164. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18165. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18166. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18167. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18168. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18169. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18170. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18171. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18172. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18173. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18174. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18175. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18176. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18177. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18178. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18179. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18180. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18181. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18182. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18183. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18184. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18185. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18186. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18187. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18188. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18189. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18190. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18191. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18192. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18193. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18194. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18195. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18196. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18197. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18198. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18199. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18200. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18201. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18202. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18203. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18204. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18205. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18206. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18207. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18208. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18209. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18210. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18211. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18212. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18213. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18214. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18215. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18216. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18217. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18218. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18219. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18220. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18221. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18222. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18223. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18224. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18225. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18226. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18227. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18228. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18229. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18230. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18231. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18232. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18233. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18234. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18235. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18236. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18237. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18238. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18239. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18240. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18241. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18242. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18243. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18244. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18245. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18246. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18247. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18248. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18249. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18250. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18251. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18252. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18253. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18254. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18255. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18256. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18257. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18258. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18259. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18260. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18261. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18262. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18263. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18264. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18265. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18266. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18267. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18268. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18269. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18270. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18271. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18272. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18273. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18274. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18275. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18276. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18277. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18278. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18279. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18280. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18281. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18282. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18283. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18284. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18285. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18286. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18287. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18288. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18289. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18290. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18291. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18292. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18293. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18294. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18295. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18296. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18297. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18298. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18299. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18300. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18301. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18302. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18303. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18304. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18305. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18306. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18307. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18308. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18309. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18310. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18311. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18312. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18313. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18314. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18315. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18316. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18317. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18318. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18319. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18320. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18321. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18322. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18323. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18324. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18325. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18326. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18327. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18328. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18329. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18330. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18331. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18332. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18333. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18334. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18335. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18336. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18337. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18338. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18339. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18340. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18341. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18342. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18343. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18344. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18345. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18346. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18347. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18348. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18349. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18350. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18351. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18352. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18353. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18354. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18355. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18356. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18357. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18358. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18359. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18360. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18361. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18362. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18363. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18364. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18365. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18366. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18367. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18368. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18369. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18370. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18371. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18372. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18373. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18374. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18375. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18376. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18377. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18378. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18379. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18380. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18381. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18382. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18383. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18384. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18385. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18386. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18387. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18388. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18389. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18390. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18391. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18392. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18393. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18394. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18395. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18396. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18397. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18398. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18399. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18400. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18401. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18402. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18403. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18404. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18405. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18406. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18407. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18408. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18409. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18410. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18411. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18412. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18413. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18414. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18415. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18416. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18417. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18418. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18419. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18420. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18421. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18422. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18423. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18424. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18425. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18426. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18427. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18428. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18429. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18430. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18431. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18432. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18433. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18434. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18435. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18436. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18437. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18438. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18439. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18440. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18441. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18442. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18443. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18444. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18445. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18446. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18447. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18448. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18449. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18450. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18451. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18452. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18453. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18454. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18455. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18456. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18457. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18458. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18459. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18460. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18461. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18462. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18463. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18464. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18465. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18466. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18467. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18468. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18469. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18470. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18471. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18472. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18473. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18474. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18475. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18476. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18477. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18478. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18479. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18480. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18481. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18482. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18483. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18484. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18485. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18486. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18487. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18488. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18489. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18490. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18491. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18492. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18493. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18494. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18495. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18496. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18497. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18498. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18499. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18500. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18501. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18502. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18503. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18504. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18505. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18506. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18507. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18508. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18509. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18510. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18511. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18512. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18513. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18514. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18515. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18516. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18517. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18518. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18519. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18520. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18521. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18522. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18523. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18524. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18525. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18526. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18527. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18528. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18529. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18530. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18531. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18532. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18533. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18534. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18535. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18536. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18537. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18538. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18539. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18540. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18541. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18542. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18543. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18544. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18545. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18546. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18547. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18548. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18549. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18550. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18551. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18552. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18553. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18554. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18555. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18556. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18557. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18558. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18559. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18560. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18561. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18562. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18563. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18564. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18565. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18566. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18567. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18568. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18569. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18570. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18571. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18572. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18573. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18574. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18575. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18576. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18577. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18578. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18579. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18580. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18581. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18582. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18583. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18584. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18585. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18586. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18587. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18588. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18589. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18590. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18591. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18592. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18593. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18594. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18595. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18596. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18597. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18598. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18599. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18600. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18601. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18602. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18603. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18604. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18605. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18606. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18607. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18608. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18609. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18610. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18611. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18612. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18613. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18614. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18615. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18616. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18617. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18618. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18619. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18620. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18621. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18622. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18623. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18624. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18625. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18626. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18627. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18628. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18629. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18630. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18631. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18632. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18633. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18634. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18635. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18636. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18637. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18638. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18639. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18640. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18641. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18642. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18643. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18644. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18645. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18646. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18647. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18648. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18649. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18650. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18651. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18652. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18653. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18654. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18655. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18656. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18657. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18658. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18659. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18660. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18661. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18662. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18663. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18664. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18665. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18666. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18667. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18668. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18669. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18670. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18671. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18672. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18673. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18674. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18675. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18676. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18677. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18678. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18679. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18680. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18681. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18682. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18683. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18684. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18685. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18686. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18687. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18688. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18689. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18690. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18691. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18692. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18693. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18694. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18695. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18696. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18697. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18698. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18699. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18700. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18701. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18702. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18703. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18704. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18705. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18706. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18707. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18708. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18709. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18710. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18711. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18712. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18713. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18714. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18715. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18716. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18717. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18718. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18719. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18720. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18721. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18722. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18723. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18724. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18725. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18726. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18727. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18728. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18729. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18730. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18731. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18732. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18733. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18734. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18735. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18736. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18737. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18738. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18739. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18740. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18741. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18742. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18743. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18744. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18745. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18746. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18747. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18748. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18749. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18750. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18751. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18752. /* Backend Enablement */
  18753. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18754. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18755. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18756. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18757. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18758. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18759. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18760. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18761. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18762. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18763. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18764. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18765. {"BE_OUT", NULL, "HDMI"},
  18766. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18767. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18768. {"BE_OUT", NULL, "SPDIF_RX"},
  18769. {"BE_OUT", NULL, "MI2S_RX"},
  18770. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18771. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18772. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18773. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18774. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18775. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18776. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18777. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18778. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18779. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18780. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18781. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18782. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18783. {"BE_OUT", NULL, "INT_FM_RX"},
  18784. {"BE_OUT", NULL, "PCM_RX"},
  18785. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18786. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18787. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18788. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18789. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18790. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18791. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18792. {"BE_OUT", NULL, "INT_FM_RX"},
  18793. {"BE_OUT", NULL, "PCM_RX"},
  18794. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18795. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18796. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18797. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18798. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18799. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18800. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18801. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18802. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18803. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18804. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18805. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18806. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18807. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18808. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18809. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18810. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18811. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18812. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18813. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18814. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18815. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18816. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18817. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18818. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18819. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18820. {"PRI_I2S_TX", NULL, "BE_IN"},
  18821. {"MI2S_TX", NULL, "BE_IN"},
  18822. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18823. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18824. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18825. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18826. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18827. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18828. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18829. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18830. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18831. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18832. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18833. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18834. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18835. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18836. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18837. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18838. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18839. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18840. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18841. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18842. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18843. {"INT_FM_TX", NULL, "BE_IN"},
  18844. {"PCM_TX", NULL, "BE_IN"},
  18845. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18846. {"BE_OUT", NULL, "STUB_RX"},
  18847. {"STUB_TX", NULL, "BE_IN"},
  18848. {"STUB_1_TX", NULL, "BE_IN"},
  18849. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18850. {"AUX_PCM_TX", NULL, "BE_IN"},
  18851. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18852. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18853. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18854. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18855. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18856. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18857. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18858. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18859. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18860. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18861. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18862. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18863. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18864. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18865. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18866. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18867. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18868. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18869. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18870. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18871. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18872. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18873. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18874. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18875. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18876. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18877. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18878. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18879. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18880. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18881. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18882. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18883. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18884. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18885. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18886. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18887. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18888. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18889. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18890. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18891. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18892. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18893. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18894. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18895. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18896. };
  18897. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18898. struct snd_pcm_hw_params *params)
  18899. {
  18900. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18901. unsigned int be_id = rtd->dai_link->id;
  18902. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18903. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18904. return -EINVAL;
  18905. }
  18906. mutex_lock(&routing_lock);
  18907. msm_bedais[be_id].sample_rate = params_rate(params);
  18908. msm_bedais[be_id].channel = params_channels(params);
  18909. msm_bedais[be_id].format = params_format(params);
  18910. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18911. __func__, msm_bedais[be_id].sample_rate,
  18912. msm_bedais[be_id].format, be_id);
  18913. mutex_unlock(&routing_lock);
  18914. return 0;
  18915. }
  18916. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18917. {
  18918. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18919. unsigned int be_id = rtd->dai_link->id;
  18920. int i, session_type, path_type, topology;
  18921. struct msm_pcm_routing_bdai_data *bedai;
  18922. struct msm_pcm_routing_fdai_data *fdai;
  18923. pr_debug("%s: substream->pcm->id:%s\n",
  18924. __func__, substream->pcm->id);
  18925. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18926. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18927. return -EINVAL;
  18928. }
  18929. bedai = &msm_bedais[be_id];
  18930. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18931. 0 : 1);
  18932. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18933. path_type = ADM_PATH_PLAYBACK;
  18934. else
  18935. path_type = ADM_PATH_LIVE_REC;
  18936. mutex_lock(&routing_lock);
  18937. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18938. if (!is_mm_lsm_fe_id(i))
  18939. continue;
  18940. fdai = &fe_dai_map[i][session_type];
  18941. if (fdai->strm_id != INVALID_SESSION) {
  18942. int idx;
  18943. int port_id;
  18944. unsigned long copp =
  18945. session_copp_map[i][session_type][be_id];
  18946. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18947. if (test_bit(idx, &copp))
  18948. break;
  18949. fdai->be_srate = bedai->sample_rate;
  18950. port_id = bedai->port_id;
  18951. topology = adm_get_topology_for_port_copp_idx(port_id,
  18952. idx);
  18953. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18954. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18955. __func__, copp, i, session_type, be_id,
  18956. topology);
  18957. clear_bit(idx,
  18958. &session_copp_map[i][session_type][be_id]);
  18959. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18960. (bedai->passthr_mode[i] == LEGACY_PCM))
  18961. msm_pcm_routing_deinit_pp(bedai->port_id,
  18962. topology);
  18963. }
  18964. }
  18965. bedai->active = 0;
  18966. bedai->sample_rate = 0;
  18967. bedai->channel = 0;
  18968. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  18969. if (bedai->passthr_mode[i] != LISTEN)
  18970. bedai->passthr_mode[i] = LEGACY_PCM;
  18971. }
  18972. mutex_unlock(&routing_lock);
  18973. return 0;
  18974. }
  18975. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  18976. {
  18977. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18978. unsigned int be_id = rtd->dai_link->id;
  18979. int i, path_type, topology;
  18980. int session_type = INVALID_SESSION;
  18981. struct msm_pcm_routing_bdai_data *bedai;
  18982. u32 channels, sample_rate;
  18983. uint16_t bits_per_sample = 16, voc_path_type;
  18984. struct msm_pcm_routing_fdai_data *fdai;
  18985. u32 session_id;
  18986. struct media_format_info voc_be_media_format;
  18987. bool is_lsm;
  18988. pr_debug("%s: substream->pcm->id:%s\n",
  18989. __func__, substream->pcm->id);
  18990. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18991. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18992. return -EINVAL;
  18993. }
  18994. bedai = &msm_bedais[be_id];
  18995. mutex_lock(&routing_lock);
  18996. if (bedai->active == 1)
  18997. goto done; /* Ignore prepare if back-end already active */
  18998. /* AFE port is not active at this point. However, still
  18999. * go ahead setting active flag under the notion that
  19000. * QDSP6 is able to handle ADM starting before AFE port
  19001. * is started.
  19002. */
  19003. bedai->active = 1;
  19004. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19005. if (!(is_mm_lsm_fe_id(i) &&
  19006. route_check_fe_id_adm_support(i)))
  19007. continue;
  19008. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19009. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19010. path_type = ADM_PATH_COMPRESSED_RX;
  19011. else
  19012. path_type = ADM_PATH_PLAYBACK;
  19013. session_type = SESSION_TYPE_RX;
  19014. } else {
  19015. path_type = ADM_PATH_LIVE_REC;
  19016. session_type = SESSION_TYPE_TX;
  19017. }
  19018. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19019. (i <= MSM_FRONTEND_DAI_LSM8);
  19020. fdai = &fe_dai_map[i][session_type];
  19021. if (fdai->strm_id != INVALID_SESSION) {
  19022. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19023. if (session_type == SESSION_TYPE_TX &&
  19024. fdai->be_srate &&
  19025. (fdai->be_srate != bedai->sample_rate)) {
  19026. pr_debug("%s: flush strm %d diff BE rates\n",
  19027. __func__,
  19028. fdai->strm_id);
  19029. if (fdai->event_info.event_func)
  19030. fdai->event_info.event_func(
  19031. MSM_PCM_RT_EVT_BUF_RECFG,
  19032. fdai->event_info.priv_data);
  19033. fdai->be_srate = 0; /* might not need it */
  19034. }
  19035. bits_per_sample = msm_routing_get_bit_width(
  19036. bedai->format);
  19037. app_type =
  19038. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19039. if (app_type && is_lsm) {
  19040. app_type_idx =
  19041. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19042. sample_rate =
  19043. fe_dai_app_type_cfg[i][session_type][be_id]
  19044. .sample_rate;
  19045. bits_per_sample =
  19046. lsm_app_type_cfg[app_type_idx].bit_width;
  19047. } else if (app_type) {
  19048. app_type_idx =
  19049. msm_pcm_routing_get_app_type_idx(app_type);
  19050. sample_rate =
  19051. fe_dai_app_type_cfg[i][session_type]
  19052. [be_id].sample_rate;
  19053. bits_per_sample =
  19054. app_type_cfg[app_type_idx].bit_width;
  19055. } else
  19056. sample_rate = bedai->sample_rate;
  19057. /*
  19058. * check if ADM needs to be configured with different
  19059. * channel mapping than backend
  19060. */
  19061. if (!bedai->adm_override_ch)
  19062. channels = bedai->channel;
  19063. else
  19064. channels = bedai->adm_override_ch;
  19065. acdb_dev_id =
  19066. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19067. topology = msm_routing_get_adm_topology(i, session_type,
  19068. be_id);
  19069. copp_idx = adm_open(bedai->port_id, path_type,
  19070. sample_rate, channels, topology,
  19071. fdai->perf_mode, bits_per_sample,
  19072. app_type, acdb_dev_id);
  19073. if ((copp_idx < 0) ||
  19074. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19075. pr_err("%s: adm open failed\n", __func__);
  19076. mutex_unlock(&routing_lock);
  19077. return -EINVAL;
  19078. }
  19079. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19080. __func__, i, session_type, be_id);
  19081. set_bit(copp_idx,
  19082. &session_copp_map[i][session_type][be_id]);
  19083. if (msm_is_resample_needed(
  19084. sample_rate,
  19085. bedai->sample_rate))
  19086. adm_copp_mfc_cfg(
  19087. bedai->port_id, copp_idx,
  19088. bedai->sample_rate);
  19089. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19090. fdai->perf_mode,
  19091. bedai->passthr_mode[i]);
  19092. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19093. (bedai->passthr_mode[i] == LEGACY_PCM))
  19094. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19095. topology, channels);
  19096. }
  19097. }
  19098. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19099. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19100. if (session_id) {
  19101. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19102. session_id);
  19103. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19104. voc_path_type = RX_PATH;
  19105. else
  19106. voc_path_type = TX_PATH;
  19107. voc_set_route_flag(session_id, voc_path_type, 1);
  19108. memset(&voc_be_media_format, 0,
  19109. sizeof(struct media_format_info));
  19110. voc_be_media_format.port_id = bedai->port_id;
  19111. voc_be_media_format.num_channels = bedai->channel;
  19112. voc_be_media_format.sample_rate = bedai->sample_rate;
  19113. voc_be_media_format.bits_per_sample = bedai->format;
  19114. /* Defaulting this to 1 for voice call usecases */
  19115. voc_be_media_format.channel_mapping[0] = 1;
  19116. voc_set_device_config(session_id, voc_path_type,
  19117. &voc_be_media_format);
  19118. if (voc_get_route_flag(session_id, RX_PATH) &&
  19119. voc_get_route_flag(session_id, TX_PATH))
  19120. voc_enable_device(session_id);
  19121. }
  19122. }
  19123. /* Check if backend is an external ec ref port and set as needed */
  19124. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19125. memset(&voc_be_media_format, 0,
  19126. sizeof(struct media_format_info));
  19127. /* Get format info for ec ref port from msm_bedais[] */
  19128. voc_be_media_format.port_id = bedai->port_id;
  19129. voc_be_media_format.num_channels = bedai->channel;
  19130. voc_be_media_format.bits_per_sample = bedai->format;
  19131. voc_be_media_format.sample_rate = bedai->sample_rate;
  19132. /* Defaulting this to 1 for voice call usecases */
  19133. voc_be_media_format.channel_mapping[0] = 1;
  19134. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19135. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19136. __func__, voc_be_media_format.port_id,
  19137. voc_be_media_format.num_channels,
  19138. voc_be_media_format.bits_per_sample,
  19139. voc_be_media_format.sample_rate);
  19140. }
  19141. done:
  19142. mutex_unlock(&routing_lock);
  19143. return 0;
  19144. }
  19145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19146. int fe_id)
  19147. {
  19148. int index, topo_id, be_idx;
  19149. unsigned long pp_config = 0;
  19150. bool mute_on;
  19151. int latency;
  19152. bool compr_passthr_mode = true;
  19153. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19154. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19155. pr_err("%s: Device pp params on invalid port %d\n",
  19156. __func__, port_id);
  19157. return -EINVAL;
  19158. }
  19159. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19160. if (port_id == msm_bedais[be_idx].port_id)
  19161. break;
  19162. }
  19163. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19164. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19165. return -EINVAL;
  19166. }
  19167. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19168. if (msm_bedais_pp_params[index].port_id == port_id)
  19169. break;
  19170. }
  19171. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19172. pr_err("%s: Invalid backend pp params index %d\n",
  19173. __func__, index);
  19174. return -EINVAL;
  19175. }
  19176. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19177. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19178. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19179. __func__, topo_id);
  19180. return -EINVAL;
  19181. }
  19182. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19183. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19184. compr_passthr_mode = false;
  19185. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19186. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19187. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19188. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19189. mute_on = msm_bedais_pp_params[index].mute_on;
  19190. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19191. adm_send_compressed_device_mute(port_id,
  19192. copp_idx,
  19193. mute_on);
  19194. }
  19195. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19196. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19197. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19198. &pp_config);
  19199. latency = msm_bedais_pp_params[index].latency;
  19200. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19201. adm_send_compressed_device_latency(port_id,
  19202. copp_idx,
  19203. latency);
  19204. }
  19205. return 0;
  19206. }
  19207. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19208. struct snd_ctl_elem_value *ucontrol)
  19209. {
  19210. int pp_id = ucontrol->value.integer.value[0];
  19211. int port_id = 0;
  19212. int index, be_idx, i, topo_id, idx;
  19213. bool mute;
  19214. int latency;
  19215. bool compr_passthr_mode = true;
  19216. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19217. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19218. port_id = msm_bedais[be_idx].port_id;
  19219. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19220. break;
  19221. }
  19222. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19223. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19224. return -EINVAL;
  19225. }
  19226. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19227. if (msm_bedais_pp_params[index].port_id == port_id)
  19228. break;
  19229. }
  19230. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19231. pr_err("%s: Invalid pp params backend index %d\n",
  19232. __func__, index);
  19233. return -EINVAL;
  19234. }
  19235. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19236. MSM_FRONTEND_DAI_MM_SIZE) {
  19237. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19238. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19239. compr_passthr_mode = false;
  19240. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19241. unsigned long copp =
  19242. session_copp_map[i]
  19243. [SESSION_TYPE_RX][be_idx];
  19244. if (!test_bit(idx, &copp))
  19245. continue;
  19246. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19247. idx);
  19248. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19249. continue;
  19250. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19251. __func__, port_id, copp, msm_bedais[be_idx].active,
  19252. msm_bedais[be_idx].passthr_mode[i]);
  19253. switch (pp_id) {
  19254. case ADM_PP_PARAM_MUTE_ID:
  19255. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19256. mute = ucontrol->value.integer.value[1] ? true : false;
  19257. msm_bedais_pp_params[index].mute_on = mute;
  19258. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19259. &msm_bedais_pp_params[index].pp_params_config);
  19260. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19261. adm_send_compressed_device_mute(port_id,
  19262. idx, mute);
  19263. break;
  19264. case ADM_PP_PARAM_LATENCY_ID:
  19265. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19266. msm_bedais_pp_params[index].latency =
  19267. ucontrol->value.integer.value[1];
  19268. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19269. &msm_bedais_pp_params[index].pp_params_config);
  19270. latency = msm_bedais_pp_params[index].latency =
  19271. ucontrol->value.integer.value[1];
  19272. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19273. adm_send_compressed_device_latency(port_id,
  19274. idx, latency);
  19275. break;
  19276. default:
  19277. pr_info("%s, device pp param %d not supported\n",
  19278. __func__, pp_id);
  19279. break;
  19280. }
  19281. }
  19282. }
  19283. return 0;
  19284. }
  19285. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19286. struct snd_ctl_elem_value *ucontrol)
  19287. {
  19288. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19289. return 0;
  19290. }
  19291. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19292. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19293. 0, 3, msm_routing_get_device_pp_params_mixer,
  19294. msm_routing_put_device_pp_params_mixer),
  19295. };
  19296. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19297. struct snd_ctl_elem_value *ucontrol)
  19298. {
  19299. ucontrol->value.integer.value[0] =
  19300. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19301. pr_debug("%s: status %ld\n", __func__,
  19302. ucontrol->value.integer.value[0]);
  19303. return 0;
  19304. }
  19305. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19306. struct snd_ctl_elem_value *ucontrol)
  19307. {
  19308. int32_t status = 0;
  19309. status = core_set_license(ucontrol->value.integer.value[0],
  19310. APTX_CLASSIC_DEC_LICENSE_ID);
  19311. pr_debug("%s: status %d\n", __func__, status);
  19312. return status;
  19313. }
  19314. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19315. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19316. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19317. msm_aptx_dec_license_control_put),
  19318. };
  19319. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19320. struct snd_ctl_elem_info *uinfo)
  19321. {
  19322. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19323. uinfo->count = sizeof(be_dai_name_table);
  19324. return 0;
  19325. }
  19326. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19327. unsigned int __user *bytes,
  19328. unsigned int size)
  19329. {
  19330. int i;
  19331. int ret;
  19332. if (size < sizeof(be_dai_name_table)) {
  19333. pr_err("%s: invalid size %d requested, returning\n",
  19334. __func__, size);
  19335. ret = -EINVAL;
  19336. goto done;
  19337. }
  19338. /*
  19339. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19340. * needed when adding new backends
  19341. */
  19342. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19343. be_dai_name_table[i].be_id = i;
  19344. strlcpy(be_dai_name_table[i].be_name,
  19345. msm_bedais[i].name,
  19346. LPASS_BE_NAME_MAX_LENGTH);
  19347. }
  19348. ret = copy_to_user(bytes, &be_dai_name_table,
  19349. sizeof(be_dai_name_table));
  19350. if (ret) {
  19351. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19352. ret = -EFAULT;
  19353. }
  19354. done:
  19355. return ret;
  19356. }
  19357. static const struct snd_kcontrol_new
  19358. msm_routing_be_dai_name_table_mixer_controls[] = {
  19359. {
  19360. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19361. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19362. .info = msm_routing_be_dai_name_table_info,
  19363. .name = "Backend DAI Name Table",
  19364. .tlv.c = snd_soc_bytes_tlv_callback,
  19365. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19366. .max = sizeof(be_dai_name_table),
  19367. .get = msm_routing_be_dai_name_table_tlv_get,
  19368. }
  19369. },
  19370. };
  19371. static int msm_routing_stereo_channel_reverse_control_get(
  19372. struct snd_kcontrol *kcontrol,
  19373. struct snd_ctl_elem_value *ucontrol)
  19374. {
  19375. ucontrol->value.integer.value[0] = swap_ch;
  19376. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19377. ucontrol->value.integer.value[0]);
  19378. return 0;
  19379. }
  19380. static int msm_routing_stereo_channel_reverse_control_put(
  19381. struct snd_kcontrol *kcontrol,
  19382. struct snd_ctl_elem_value *ucontrol)
  19383. {
  19384. int i, idx, be_index, port_id;
  19385. int ret = 0;
  19386. unsigned long copp;
  19387. pr_debug("%s Swap channel value:%ld\n", __func__,
  19388. ucontrol->value.integer.value[0]);
  19389. swap_ch = ucontrol->value.integer.value[0];
  19390. mutex_lock(&routing_lock);
  19391. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19392. port_id = msm_bedais[be_index].port_id;
  19393. if (!msm_bedais[be_index].active)
  19394. continue;
  19395. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19396. MSM_FRONTEND_DAI_MM_SIZE) {
  19397. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19398. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19399. if (!test_bit(idx, &copp))
  19400. continue;
  19401. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19402. __func__, port_id, idx);
  19403. ret = adm_swap_speaker_channels(
  19404. port_id, idx,
  19405. msm_bedais[be_index].sample_rate,
  19406. swap_ch);
  19407. if (ret) {
  19408. pr_err("%s:Swap_channel failed, err=%d\n",
  19409. __func__, ret);
  19410. goto done;
  19411. }
  19412. }
  19413. }
  19414. }
  19415. done:
  19416. mutex_unlock(&routing_lock);
  19417. return ret;
  19418. }
  19419. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19420. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19421. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19422. msm_routing_stereo_channel_reverse_control_put),
  19423. };
  19424. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19425. struct snd_ctl_elem_info *uinfo)
  19426. {
  19427. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19428. uinfo->count = 1;
  19429. return 0;
  19430. }
  19431. static int msm_routing_instance_id_support_put(
  19432. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19433. {
  19434. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19435. q6common_update_instance_id_support(supported);
  19436. return 0;
  19437. }
  19438. static int msm_routing_instance_id_support_get(
  19439. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19440. {
  19441. bool supported = false;
  19442. supported = q6common_is_instance_id_supported();
  19443. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19444. return 0;
  19445. }
  19446. static const struct snd_kcontrol_new
  19447. msm_routing_feature_support_mixer_controls[] = {
  19448. {
  19449. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19450. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19451. .info = msm_routing_instance_id_support_info,
  19452. .name = "Instance ID Support",
  19453. .put = msm_routing_instance_id_support_put,
  19454. .get = msm_routing_instance_id_support_get,
  19455. },
  19456. };
  19457. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19458. .hw_params = msm_pcm_routing_hw_params,
  19459. .close = msm_pcm_routing_close,
  19460. .prepare = msm_pcm_routing_prepare,
  19461. };
  19462. /* Not used but frame seems to require it */
  19463. static int msm_routing_probe(struct snd_soc_platform *platform)
  19464. {
  19465. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19466. ARRAY_SIZE(msm_qdsp6_widgets));
  19467. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19468. ARRAY_SIZE(intercon));
  19469. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19470. snd_soc_add_platform_controls(platform, lsm_controls,
  19471. ARRAY_SIZE(lsm_controls));
  19472. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19473. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19474. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19475. ARRAY_SIZE(msm_voc_session_controls));
  19476. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19477. ARRAY_SIZE(app_type_cfg_controls));
  19478. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19479. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19480. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19481. ARRAY_SIZE(module_cfg_controls));
  19482. snd_soc_add_platform_controls(platform,
  19483. stereo_to_custom_stereo_controls,
  19484. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19485. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19486. ARRAY_SIZE(ec_ref_param_controls));
  19487. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19488. ARRAY_SIZE(channel_mixer_controls));
  19489. msm_qti_pp_add_controls(platform);
  19490. msm_dts_srs_tm_add_controls(platform);
  19491. msm_dolby_dap_add_controls(platform);
  19492. snd_soc_add_platform_controls(platform,
  19493. use_ds1_or_ds2_controls,
  19494. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19495. snd_soc_add_platform_controls(platform,
  19496. device_pp_params_mixer_controls,
  19497. ARRAY_SIZE(device_pp_params_mixer_controls));
  19498. snd_soc_add_platform_controls(platform,
  19499. msm_routing_be_dai_name_table_mixer_controls,
  19500. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19501. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19502. ARRAY_SIZE(msm_source_tracking_controls));
  19503. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19504. ARRAY_SIZE(adm_channel_config_controls));
  19505. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19506. ARRAY_SIZE(aptx_dec_license_controls));
  19507. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19508. ARRAY_SIZE(stereo_channel_reverse_control));
  19509. snd_soc_add_platform_controls(
  19510. platform, msm_routing_feature_support_mixer_controls,
  19511. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19512. return 0;
  19513. }
  19514. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19515. {
  19516. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19517. }
  19518. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19519. {
  19520. msm_pcm_routing_hwdep_free(pcm);
  19521. }
  19522. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19523. .ops = &msm_routing_pcm_ops,
  19524. .probe = msm_routing_probe,
  19525. .pcm_new = msm_routing_pcm_new,
  19526. .pcm_free = msm_routing_pcm_free,
  19527. };
  19528. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19529. {
  19530. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19531. return snd_soc_register_platform(&pdev->dev,
  19532. &msm_soc_routing_platform);
  19533. }
  19534. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19535. {
  19536. snd_soc_unregister_platform(&pdev->dev);
  19537. return 0;
  19538. }
  19539. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19540. {.compatible = "qcom,msm-pcm-routing"},
  19541. {}
  19542. };
  19543. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19544. static struct platform_driver msm_routing_pcm_driver = {
  19545. .driver = {
  19546. .name = "msm-pcm-routing",
  19547. .owner = THIS_MODULE,
  19548. .of_match_table = msm_pcm_routing_dt_match,
  19549. },
  19550. .probe = msm_routing_pcm_probe,
  19551. .remove = msm_routing_pcm_remove,
  19552. };
  19553. int msm_routing_check_backend_enabled(int fedai_id)
  19554. {
  19555. int i;
  19556. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19557. /* bad ID assigned in machine driver */
  19558. pr_err("%s: bad MM ID\n", __func__);
  19559. return 0;
  19560. }
  19561. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19562. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19563. return msm_bedais[i].active;
  19564. }
  19565. return 0;
  19566. }
  19567. static int get_cal_type_index(int32_t cal_type)
  19568. {
  19569. int ret = -EINVAL;
  19570. switch (cal_type) {
  19571. case ADM_TOPOLOGY_CAL_TYPE:
  19572. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19573. break;
  19574. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19575. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19576. break;
  19577. default:
  19578. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19579. }
  19580. return ret;
  19581. }
  19582. static int msm_routing_set_cal(int32_t cal_type,
  19583. size_t data_size, void *data)
  19584. {
  19585. int ret = 0;
  19586. int cal_index;
  19587. pr_debug("%s\n", __func__);
  19588. cal_index = get_cal_type_index(cal_type);
  19589. if (cal_index < 0) {
  19590. pr_err("%s: Could not get cal index %d\n",
  19591. __func__, cal_index);
  19592. ret = -EINVAL;
  19593. goto done;
  19594. }
  19595. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19596. if (ret < 0) {
  19597. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19598. __func__, ret, cal_type);
  19599. ret = -EINVAL;
  19600. goto done;
  19601. }
  19602. done:
  19603. return ret;
  19604. }
  19605. static void msm_routing_delete_cal_data(void)
  19606. {
  19607. pr_debug("%s\n", __func__);
  19608. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19609. }
  19610. static int msm_routing_init_cal_data(void)
  19611. {
  19612. int ret = 0;
  19613. struct cal_type_info cal_type_info[] = {
  19614. {{ADM_TOPOLOGY_CAL_TYPE,
  19615. {NULL, NULL, NULL,
  19616. msm_routing_set_cal, NULL, NULL} },
  19617. {NULL, NULL, cal_utils_match_buf_num} },
  19618. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19619. {NULL, NULL, NULL,
  19620. msm_routing_set_cal, NULL, NULL} },
  19621. {NULL, NULL, cal_utils_match_buf_num} },
  19622. };
  19623. pr_debug("%s\n", __func__);
  19624. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19625. &cal_type_info[0]);
  19626. if (ret < 0) {
  19627. pr_err("%s: could not create cal type!\n",
  19628. __func__);
  19629. ret = -EINVAL;
  19630. goto err;
  19631. }
  19632. return ret;
  19633. err:
  19634. msm_routing_delete_cal_data();
  19635. return ret;
  19636. }
  19637. int __init msm_soc_routing_platform_init(void)
  19638. {
  19639. mutex_init(&routing_lock);
  19640. if (msm_routing_init_cal_data())
  19641. pr_err("%s: could not init cal data!\n", __func__);
  19642. afe_set_routing_callback(
  19643. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19644. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19645. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19646. return platform_driver_register(&msm_routing_pcm_driver);
  19647. }
  19648. void msm_soc_routing_platform_exit(void)
  19649. {
  19650. msm_routing_delete_cal_data();
  19651. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19652. mutex_destroy(&routing_lock);
  19653. platform_driver_unregister(&msm_routing_pcm_driver);
  19654. }
  19655. MODULE_DESCRIPTION("MSM routing platform driver");
  19656. MODULE_LICENSE("GPL v2");