msm-pcm-routing-v2.c 813 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. };
  576. /* Track ASM playback & capture sessions of DAI
  577. * Track LSM listen sessions
  578. */
  579. static struct msm_pcm_routing_fdai_data
  580. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  581. /* MULTIMEDIA1 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA2 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA3 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA4 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA5 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA6 */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA7*/
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA8 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA9 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA10 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA11 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA12 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA13 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA14 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA15 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA16 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA17 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA18 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA19 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA20 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA28 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA29 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* VOIP */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_RX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* AFE_TX */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* VOICE_STUB */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* DTMF_RX */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* QCHAT */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* VOLTE_STUB */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM1 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM2 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM3 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM4 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM5 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM6 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM7 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* LSM8 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICE2_STUB */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE1 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* VOICEMMODE2 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. };
  702. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  703. [MSM_BACKEND_DAI_MAX];
  704. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  705. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  706. static struct msm_pcm_stream_app_type_cfg
  707. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  708. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  709. /* The caller of this should aqcuire routing lock */
  710. void msm_pcm_routing_get_bedai_info(int be_idx,
  711. struct msm_pcm_routing_bdai_data *be_dai)
  712. {
  713. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  714. memcpy(be_dai, &msm_bedais[be_idx],
  715. sizeof(struct msm_pcm_routing_bdai_data));
  716. }
  717. /* The caller of this should aqcuire routing lock */
  718. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  719. struct msm_pcm_routing_fdai_data *fe_dai)
  720. {
  721. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  722. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  723. sizeof(struct msm_pcm_routing_fdai_data));
  724. }
  725. void msm_pcm_routing_acquire_lock(void)
  726. {
  727. mutex_lock(&routing_lock);
  728. }
  729. void msm_pcm_routing_release_lock(void)
  730. {
  731. mutex_unlock(&routing_lock);
  732. }
  733. static int msm_pcm_routing_get_app_type_idx(int app_type)
  734. {
  735. int idx;
  736. pr_debug("%s: app_type: %d\n", __func__, app_type);
  737. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  738. if (app_type_cfg[idx].app_type == app_type)
  739. return idx;
  740. }
  741. pr_info("%s: App type not available, fallback to default\n", __func__);
  742. return 0;
  743. }
  744. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  745. {
  746. int idx;
  747. pr_debug("%s: app_type: %d\n", __func__, app_type);
  748. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  749. if (lsm_app_type_cfg[idx].app_type == app_type)
  750. return idx;
  751. }
  752. pr_debug("%s: App type not available, fallback to default\n", __func__);
  753. return 0;
  754. }
  755. static bool is_mm_lsm_fe_id(int fe_id)
  756. {
  757. bool rc = true;
  758. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  759. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  760. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  761. rc = false;
  762. }
  763. return rc;
  764. }
  765. /*
  766. * msm_pcm_routing_send_chmix_cfg:
  767. * send the channel mixer command to mix the input channels
  768. * into output channels.
  769. *
  770. * @fe_id: front end id
  771. * @ip_channel_cnt: input channel count
  772. * @op_channel_cnt: output channel count
  773. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  774. * @session_type: indicates session is of type TX or RX
  775. * @stream_type: indicates either Audio or Listen stream type
  776. */
  777. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  778. int op_channel_cnt, int *ch_wght_coeff,
  779. int session_type, int stream_type)
  780. {
  781. int rc = 0, idx = 0;
  782. int be_index = 0, port_id;
  783. unsigned int session_id = 0;
  784. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  785. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  786. stream_type);
  787. if (!is_mm_lsm_fe_id(fe_id)) {
  788. /* bad ID assigned in machine driver */
  789. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  790. return -EINVAL;
  791. }
  792. if (ch_wght_coeff == NULL) {
  793. pr_err("%s: Null channel weightage coefficients passed\n",
  794. __func__);
  795. return -EINVAL;
  796. }
  797. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  798. port_id = msm_bedais[be_index].port_id;
  799. if (!msm_bedais[be_index].active ||
  800. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  801. continue;
  802. session_id = fe_dai_map[fe_id][session_type].strm_id;
  803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  804. unsigned long copp =
  805. session_copp_map[fe_id][session_type][be_index];
  806. if (!test_bit(idx, &copp))
  807. continue;
  808. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  809. session_id, ip_channel_cnt,
  810. op_channel_cnt, ch_wght_coeff,
  811. session_type, stream_type);
  812. if (rc < 0)
  813. pr_err("%s: err setting channel mix config\n",
  814. __func__);
  815. }
  816. }
  817. return 0;
  818. }
  819. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  820. int msm_pcm_routing_reg_stream_app_type_cfg(
  821. int fedai_id, int session_type, int be_id,
  822. struct msm_pcm_stream_app_type_cfg *cfg_data)
  823. {
  824. int ret = 0;
  825. if (cfg_data == NULL) {
  826. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  827. ret = -EINVAL;
  828. goto done;
  829. }
  830. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  831. __func__, fedai_id, session_type, be_id,
  832. cfg_data->app_type, cfg_data->acdb_dev_id,
  833. cfg_data->sample_rate);
  834. if (!is_mm_lsm_fe_id(fedai_id)) {
  835. pr_err("%s: Invalid machine driver ID %d\n",
  836. __func__, fedai_id);
  837. ret = -EINVAL;
  838. goto done;
  839. }
  840. if (session_type != SESSION_TYPE_RX &&
  841. session_type != SESSION_TYPE_TX) {
  842. pr_err("%s: Invalid session type %d\n",
  843. __func__, session_type);
  844. ret = -EINVAL;
  845. goto done;
  846. }
  847. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  848. pr_err("%s: Received out of bounds be_id %d\n",
  849. __func__, be_id);
  850. ret = -EINVAL;
  851. goto done;
  852. }
  853. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  854. /*
  855. * Store the BE ID of the configuration information set as the latest so
  856. * the get mixer control knows what to return.
  857. */
  858. last_be_id_configured[fedai_id][session_type] = be_id;
  859. done:
  860. return ret;
  861. }
  862. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  863. /**
  864. * msm_pcm_routing_get_stream_app_type_cfg
  865. *
  866. * Receives fedai_id, session_type, be_id, and populates app_type,
  867. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  868. * -EINVAL and does not alter passed values.
  869. *
  870. * fedai_id - Passed value, front end ID for which app type config is wanted
  871. * session_type - Passed value, session type for which app type config
  872. * is wanted
  873. * be_id - Returned value, back end device id the app type config data is for
  874. * cfg_data - Returned value, configuration data used by app type config
  875. */
  876. int msm_pcm_routing_get_stream_app_type_cfg(
  877. int fedai_id, int session_type, int *bedai_id,
  878. struct msm_pcm_stream_app_type_cfg *cfg_data)
  879. {
  880. int be_id;
  881. int ret = 0;
  882. if (bedai_id == NULL) {
  883. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  884. ret = -EINVAL;
  885. goto done;
  886. } else if (cfg_data == NULL) {
  887. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  888. ret = -EINVAL;
  889. goto done;
  890. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  891. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  892. ret = -EINVAL;
  893. goto done;
  894. } else if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  897. ret = -EINVAL;
  898. goto done;
  899. }
  900. be_id = last_be_id_configured[fedai_id][session_type];
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  903. ret = -EINVAL;
  904. goto done;
  905. }
  906. *bedai_id = be_id;
  907. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  908. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  909. __func__, fedai_id, session_type, *bedai_id,
  910. cfg_data->app_type, cfg_data->acdb_dev_id,
  911. cfg_data->sample_rate);
  912. done:
  913. return ret;
  914. }
  915. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  916. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  917. int cal_index)
  918. {
  919. struct list_head *ptr, *next;
  920. struct cal_block_data *cal_block = NULL;
  921. pr_debug("%s\n", __func__);
  922. list_for_each_safe(ptr, next,
  923. &cal_data[cal_index]->cal_blocks) {
  924. cal_block = list_entry(ptr,
  925. struct cal_block_data, list);
  926. if (cal_utils_is_cal_stale(cal_block))
  927. continue;
  928. if (((struct audio_cal_info_adm_top *)cal_block
  929. ->cal_info)->path == path) {
  930. return cal_block;
  931. }
  932. }
  933. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  934. return NULL;
  935. }
  936. static struct cal_block_data *msm_routing_find_topology(int path,
  937. int app_type,
  938. int acdb_id,
  939. int cal_index)
  940. {
  941. struct list_head *ptr, *next;
  942. struct cal_block_data *cal_block = NULL;
  943. struct audio_cal_info_adm_top *cal_info;
  944. pr_debug("%s\n", __func__);
  945. list_for_each_safe(ptr, next,
  946. &cal_data[cal_index]->cal_blocks) {
  947. cal_block = list_entry(ptr,
  948. struct cal_block_data, list);
  949. if (cal_utils_is_cal_stale(cal_block))
  950. continue;
  951. cal_info = (struct audio_cal_info_adm_top *)
  952. cal_block->cal_info;
  953. if ((cal_info->path == path) &&
  954. (cal_info->app_type == app_type) &&
  955. (cal_info->acdb_id == acdb_id)) {
  956. return cal_block;
  957. }
  958. }
  959. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  960. __func__, path, app_type, acdb_id);
  961. return msm_routing_find_topology_by_path(path, cal_index);
  962. }
  963. /*
  964. * Retrieving cal_block will mark cal_block as stale.
  965. * Hence it cannot be reused or resent unless the flag
  966. * is reset.
  967. */
  968. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  969. int be_id)
  970. {
  971. int topology = NULL_COPP_TOPOLOGY;
  972. struct cal_block_data *cal_block = NULL;
  973. int app_type = 0, acdb_dev_id = 0;
  974. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  975. __func__, fedai_id, session_type, be_id);
  976. if (cal_data == NULL)
  977. goto done;
  978. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  979. acdb_dev_id =
  980. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  981. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  982. cal_block = msm_routing_find_topology(session_type, app_type,
  983. acdb_dev_id,
  984. ADM_TOPOLOGY_CAL_TYPE_IDX);
  985. if (cal_block != NULL) {
  986. topology = ((struct audio_cal_info_adm_top *)
  987. cal_block->cal_info)->topology;
  988. cal_utils_mark_cal_used(cal_block);
  989. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  990. } else {
  991. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  992. pr_debug("%s: Check for LSM topology\n", __func__);
  993. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  994. cal_block = msm_routing_find_topology(session_type, app_type,
  995. acdb_dev_id,
  996. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  997. if (cal_block != NULL) {
  998. topology = ((struct audio_cal_info_adm_top *)
  999. cal_block->cal_info)->topology;
  1000. cal_utils_mark_cal_used(cal_block);
  1001. }
  1002. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1003. }
  1004. done:
  1005. pr_debug("%s: Using topology %d\n", __func__, topology);
  1006. return topology;
  1007. }
  1008. static uint8_t is_be_dai_extproc(int be_dai)
  1009. {
  1010. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1011. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1012. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1013. return 1;
  1014. else
  1015. return 0;
  1016. }
  1017. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1018. int path_type, int perf_mode,
  1019. uint32_t passthr_mode)
  1020. {
  1021. int i, port_type, j, num_copps = 0;
  1022. struct route_payload payload;
  1023. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1024. path_type == ADM_PATH_COMPRESSED_RX) ?
  1025. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1026. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1027. if (!is_be_dai_extproc(i) &&
  1028. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1029. (msm_bedais[i].active) &&
  1030. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1031. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1032. unsigned long copp =
  1033. session_copp_map[fedai_id][sess_type][i];
  1034. if (test_bit(j, &copp)) {
  1035. payload.port_id[num_copps] =
  1036. msm_bedais[i].port_id;
  1037. payload.copp_idx[num_copps] = j;
  1038. payload.app_type[num_copps] =
  1039. fe_dai_app_type_cfg
  1040. [fedai_id][sess_type][i]
  1041. .app_type;
  1042. payload.acdb_dev_id[num_copps] =
  1043. fe_dai_app_type_cfg
  1044. [fedai_id][sess_type][i]
  1045. .acdb_dev_id;
  1046. payload.sample_rate[num_copps] =
  1047. fe_dai_app_type_cfg
  1048. [fedai_id][sess_type][i]
  1049. .sample_rate;
  1050. num_copps++;
  1051. }
  1052. }
  1053. }
  1054. }
  1055. if (num_copps) {
  1056. payload.num_copps = num_copps;
  1057. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1058. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1059. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1060. }
  1061. }
  1062. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1063. int stream_type)
  1064. {
  1065. int i, session_type, path_type, port_type;
  1066. u32 mode = 0;
  1067. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1068. /* bad ID assigned in machine driver */
  1069. pr_err("%s: bad MM ID\n", __func__);
  1070. return;
  1071. }
  1072. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1073. session_type = SESSION_TYPE_RX;
  1074. path_type = ADM_PATH_PLAYBACK;
  1075. port_type = MSM_AFE_PORT_TYPE_RX;
  1076. } else {
  1077. session_type = SESSION_TYPE_TX;
  1078. path_type = ADM_PATH_LIVE_REC;
  1079. port_type = MSM_AFE_PORT_TYPE_TX;
  1080. }
  1081. mutex_lock(&routing_lock);
  1082. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1083. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1084. if (!is_be_dai_extproc(i) &&
  1085. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1086. (msm_bedais[i].active) &&
  1087. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1088. mode = afe_get_port_type(msm_bedais[i].port_id);
  1089. adm_connect_afe_port(mode, dspst_id,
  1090. msm_bedais[i].port_id);
  1091. break;
  1092. }
  1093. }
  1094. mutex_unlock(&routing_lock);
  1095. }
  1096. static bool route_check_fe_id_adm_support(int fe_id)
  1097. {
  1098. bool rc = true;
  1099. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1100. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1101. /* fe id is listen while port is set to afe */
  1102. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1103. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1104. __func__, fe_id, lsm_port_index);
  1105. rc = false;
  1106. }
  1107. }
  1108. return rc;
  1109. }
  1110. /*
  1111. * msm_pcm_routing_get_pp_ch_cnt:
  1112. * Read the processed channel count
  1113. *
  1114. * @fe_id: Front end ID
  1115. * @session_type: Inidicates RX or TX session type
  1116. */
  1117. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1118. {
  1119. struct msm_pcm_stream_app_type_cfg cfg_data;
  1120. int be_id = 0, app_type_idx = 0, app_type = 0;
  1121. int ret = -EINVAL;
  1122. memset(&cfg_data, 0, sizeof(cfg_data));
  1123. if (!is_mm_lsm_fe_id(fe_id)) {
  1124. pr_err("%s: bad MM ID\n", __func__);
  1125. return -EINVAL;
  1126. }
  1127. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1128. &be_id, &cfg_data);
  1129. if (ret) {
  1130. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1131. return ret;
  1132. }
  1133. app_type = cfg_data.app_type;
  1134. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1135. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1136. }
  1137. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1138. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1139. int dspst_id, int stream_type,
  1140. uint32_t passthr_mode)
  1141. {
  1142. int i, j, session_type, path_type, port_type, topology;
  1143. int num_copps = 0;
  1144. struct route_payload payload;
  1145. u32 channels, sample_rate;
  1146. u16 bit_width = 16;
  1147. bool is_lsm;
  1148. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1149. __func__, fe_id, perf_mode, dspst_id,
  1150. stream_type, passthr_mode);
  1151. if (!is_mm_lsm_fe_id(fe_id)) {
  1152. /* bad ID assigned in machine driver */
  1153. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1154. return -EINVAL;
  1155. }
  1156. if (!route_check_fe_id_adm_support(fe_id)) {
  1157. /* ignore adm open if not supported for fe_id */
  1158. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1159. return 0;
  1160. }
  1161. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1162. session_type = SESSION_TYPE_RX;
  1163. if (passthr_mode != LEGACY_PCM)
  1164. path_type = ADM_PATH_COMPRESSED_RX;
  1165. else
  1166. path_type = ADM_PATH_PLAYBACK;
  1167. port_type = MSM_AFE_PORT_TYPE_RX;
  1168. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1169. session_type = SESSION_TYPE_TX;
  1170. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1171. path_type = ADM_PATH_COMPRESSED_TX;
  1172. else
  1173. path_type = ADM_PATH_LIVE_REC;
  1174. port_type = MSM_AFE_PORT_TYPE_TX;
  1175. } else {
  1176. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1177. return -EINVAL;
  1178. }
  1179. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1180. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1181. mutex_lock(&routing_lock);
  1182. payload.num_copps = 0; /* only RX needs to use payload */
  1183. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1184. /* re-enable EQ if active */
  1185. msm_qti_pp_send_eq_values(fe_id);
  1186. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1187. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1188. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1189. if (!is_be_dai_extproc(i) &&
  1190. (afe_get_port_type(msm_bedais[i].port_id) ==
  1191. port_type) &&
  1192. (msm_bedais[i].active) &&
  1193. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1194. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1195. /*
  1196. * check if ADM needs to be configured with different
  1197. * channel mapping than backend
  1198. */
  1199. if (!msm_bedais[i].adm_override_ch)
  1200. channels = msm_bedais[i].channel;
  1201. else
  1202. channels = msm_bedais[i].adm_override_ch;
  1203. bit_width = msm_routing_get_bit_width(
  1204. msm_bedais[i].format);
  1205. app_type =
  1206. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1207. if (app_type && is_lsm) {
  1208. app_type_idx =
  1209. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1210. sample_rate =
  1211. fe_dai_app_type_cfg[fe_id][session_type][i]
  1212. .sample_rate;
  1213. bit_width =
  1214. lsm_app_type_cfg[app_type_idx].bit_width;
  1215. } else if (app_type) {
  1216. app_type_idx =
  1217. msm_pcm_routing_get_app_type_idx(
  1218. app_type);
  1219. sample_rate =
  1220. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1221. bit_width =
  1222. app_type_cfg[app_type_idx].bit_width;
  1223. } else {
  1224. sample_rate = msm_bedais[i].sample_rate;
  1225. }
  1226. acdb_dev_id =
  1227. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1228. topology = msm_routing_get_adm_topology(fe_id,
  1229. session_type,
  1230. i);
  1231. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1232. || (passthr_mode ==
  1233. COMPRESSED_PASSTHROUGH_GEN))
  1234. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1235. pr_debug("%s: Before adm open topology %d\n", __func__,
  1236. topology);
  1237. copp_idx =
  1238. adm_open(msm_bedais[i].port_id,
  1239. path_type, sample_rate, channels,
  1240. topology, perf_mode, bit_width,
  1241. app_type, acdb_dev_id);
  1242. if ((copp_idx < 0) ||
  1243. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1244. pr_err("%s:adm open failed coppid:%d\n",
  1245. __func__, copp_idx);
  1246. mutex_unlock(&routing_lock);
  1247. return -EINVAL;
  1248. }
  1249. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1250. __func__, fe_id, session_type, i);
  1251. set_bit(copp_idx,
  1252. &session_copp_map[fe_id][session_type][i]);
  1253. if (msm_is_resample_needed(
  1254. sample_rate,
  1255. msm_bedais[i].sample_rate))
  1256. adm_copp_mfc_cfg(
  1257. msm_bedais[i].port_id, copp_idx,
  1258. msm_bedais[i].sample_rate);
  1259. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1260. unsigned long copp =
  1261. session_copp_map[fe_id][session_type][i];
  1262. if (test_bit(j, &copp)) {
  1263. payload.port_id[num_copps] =
  1264. msm_bedais[i].port_id;
  1265. payload.copp_idx[num_copps] = j;
  1266. payload.app_type[num_copps] =
  1267. fe_dai_app_type_cfg
  1268. [fe_id][session_type][i]
  1269. .app_type;
  1270. payload.acdb_dev_id[num_copps] =
  1271. fe_dai_app_type_cfg
  1272. [fe_id][session_type][i]
  1273. .acdb_dev_id;
  1274. payload.sample_rate[num_copps] =
  1275. fe_dai_app_type_cfg
  1276. [fe_id][session_type][i]
  1277. .sample_rate;
  1278. num_copps++;
  1279. }
  1280. }
  1281. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1282. && passthr_mode !=
  1283. COMPRESSED_PASSTHROUGH_GEN) {
  1284. msm_routing_send_device_pp_params(
  1285. msm_bedais[i].port_id,
  1286. copp_idx, fe_id);
  1287. }
  1288. }
  1289. }
  1290. if (num_copps) {
  1291. payload.num_copps = num_copps;
  1292. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1293. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1294. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1295. }
  1296. mutex_unlock(&routing_lock);
  1297. return 0;
  1298. }
  1299. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1300. {
  1301. u32 session_id;
  1302. switch (val) {
  1303. case MSM_FRONTEND_DAI_QCHAT:
  1304. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1305. break;
  1306. case MSM_FRONTEND_DAI_VOIP:
  1307. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1308. break;
  1309. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1310. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1311. break;
  1312. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1313. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1314. break;
  1315. default:
  1316. session_id = 0;
  1317. }
  1318. pr_debug("%s session_id 0x%x", __func__, session_id);
  1319. return session_id;
  1320. }
  1321. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1322. int dspst_id, int stream_type)
  1323. {
  1324. int copp_idx = 0;
  1325. int sess_type = 0;
  1326. int i = 0, j = 0, be_id;
  1327. int ret = 0;
  1328. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1329. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1330. return 0;
  1331. }
  1332. if (!(channel_mixer[fe_id].enable)) {
  1333. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1334. __func__, fe_id);
  1335. return 0;
  1336. }
  1337. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1338. sess_type = SESSION_TYPE_RX;
  1339. else
  1340. sess_type = SESSION_TYPE_TX;
  1341. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1342. ++i) {
  1343. be_id = channel_input[fe_id][i] - 1;
  1344. channel_mixer[fe_id].input_channels[i] =
  1345. msm_bedais[be_id].channel;
  1346. if ((msm_bedais[be_id].active) &&
  1347. test_bit(fe_id,
  1348. &msm_bedais[be_id].fe_sessions[0])) {
  1349. unsigned long copp =
  1350. session_copp_map[fe_id][sess_type][be_id];
  1351. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1352. if (test_bit(j, &copp)) {
  1353. copp_idx = j;
  1354. break;
  1355. }
  1356. }
  1357. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1358. __func__,
  1359. fe_id, be_id, msm_bedais[be_id].channel,
  1360. copp_idx);
  1361. ret = adm_programable_channel_mixer(
  1362. msm_bedais[be_id].port_id,
  1363. copp_idx, dspst_id, sess_type,
  1364. channel_mixer + fe_id, i);
  1365. }
  1366. }
  1367. return ret;
  1368. }
  1369. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1370. int dspst_id, int stream_type)
  1371. {
  1372. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1373. struct route_payload payload;
  1374. u32 channels, sample_rate;
  1375. uint16_t bits_per_sample = 16;
  1376. uint32_t passthr_mode = LEGACY_PCM;
  1377. int ret = 0;
  1378. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1379. /* bad ID assigned in machine driver */
  1380. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1381. return -EINVAL;
  1382. }
  1383. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1384. session_type = SESSION_TYPE_RX;
  1385. path_type = ADM_PATH_PLAYBACK;
  1386. port_type = MSM_AFE_PORT_TYPE_RX;
  1387. } else {
  1388. session_type = SESSION_TYPE_TX;
  1389. path_type = ADM_PATH_LIVE_REC;
  1390. port_type = MSM_AFE_PORT_TYPE_TX;
  1391. }
  1392. mutex_lock(&routing_lock);
  1393. payload.num_copps = 0; /* only RX needs to use payload */
  1394. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1395. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1396. /* re-enable EQ if active */
  1397. msm_qti_pp_send_eq_values(fedai_id);
  1398. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1399. if (!is_be_dai_extproc(i) &&
  1400. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1401. (msm_bedais[i].active) &&
  1402. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1403. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1404. /*
  1405. * check if ADM needs to be configured with different
  1406. * channel mapping than backend
  1407. */
  1408. if (!msm_bedais[i].adm_override_ch)
  1409. channels = msm_bedais[i].channel;
  1410. else
  1411. channels = msm_bedais[i].adm_override_ch;
  1412. msm_bedais[i].passthr_mode[fedai_id] =
  1413. LEGACY_PCM;
  1414. bits_per_sample = msm_routing_get_bit_width(
  1415. msm_bedais[i].format);
  1416. app_type =
  1417. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1418. if (app_type) {
  1419. app_type_idx =
  1420. msm_pcm_routing_get_app_type_idx(app_type);
  1421. sample_rate =
  1422. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1423. .sample_rate;
  1424. bits_per_sample =
  1425. app_type_cfg[app_type_idx].bit_width;
  1426. } else
  1427. sample_rate = msm_bedais[i].sample_rate;
  1428. acdb_dev_id =
  1429. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1430. .acdb_dev_id;
  1431. topology = msm_routing_get_adm_topology(fedai_id,
  1432. session_type,
  1433. i);
  1434. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1435. sample_rate, channels, topology,
  1436. perf_mode, bits_per_sample,
  1437. app_type, acdb_dev_id);
  1438. if ((copp_idx < 0) ||
  1439. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1440. pr_err("%s: adm open failed copp_idx:%d\n",
  1441. __func__, copp_idx);
  1442. mutex_unlock(&routing_lock);
  1443. return -EINVAL;
  1444. }
  1445. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1446. __func__, fedai_id, session_type, i);
  1447. set_bit(copp_idx,
  1448. &session_copp_map[fedai_id][session_type][i]);
  1449. if (msm_is_resample_needed(
  1450. sample_rate,
  1451. msm_bedais[i].sample_rate))
  1452. adm_copp_mfc_cfg(
  1453. msm_bedais[i].port_id, copp_idx,
  1454. msm_bedais[i].sample_rate);
  1455. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1456. unsigned long copp =
  1457. session_copp_map[fedai_id][session_type][i];
  1458. if (test_bit(j, &copp)) {
  1459. payload.port_id[num_copps] =
  1460. msm_bedais[i].port_id;
  1461. payload.copp_idx[num_copps] = j;
  1462. payload.app_type[num_copps] =
  1463. fe_dai_app_type_cfg
  1464. [fedai_id][session_type]
  1465. [i].app_type;
  1466. payload.acdb_dev_id[num_copps] =
  1467. fe_dai_app_type_cfg
  1468. [fedai_id][session_type]
  1469. [i].acdb_dev_id;
  1470. payload.sample_rate[num_copps] =
  1471. fe_dai_app_type_cfg
  1472. [fedai_id][session_type]
  1473. [i].sample_rate;
  1474. num_copps++;
  1475. }
  1476. }
  1477. if ((perf_mode == LEGACY_PCM_MODE) &&
  1478. (msm_bedais[i].passthr_mode[fedai_id] ==
  1479. LEGACY_PCM))
  1480. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1481. copp_idx, topology,
  1482. channels);
  1483. }
  1484. }
  1485. if (num_copps) {
  1486. payload.num_copps = num_copps;
  1487. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1488. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1489. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1490. }
  1491. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1492. dspst_id, stream_type);
  1493. mutex_unlock(&routing_lock);
  1494. return ret;
  1495. }
  1496. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. struct msm_pcm_routing_evt event_info)
  1499. {
  1500. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1501. stream_type)) {
  1502. pr_err("%s: failed to reg phy stream\n", __func__);
  1503. return -EINVAL;
  1504. }
  1505. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1506. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1507. else
  1508. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1509. return 0;
  1510. }
  1511. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1512. {
  1513. int i, port_type, session_type, path_type, topology;
  1514. struct msm_pcm_routing_fdai_data *fdai;
  1515. if (!is_mm_lsm_fe_id(fedai_id)) {
  1516. /* bad ID assigned in machine driver */
  1517. pr_err("%s: bad MM ID\n", __func__);
  1518. return;
  1519. }
  1520. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1521. port_type = MSM_AFE_PORT_TYPE_RX;
  1522. session_type = SESSION_TYPE_RX;
  1523. path_type = ADM_PATH_PLAYBACK;
  1524. } else {
  1525. port_type = MSM_AFE_PORT_TYPE_TX;
  1526. session_type = SESSION_TYPE_TX;
  1527. path_type = ADM_PATH_LIVE_REC;
  1528. }
  1529. mutex_lock(&routing_lock);
  1530. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1531. if (!is_be_dai_extproc(i) &&
  1532. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1533. (msm_bedais[i].active) &&
  1534. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1535. int idx;
  1536. unsigned long copp =
  1537. session_copp_map[fedai_id][session_type][i];
  1538. fdai = &fe_dai_map[fedai_id][session_type];
  1539. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1540. if (test_bit(idx, &copp))
  1541. break;
  1542. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1543. pr_debug("%s: copp idx is invalid, exiting\n",
  1544. __func__);
  1545. continue;
  1546. }
  1547. topology = adm_get_topology_for_port_copp_idx(
  1548. msm_bedais[i].port_id, idx);
  1549. msm_routing_unload_topology(topology);
  1550. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1551. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1552. __func__, copp, fedai_id, session_type, i);
  1553. clear_bit(idx,
  1554. &session_copp_map[fedai_id][session_type][i]);
  1555. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1556. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1557. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1558. (msm_bedais[i].passthr_mode[fedai_id] ==
  1559. LEGACY_PCM))
  1560. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1561. topology);
  1562. }
  1563. }
  1564. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1565. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1566. mutex_unlock(&routing_lock);
  1567. }
  1568. /* Check if FE/BE route is set */
  1569. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1570. {
  1571. bool rc = false;
  1572. if (!is_mm_lsm_fe_id(fe_id)) {
  1573. /* recheck FE ID in the mixer control defined in this file */
  1574. pr_err("%s: bad MM ID\n", __func__);
  1575. return rc;
  1576. }
  1577. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1578. rc = true;
  1579. return rc;
  1580. }
  1581. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1582. {
  1583. int session_type, path_type, topology;
  1584. u32 channels, sample_rate;
  1585. uint16_t bits_per_sample = 16;
  1586. struct msm_pcm_routing_fdai_data *fdai;
  1587. uint32_t passthr_mode;
  1588. bool is_lsm;
  1589. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1590. if (!is_mm_lsm_fe_id(val)) {
  1591. /* recheck FE ID in the mixer control defined in this file */
  1592. pr_err("%s: bad MM ID\n", __func__);
  1593. return;
  1594. }
  1595. if (!route_check_fe_id_adm_support(val)) {
  1596. /* ignore adm open if not supported for fe_id */
  1597. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1598. return;
  1599. }
  1600. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1601. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1602. MSM_AFE_PORT_TYPE_RX) {
  1603. session_type = SESSION_TYPE_RX;
  1604. if (passthr_mode != LEGACY_PCM)
  1605. path_type = ADM_PATH_COMPRESSED_RX;
  1606. else
  1607. path_type = ADM_PATH_PLAYBACK;
  1608. } else {
  1609. session_type = SESSION_TYPE_TX;
  1610. if (passthr_mode != LEGACY_PCM)
  1611. path_type = ADM_PATH_COMPRESSED_TX;
  1612. else
  1613. path_type = ADM_PATH_LIVE_REC;
  1614. }
  1615. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1616. (val <= MSM_FRONTEND_DAI_LSM8);
  1617. mutex_lock(&routing_lock);
  1618. if (set) {
  1619. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1620. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1621. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1622. voc_start_playback(set, msm_bedais[reg].port_id);
  1623. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1624. fdai = &fe_dai_map[val][session_type];
  1625. if (msm_bedais[reg].active && fdai->strm_id !=
  1626. INVALID_SESSION) {
  1627. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1628. /*
  1629. * check if ADM needs to be configured with different
  1630. * channel mapping than backend
  1631. */
  1632. if (!msm_bedais[reg].adm_override_ch)
  1633. channels = msm_bedais[reg].channel;
  1634. else
  1635. channels = msm_bedais[reg].adm_override_ch;
  1636. if (session_type == SESSION_TYPE_TX &&
  1637. fdai->be_srate &&
  1638. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1639. pr_debug("%s: flush strm %d diff BE rates\n",
  1640. __func__, fdai->strm_id);
  1641. if (fdai->event_info.event_func)
  1642. fdai->event_info.event_func(
  1643. MSM_PCM_RT_EVT_BUF_RECFG,
  1644. fdai->event_info.priv_data);
  1645. fdai->be_srate = 0; /* might not need it */
  1646. }
  1647. bits_per_sample = msm_routing_get_bit_width(
  1648. msm_bedais[reg].format);
  1649. app_type =
  1650. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1651. if (app_type && is_lsm) {
  1652. app_type_idx =
  1653. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1654. sample_rate =
  1655. fe_dai_app_type_cfg[val][session_type][reg]
  1656. .sample_rate;
  1657. bits_per_sample =
  1658. lsm_app_type_cfg[app_type_idx].bit_width;
  1659. } else if (app_type) {
  1660. app_type_idx =
  1661. msm_pcm_routing_get_app_type_idx(app_type);
  1662. sample_rate =
  1663. fe_dai_app_type_cfg[val][session_type][reg]
  1664. .sample_rate;
  1665. bits_per_sample =
  1666. app_type_cfg[app_type_idx].bit_width;
  1667. } else
  1668. sample_rate = msm_bedais[reg].sample_rate;
  1669. topology = msm_routing_get_adm_topology(val,
  1670. session_type,
  1671. reg);
  1672. acdb_dev_id =
  1673. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1674. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1675. sample_rate, channels, topology,
  1676. fdai->perf_mode, bits_per_sample,
  1677. app_type, acdb_dev_id);
  1678. if ((copp_idx < 0) ||
  1679. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1680. pr_err("%s: adm open failed\n", __func__);
  1681. mutex_unlock(&routing_lock);
  1682. return;
  1683. }
  1684. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1685. __func__, val, session_type, reg);
  1686. set_bit(copp_idx,
  1687. &session_copp_map[val][session_type][reg]);
  1688. if (msm_is_resample_needed(
  1689. sample_rate,
  1690. msm_bedais[reg].sample_rate))
  1691. adm_copp_mfc_cfg(
  1692. msm_bedais[reg].port_id, copp_idx,
  1693. msm_bedais[reg].sample_rate);
  1694. if (session_type == SESSION_TYPE_RX &&
  1695. fdai->event_info.event_func)
  1696. fdai->event_info.event_func(
  1697. MSM_PCM_RT_EVT_DEVSWITCH,
  1698. fdai->event_info.priv_data);
  1699. msm_pcm_routing_build_matrix(val, session_type,
  1700. path_type,
  1701. fdai->perf_mode,
  1702. passthr_mode);
  1703. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1704. (passthr_mode == LEGACY_PCM))
  1705. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1706. copp_idx, topology,
  1707. channels);
  1708. }
  1709. } else {
  1710. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1711. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1712. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1713. voc_start_playback(set, msm_bedais[reg].port_id);
  1714. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1715. fdai = &fe_dai_map[val][session_type];
  1716. if (msm_bedais[reg].active && fdai->strm_id !=
  1717. INVALID_SESSION) {
  1718. int idx;
  1719. int port_id;
  1720. unsigned long copp =
  1721. session_copp_map[val][session_type][reg];
  1722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1723. if (test_bit(idx, &copp))
  1724. break;
  1725. port_id = msm_bedais[reg].port_id;
  1726. topology = adm_get_topology_for_port_copp_idx(port_id,
  1727. idx);
  1728. msm_routing_unload_topology(topology);
  1729. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1730. idx);
  1731. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1732. __func__, copp, val, session_type, reg,
  1733. topology);
  1734. clear_bit(idx,
  1735. &session_copp_map[val][session_type][reg]);
  1736. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1737. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1738. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1739. (passthr_mode == LEGACY_PCM))
  1740. msm_pcm_routing_deinit_pp(
  1741. msm_bedais[reg].port_id,
  1742. topology);
  1743. msm_pcm_routing_build_matrix(val, session_type,
  1744. path_type,
  1745. fdai->perf_mode,
  1746. passthr_mode);
  1747. }
  1748. }
  1749. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1750. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1751. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1752. mutex_unlock(&routing_lock);
  1753. }
  1754. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1755. struct snd_ctl_elem_value *ucontrol)
  1756. {
  1757. struct soc_mixer_control *mc =
  1758. (struct soc_mixer_control *)kcontrol->private_value;
  1759. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1760. ucontrol->value.integer.value[0] = 1;
  1761. else
  1762. ucontrol->value.integer.value[0] = 0;
  1763. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1764. ucontrol->value.integer.value[0]);
  1765. return 0;
  1766. }
  1767. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1768. struct snd_ctl_elem_value *ucontrol)
  1769. {
  1770. struct snd_soc_dapm_widget *widget =
  1771. snd_soc_dapm_kcontrol_widget(kcontrol);
  1772. struct soc_mixer_control *mc =
  1773. (struct soc_mixer_control *)kcontrol->private_value;
  1774. struct snd_soc_dapm_update *update = NULL;
  1775. if (ucontrol->value.integer.value[0] &&
  1776. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1777. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1778. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1779. update);
  1780. } else if (!ucontrol->value.integer.value[0] &&
  1781. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1782. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1783. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1784. update);
  1785. }
  1786. return 1;
  1787. }
  1788. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1789. struct snd_ctl_elem_value *ucontrol)
  1790. {
  1791. struct soc_mixer_control *mc =
  1792. (struct soc_mixer_control *)kcontrol->private_value;
  1793. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1794. ucontrol->value.integer.value[0] = 1;
  1795. else
  1796. ucontrol->value.integer.value[0] = 0;
  1797. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1798. ucontrol->value.integer.value[0]);
  1799. return 0;
  1800. }
  1801. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1802. struct snd_ctl_elem_value *ucontrol)
  1803. {
  1804. struct snd_soc_dapm_widget *widget =
  1805. snd_soc_dapm_kcontrol_widget(kcontrol);
  1806. struct soc_mixer_control *mc =
  1807. (struct soc_mixer_control *)kcontrol->private_value;
  1808. struct snd_soc_dapm_update *update = NULL;
  1809. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1810. ucontrol->value.integer.value[0]);
  1811. if (ucontrol->value.integer.value[0]) {
  1812. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1813. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1814. snd_soc_dapm_mixer_update_power(widget->dapm,
  1815. kcontrol, 1, update);
  1816. } else if (!ucontrol->value.integer.value[0]) {
  1817. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1818. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm,
  1820. kcontrol, 0, update);
  1821. }
  1822. return 1;
  1823. }
  1824. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1825. {
  1826. u32 session_id = 0;
  1827. u16 path_type;
  1828. struct media_format_info voc_be_media_format;
  1829. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1830. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1831. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1832. __func__, val, session_id);
  1833. mutex_lock(&routing_lock);
  1834. if (set)
  1835. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1836. else
  1837. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1838. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1839. afe_get_port_type(msm_bedais[reg].port_id) ==
  1840. MSM_AFE_PORT_TYPE_RX) {
  1841. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1842. __func__, set, msm_bedais[reg].port_id);
  1843. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1844. }
  1845. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1846. MSM_AFE_PORT_TYPE_RX)
  1847. path_type = RX_PATH;
  1848. else
  1849. path_type = TX_PATH;
  1850. if (set) {
  1851. if (msm_bedais[reg].active) {
  1852. voc_set_route_flag(session_id, path_type, 1);
  1853. memset(&voc_be_media_format, 0,
  1854. sizeof(struct media_format_info));
  1855. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1856. voc_be_media_format.num_channels =
  1857. msm_bedais[reg].channel;
  1858. voc_be_media_format.sample_rate =
  1859. msm_bedais[reg].sample_rate;
  1860. voc_be_media_format.bits_per_sample =
  1861. msm_bedais[reg].format;
  1862. /* Defaulting this to 1 for voice call usecases */
  1863. voc_be_media_format.channel_mapping[0] = 1;
  1864. voc_set_device_config(session_id, path_type,
  1865. &voc_be_media_format);
  1866. if (voc_get_route_flag(session_id, TX_PATH) &&
  1867. voc_get_route_flag(session_id, RX_PATH))
  1868. voc_enable_device(session_id);
  1869. } else {
  1870. pr_debug("%s BE is not active\n", __func__);
  1871. }
  1872. } else {
  1873. voc_set_route_flag(session_id, path_type, 0);
  1874. voc_disable_device(session_id);
  1875. }
  1876. mutex_unlock(&routing_lock);
  1877. }
  1878. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. struct soc_mixer_control *mc =
  1882. (struct soc_mixer_control *)kcontrol->private_value;
  1883. mutex_lock(&routing_lock);
  1884. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1885. ucontrol->value.integer.value[0] = 1;
  1886. else
  1887. ucontrol->value.integer.value[0] = 0;
  1888. mutex_unlock(&routing_lock);
  1889. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1890. ucontrol->value.integer.value[0]);
  1891. return 0;
  1892. }
  1893. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1894. struct snd_ctl_elem_value *ucontrol)
  1895. {
  1896. struct snd_soc_dapm_widget *widget =
  1897. snd_soc_dapm_kcontrol_widget(kcontrol);
  1898. struct soc_mixer_control *mc =
  1899. (struct soc_mixer_control *)kcontrol->private_value;
  1900. struct snd_soc_dapm_update *update = NULL;
  1901. if (ucontrol->value.integer.value[0]) {
  1902. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1903. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1904. update);
  1905. } else {
  1906. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1907. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1908. update);
  1909. }
  1910. return 1;
  1911. }
  1912. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1913. struct snd_ctl_elem_value *ucontrol)
  1914. {
  1915. struct soc_mixer_control *mc =
  1916. (struct soc_mixer_control *)kcontrol->private_value;
  1917. mutex_lock(&routing_lock);
  1918. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1919. ucontrol->value.integer.value[0] = 1;
  1920. else
  1921. ucontrol->value.integer.value[0] = 0;
  1922. mutex_unlock(&routing_lock);
  1923. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1924. ucontrol->value.integer.value[0]);
  1925. return 0;
  1926. }
  1927. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1928. struct snd_ctl_elem_value *ucontrol)
  1929. {
  1930. struct snd_soc_dapm_widget *widget =
  1931. snd_soc_dapm_kcontrol_widget(kcontrol);
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. struct snd_soc_dapm_update *update = NULL;
  1935. if (ucontrol->value.integer.value[0]) {
  1936. mutex_lock(&routing_lock);
  1937. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1938. mutex_unlock(&routing_lock);
  1939. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1940. update);
  1941. } else {
  1942. mutex_lock(&routing_lock);
  1943. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1944. mutex_unlock(&routing_lock);
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1946. update);
  1947. }
  1948. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1949. ucontrol->value.integer.value[0]);
  1950. return 1;
  1951. }
  1952. /*
  1953. * Return the mapping between port ID and backend ID to enable the AFE callback
  1954. * to determine the acdb_dev_id from the port id
  1955. */
  1956. int msm_pcm_get_be_id_from_port_id(int port_id)
  1957. {
  1958. int i;
  1959. int be_id = -EINVAL;
  1960. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1961. if (msm_bedais[i].port_id == port_id) {
  1962. be_id = i;
  1963. break;
  1964. }
  1965. }
  1966. return be_id;
  1967. }
  1968. /*
  1969. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1970. * correct AFE calibration information by comparing the header information.
  1971. */
  1972. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1973. {
  1974. int acdb_id = -EINVAL;
  1975. int i = 0;
  1976. int session;
  1977. int port_type = afe_get_port_type(port_id);
  1978. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1979. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1980. __func__, port_id, be_id, port_type);
  1981. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1982. session = SESSION_TYPE_TX;
  1983. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1984. session = SESSION_TYPE_RX;
  1985. } else {
  1986. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1987. acdb_id = -EINVAL;
  1988. goto exit;
  1989. }
  1990. if (be_id < 0) {
  1991. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1992. goto exit;
  1993. }
  1994. mutex_lock(&routing_lock);
  1995. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1996. MSM_FRONTEND_DAI_MAX);
  1997. if (i < MSM_FRONTEND_DAI_MAX)
  1998. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1999. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2000. __func__, i, session, be_id, acdb_id);
  2001. mutex_unlock(&routing_lock);
  2002. exit:
  2003. return acdb_id;
  2004. }
  2005. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2006. struct snd_ctl_elem_value *ucontrol)
  2007. {
  2008. ucontrol->value.integer.value[0] = fm_switch_enable;
  2009. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2010. ucontrol->value.integer.value[0]);
  2011. return 0;
  2012. }
  2013. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2014. struct snd_ctl_elem_value *ucontrol)
  2015. {
  2016. struct snd_soc_dapm_widget *widget =
  2017. snd_soc_dapm_kcontrol_widget(kcontrol);
  2018. struct snd_soc_dapm_update *update = NULL;
  2019. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2020. ucontrol->value.integer.value[0]);
  2021. if (ucontrol->value.integer.value[0])
  2022. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2023. update);
  2024. else
  2025. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2026. update);
  2027. fm_switch_enable = ucontrol->value.integer.value[0];
  2028. return 1;
  2029. }
  2030. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2031. struct snd_ctl_elem_value *ucontrol)
  2032. {
  2033. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2034. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2035. ucontrol->value.integer.value[0]);
  2036. return 0;
  2037. }
  2038. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2039. struct snd_ctl_elem_value *ucontrol)
  2040. {
  2041. struct snd_soc_dapm_widget *widget =
  2042. snd_soc_dapm_kcontrol_widget(kcontrol);
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2045. ucontrol->value.integer.value[0]);
  2046. if (ucontrol->value.integer.value[0])
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2048. 1, update);
  2049. else
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2051. 0, update);
  2052. hfp_switch_enable = ucontrol->value.integer.value[0];
  2053. return 1;
  2054. }
  2055. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2059. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2060. ucontrol->value.integer.value[0]);
  2061. return 0;
  2062. }
  2063. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2072. if (a2dp_switch_enable)
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2074. 1, update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2077. 0, update);
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2081. struct snd_ctl_elem_value *ucontrol)
  2082. {
  2083. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2084. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. return 0;
  2087. }
  2088. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. struct snd_soc_dapm_widget *widget =
  2092. snd_soc_dapm_kcontrol_widget(kcontrol);
  2093. struct snd_soc_dapm_update *update = NULL;
  2094. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2095. ucontrol->value.integer.value[0]);
  2096. if (ucontrol->value.integer.value[0])
  2097. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2098. update);
  2099. else
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2101. update);
  2102. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2103. return 1;
  2104. }
  2105. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2109. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct snd_soc_dapm_update *update = NULL;
  2119. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2120. ucontrol->value.integer.value[0]);
  2121. if (ucontrol->value.integer.value[0])
  2122. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2123. update);
  2124. else
  2125. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2126. update);
  2127. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2128. return 1;
  2129. }
  2130. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. ucontrol->value.integer.value[0] = usb_switch_enable;
  2134. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2135. ucontrol->value.integer.value[0]);
  2136. return 0;
  2137. }
  2138. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. struct snd_soc_dapm_widget *widget =
  2142. snd_soc_dapm_kcontrol_widget(kcontrol);
  2143. struct snd_soc_dapm_update *update = NULL;
  2144. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. if (ucontrol->value.integer.value[0])
  2147. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2148. 1, update);
  2149. else
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2151. 0, update);
  2152. usb_switch_enable = ucontrol->value.integer.value[0];
  2153. return 1;
  2154. }
  2155. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2156. struct snd_ctl_elem_value *ucontrol)
  2157. {
  2158. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2159. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2160. ucontrol->value.integer.value[0]);
  2161. return 0;
  2162. }
  2163. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2164. struct snd_ctl_elem_value *ucontrol)
  2165. {
  2166. struct snd_soc_dapm_widget *widget =
  2167. snd_soc_dapm_kcontrol_widget(kcontrol);
  2168. struct snd_soc_dapm_update *update = NULL;
  2169. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2170. ucontrol->value.integer.value[0]);
  2171. if (ucontrol->value.integer.value[0])
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. else
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2176. update);
  2177. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2178. return 1;
  2179. }
  2180. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2181. struct snd_ctl_elem_value *ucontrol)
  2182. {
  2183. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2184. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2185. ucontrol->value.integer.value[0]);
  2186. return 0;
  2187. }
  2188. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2189. struct snd_ctl_elem_value *ucontrol)
  2190. {
  2191. struct snd_soc_dapm_widget *widget =
  2192. snd_soc_dapm_kcontrol_widget(kcontrol);
  2193. struct snd_soc_dapm_update *update = NULL;
  2194. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2195. ucontrol->value.integer.value[0]);
  2196. if (ucontrol->value.integer.value[0])
  2197. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2198. update);
  2199. else
  2200. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2201. update);
  2202. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2203. return 1;
  2204. }
  2205. static int msm_routing_get_tert_mi2s_switch_mixer(
  2206. struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2210. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_tert_mi2s_switch_mixer(
  2215. struct snd_kcontrol *kcontrol,
  2216. struct snd_ctl_elem_value *ucontrol)
  2217. {
  2218. struct snd_soc_dapm_widget *widget =
  2219. snd_soc_dapm_kcontrol_widget(kcontrol);
  2220. struct snd_soc_dapm_update *update = NULL;
  2221. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2222. ucontrol->value.integer.value[0]);
  2223. if (ucontrol->value.integer.value[0])
  2224. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2225. update);
  2226. else
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2228. update);
  2229. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2230. return 1;
  2231. }
  2232. static int msm_routing_get_quat_mi2s_switch_mixer(
  2233. struct snd_kcontrol *kcontrol,
  2234. struct snd_ctl_elem_value *ucontrol)
  2235. {
  2236. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2237. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2238. ucontrol->value.integer.value[0]);
  2239. return 0;
  2240. }
  2241. static int msm_routing_put_quat_mi2s_switch_mixer(
  2242. struct snd_kcontrol *kcontrol,
  2243. struct snd_ctl_elem_value *ucontrol)
  2244. {
  2245. struct snd_soc_dapm_widget *widget =
  2246. snd_soc_dapm_kcontrol_widget(kcontrol);
  2247. struct snd_soc_dapm_update *update = NULL;
  2248. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2249. ucontrol->value.integer.value[0]);
  2250. if (ucontrol->value.integer.value[0])
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. else
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2255. update);
  2256. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2257. return 1;
  2258. }
  2259. static int msm_routing_get_quin_mi2s_switch_mixer(
  2260. struct snd_kcontrol *kcontrol,
  2261. struct snd_ctl_elem_value *ucontrol)
  2262. {
  2263. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2264. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2265. ucontrol->value.integer.value[0]);
  2266. return 0;
  2267. }
  2268. static int msm_routing_put_quin_mi2s_switch_mixer(
  2269. struct snd_kcontrol *kcontrol,
  2270. struct snd_ctl_elem_value *ucontrol)
  2271. {
  2272. struct snd_soc_dapm_widget *widget =
  2273. snd_soc_dapm_kcontrol_widget(kcontrol);
  2274. struct snd_soc_dapm_update *update = NULL;
  2275. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2276. ucontrol->value.integer.value[0]);
  2277. if (ucontrol->value.integer.value[0])
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2279. update);
  2280. else
  2281. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2282. update);
  2283. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2284. return 1;
  2285. }
  2286. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2290. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2291. ucontrol->value.integer.value[0]);
  2292. return 0;
  2293. }
  2294. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2295. struct snd_ctl_elem_value *ucontrol)
  2296. {
  2297. struct snd_soc_dapm_widget *widget =
  2298. snd_soc_dapm_kcontrol_widget(kcontrol);
  2299. struct snd_soc_dapm_update *update = NULL;
  2300. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2301. ucontrol->value.integer.value[0]);
  2302. if (ucontrol->value.integer.value[0])
  2303. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2304. update);
  2305. else
  2306. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2307. update);
  2308. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2309. return 1;
  2310. }
  2311. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = lsm_port_index;
  2315. return 0;
  2316. }
  2317. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2321. int mux = ucontrol->value.enumerated.item[0];
  2322. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2323. if (mux >= e->items) {
  2324. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2325. return -EINVAL;
  2326. }
  2327. pr_debug("%s: LSM enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. switch (ucontrol->value.integer.value[0]) {
  2330. case 1:
  2331. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2332. break;
  2333. case 2:
  2334. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2335. break;
  2336. case 3:
  2337. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2338. break;
  2339. case 4:
  2340. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2341. break;
  2342. case 5:
  2343. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2344. break;
  2345. case 6:
  2346. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2347. break;
  2348. case 7:
  2349. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2350. break;
  2351. case 8:
  2352. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2353. break;
  2354. case 9:
  2355. lsm_port = ADM_LSM_PORT_ID;
  2356. break;
  2357. case 10:
  2358. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2359. break;
  2360. case 11:
  2361. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2362. break;
  2363. case 12:
  2364. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2365. break;
  2366. default:
  2367. pr_err("Default lsm port");
  2368. break;
  2369. }
  2370. set_lsm_port(lsm_port);
  2371. lsm_port_index = ucontrol->value.integer.value[0];
  2372. return 0;
  2373. }
  2374. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. int i;
  2378. u16 port_id;
  2379. enum afe_mad_type mad_type;
  2380. pr_debug("%s: enter\n", __func__);
  2381. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2382. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2383. strlen(lsm_port_text[i])))
  2384. break;
  2385. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2386. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2387. return -EINVAL;
  2388. }
  2389. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2390. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2391. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2392. strlen(lsm_port_text[7])))
  2393. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2394. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2395. strlen(lsm_port_text[8])))
  2396. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2397. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2398. strlen(lsm_port_text[10])))
  2399. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2400. mad_type = afe_port_get_mad_type(port_id);
  2401. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2402. mad_type);
  2403. switch (mad_type) {
  2404. case MAD_HW_NONE:
  2405. ucontrol->value.integer.value[0] = MADNONE;
  2406. break;
  2407. case MAD_HW_AUDIO:
  2408. ucontrol->value.integer.value[0] = MADAUDIO;
  2409. break;
  2410. case MAD_HW_BEACON:
  2411. ucontrol->value.integer.value[0] = MADBEACON;
  2412. break;
  2413. case MAD_HW_ULTRASOUND:
  2414. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2415. break;
  2416. case MAD_SW_AUDIO:
  2417. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2418. break;
  2419. default:
  2420. WARN(1, "Unknown\n");
  2421. return -EINVAL;
  2422. }
  2423. return 0;
  2424. }
  2425. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. int i;
  2429. u16 port_id;
  2430. enum afe_mad_type mad_type;
  2431. pr_debug("%s: enter\n", __func__);
  2432. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2434. strlen(lsm_port_text[i])))
  2435. break;
  2436. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2437. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2438. return -EINVAL;
  2439. }
  2440. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2441. switch (ucontrol->value.integer.value[0]) {
  2442. case MADNONE:
  2443. mad_type = MAD_HW_NONE;
  2444. break;
  2445. case MADAUDIO:
  2446. mad_type = MAD_HW_AUDIO;
  2447. break;
  2448. case MADBEACON:
  2449. mad_type = MAD_HW_BEACON;
  2450. break;
  2451. case MADULTRASOUND:
  2452. mad_type = MAD_HW_ULTRASOUND;
  2453. break;
  2454. case MADSWAUDIO:
  2455. mad_type = MAD_SW_AUDIO;
  2456. break;
  2457. default:
  2458. WARN(1, "Unknown\n");
  2459. return -EINVAL;
  2460. }
  2461. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2462. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2463. strlen(lsm_port_text[7])))
  2464. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2465. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2466. strlen(lsm_port_text[8])))
  2467. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2468. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2469. strlen(lsm_port_text[10])))
  2470. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2471. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2472. mad_type);
  2473. return afe_port_set_mad_type(port_id, mad_type);
  2474. }
  2475. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2476. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2477. adm_override_chs_text);
  2478. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2479. {
  2480. int backend_id;
  2481. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2482. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2483. } else {
  2484. pr_err("%s: unsupported backend id: %s",
  2485. __func__, kcontrol->id.name);
  2486. return -EINVAL;
  2487. }
  2488. return backend_id;
  2489. }
  2490. static int msm_routing_adm_channel_config_get(
  2491. struct snd_kcontrol *kcontrol,
  2492. struct snd_ctl_elem_value *ucontrol)
  2493. {
  2494. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2495. if (backend_id >= 0) {
  2496. mutex_lock(&routing_lock);
  2497. ucontrol->value.integer.value[0] =
  2498. msm_bedais[backend_id].adm_override_ch;
  2499. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2500. ucontrol->value.integer.value[0], backend_id);
  2501. mutex_unlock(&routing_lock);
  2502. }
  2503. return 0;
  2504. }
  2505. static int msm_routing_adm_channel_config_put(
  2506. struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2510. if (backend_id >= 0) {
  2511. mutex_lock(&routing_lock);
  2512. msm_bedais[backend_id].adm_override_ch =
  2513. ucontrol->value.integer.value[0];
  2514. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2515. __func__, backend_id,
  2516. msm_bedais[backend_id].adm_override_ch);
  2517. mutex_unlock(&routing_lock);
  2518. }
  2519. return 0;
  2520. }
  2521. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2522. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2523. msm_routing_adm_channel_config_get,
  2524. msm_routing_adm_channel_config_put),
  2525. };
  2526. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. mutex_lock(&routing_lock);
  2530. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2531. mutex_unlock(&routing_lock);
  2532. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2533. ucontrol->value.integer.value[0]);
  2534. return 0;
  2535. };
  2536. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct aanc_data aanc_info;
  2540. mutex_lock(&routing_lock);
  2541. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2542. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2545. if (ucontrol->value.integer.value[0] == 0) {
  2546. aanc_info.aanc_active = false;
  2547. aanc_info.aanc_tx_port = 0;
  2548. aanc_info.aanc_rx_port = 0;
  2549. } else {
  2550. aanc_info.aanc_active = true;
  2551. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2552. aanc_info.aanc_tx_port =
  2553. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2554. }
  2555. afe_set_aanc_info(&aanc_info);
  2556. mutex_unlock(&routing_lock);
  2557. return 0;
  2558. };
  2559. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. int idx = 0, shift = 0;
  2563. struct soc_mixer_control *mc =
  2564. (struct soc_mixer_control *)kcontrol->private_value;
  2565. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2566. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2567. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2568. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2569. return -EINVAL;
  2570. }
  2571. if (test_bit(shift,
  2572. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2573. ucontrol->value.integer.value[0] = 1;
  2574. else
  2575. ucontrol->value.integer.value[0] = 0;
  2576. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2577. ucontrol->value.integer.value[0]);
  2578. return 0;
  2579. }
  2580. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2581. struct snd_ctl_elem_value *ucontrol)
  2582. {
  2583. int idx = 0, shift = 0;
  2584. struct soc_mixer_control *mc =
  2585. (struct soc_mixer_control *)kcontrol->private_value;
  2586. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2587. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2588. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2589. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2590. return -EINVAL;
  2591. }
  2592. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2593. __func__, mc->shift, mc->rshift,
  2594. ucontrol->value.integer.value[0], idx, shift);
  2595. if (ucontrol->value.integer.value[0]) {
  2596. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2597. msm_bedais[mc->rshift].port_id);
  2598. set_bit(shift,
  2599. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2600. } else {
  2601. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2602. msm_bedais[mc->rshift].port_id);
  2603. clear_bit(shift,
  2604. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2605. }
  2606. return 1;
  2607. }
  2608. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2609. struct snd_ctl_elem_value *ucontrol)
  2610. {
  2611. u16 fe_id = 0;
  2612. fe_id = ((struct soc_mixer_control *)
  2613. kcontrol->private_value)->shift;
  2614. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2615. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2616. return -EINVAL;
  2617. }
  2618. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2619. return 0;
  2620. }
  2621. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_value *ucontrol)
  2623. {
  2624. u16 fe_id = 0;
  2625. fe_id = ((struct soc_mixer_control *)
  2626. kcontrol->private_value)->shift;
  2627. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2628. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2629. return -EINVAL;
  2630. }
  2631. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2632. return 1;
  2633. }
  2634. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. u16 fe_id = 0;
  2638. fe_id = ((struct soc_multi_mixer_control *)
  2639. kcontrol->private_value)->shift;
  2640. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2641. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2642. return -EINVAL;
  2643. }
  2644. ucontrol->value.integer.value[0] =
  2645. channel_mixer[fe_id].output_channel;
  2646. return 0;
  2647. }
  2648. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2649. struct snd_ctl_elem_value *ucontrol)
  2650. {
  2651. u16 fe_id = 0;
  2652. fe_id = ((struct soc_multi_mixer_control *)
  2653. kcontrol->private_value)->shift;
  2654. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2655. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2656. return -EINVAL;
  2657. }
  2658. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2659. fe_id,
  2660. (unsigned int)(ucontrol->value.integer.value[0]));
  2661. channel_mixer[fe_id].output_channel =
  2662. (unsigned int)(ucontrol->value.integer.value[0]);
  2663. return 1;
  2664. }
  2665. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2666. /* If new backend is added, need update this array */
  2667. static const char *const be_name[] = {
  2668. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2669. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2670. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2671. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2672. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2673. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2674. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2675. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2676. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2677. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2678. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2679. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2680. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2681. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2682. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2683. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2684. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2685. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2686. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2687. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2688. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2689. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2690. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2691. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2692. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2693. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2694. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2695. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2696. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2697. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2698. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2699. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2700. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2701. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2702. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2703. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2704. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2705. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2706. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2707. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2708. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2709. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2710. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2711. };
  2712. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2713. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2714. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2715. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2716. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2717. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2718. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2719. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2720. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2721. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2722. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2723. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2724. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2725. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2726. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2727. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2728. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2729. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2730. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2731. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2732. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2733. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2734. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2735. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2736. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2737. unsigned int channels,
  2738. unsigned int items, const char *const names[])
  2739. {
  2740. if (uinfo->value.enumerated.item >= items)
  2741. uinfo->value.enumerated.item = items - 1;
  2742. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2743. sizeof(uinfo->value.enumerated.name),
  2744. "ALSA: too long item name '%s'\n",
  2745. names[uinfo->value.enumerated.item]);
  2746. strlcpy(uinfo->value.enumerated.name,
  2747. names[uinfo->value.enumerated.item],
  2748. sizeof(uinfo->value.enumerated.name));
  2749. return 0;
  2750. }
  2751. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2752. struct snd_ctl_elem_info *uinfo)
  2753. {
  2754. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2755. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2756. uinfo->count = 1;
  2757. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2758. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2759. return 0;
  2760. }
  2761. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2762. struct snd_ctl_elem_value *ucontrol)
  2763. {
  2764. u16 fe_id = 0;
  2765. fe_id = ((struct soc_enum *)
  2766. kcontrol->private_value)->shift_l;
  2767. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2768. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2769. return -EINVAL;
  2770. }
  2771. pr_debug("%s: FE %d %s\n", __func__,
  2772. fe_id,
  2773. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2774. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2775. return 0;
  2776. }
  2777. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2778. struct snd_ctl_elem_value *ucontrol)
  2779. {
  2780. u16 fe_id = 0;
  2781. fe_id = ((struct soc_enum *)
  2782. kcontrol->private_value)->shift_l;
  2783. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2784. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2785. return -EINVAL;
  2786. }
  2787. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2788. pr_debug("%s: %s FE %d\n", __func__,
  2789. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2790. fe_id);
  2791. return 0;
  2792. }
  2793. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2794. struct snd_ctl_elem_info *uinfo)
  2795. {
  2796. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2797. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2798. uinfo->count = 1;
  2799. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2800. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2801. return 0;
  2802. }
  2803. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2804. struct snd_ctl_elem_value *ucontrol)
  2805. {
  2806. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2807. u16 fe_id = 0, in_ch = 0;
  2808. fe_id = e->shift_l;
  2809. in_ch = e->shift_r;
  2810. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2811. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2812. return -EINVAL;
  2813. }
  2814. if (in_ch >= ADM_MAX_CHANNELS) {
  2815. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2816. return -EINVAL;
  2817. }
  2818. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2819. return 1;
  2820. }
  2821. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2825. u16 fe_id = 0, in_ch = 0;
  2826. fe_id = e->shift_l;
  2827. in_ch = e->shift_r;
  2828. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2829. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2830. return -EINVAL;
  2831. }
  2832. if (in_ch >= ADM_MAX_CHANNELS) {
  2833. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2834. return -EINVAL;
  2835. }
  2836. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2837. return 1;
  2838. }
  2839. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2840. struct snd_ctl_elem_info *uinfo)
  2841. {
  2842. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2843. uinfo->count = ADM_MAX_CHANNELS;
  2844. uinfo->value.integer.min = 0;
  2845. uinfo->value.integer.max = WEIGHT_0_DB;
  2846. return 0;
  2847. }
  2848. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2849. struct snd_ctl_elem_value *ucontrol)
  2850. {
  2851. u16 fe_id = 0, out_ch = 0;
  2852. int i, weight;
  2853. fe_id = ((struct soc_multi_mixer_control *)
  2854. kcontrol->private_value)->shift;
  2855. out_ch = ((struct soc_multi_mixer_control *)
  2856. kcontrol->private_value)->rshift;
  2857. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2858. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2859. return -EINVAL;
  2860. }
  2861. if (out_ch >= ADM_MAX_CHANNELS) {
  2862. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2863. return -EINVAL;
  2864. }
  2865. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2866. __func__, fe_id,
  2867. ucontrol->value.integer.value[0],
  2868. ucontrol->value.integer.value[1],
  2869. ucontrol->value.integer.value[2],
  2870. ucontrol->value.integer.value[3],
  2871. ucontrol->value.integer.value[4],
  2872. ucontrol->value.integer.value[5],
  2873. ucontrol->value.integer.value[6],
  2874. ucontrol->value.integer.value[7]);
  2875. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2876. weight = ucontrol->value.integer.value[i];
  2877. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2878. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2879. __func__, fe_id, out_ch, i,
  2880. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2881. }
  2882. return 0;
  2883. }
  2884. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. u16 fe_id = 0, out_ch = 0;
  2888. int i;
  2889. fe_id = ((struct soc_multi_mixer_control *)
  2890. kcontrol->private_value)->shift;
  2891. out_ch = ((struct soc_multi_mixer_control *)
  2892. kcontrol->private_value)->rshift;
  2893. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2894. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2895. return -EINVAL;
  2896. }
  2897. if (out_ch >= ADM_MAX_CHANNELS) {
  2898. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2899. return -EINVAL;
  2900. }
  2901. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2902. ucontrol->value.integer.value[i] =
  2903. channel_mixer[fe_id].channel_weight[out_ch][i];
  2904. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2905. __func__, fe_id,
  2906. ucontrol->value.integer.value[0],
  2907. ucontrol->value.integer.value[1],
  2908. ucontrol->value.integer.value[2],
  2909. ucontrol->value.integer.value[3],
  2910. ucontrol->value.integer.value[4],
  2911. ucontrol->value.integer.value[5],
  2912. ucontrol->value.integer.value[6],
  2913. ucontrol->value.integer.value[7]);
  2914. return 0;
  2915. }
  2916. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2917. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2918. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2919. msm_pcm_get_channel_rule_index,
  2920. msm_pcm_put_channel_rule_index),
  2921. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2922. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2923. msm_pcm_get_channel_rule_index,
  2924. msm_pcm_put_channel_rule_index),
  2925. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2926. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2927. msm_pcm_get_channel_rule_index,
  2928. msm_pcm_put_channel_rule_index),
  2929. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2930. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2931. msm_pcm_get_channel_rule_index,
  2932. msm_pcm_put_channel_rule_index),
  2933. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2934. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2935. msm_pcm_get_channel_rule_index,
  2936. msm_pcm_put_channel_rule_index),
  2937. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2938. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2939. msm_pcm_get_channel_rule_index,
  2940. msm_pcm_put_channel_rule_index),
  2941. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2942. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2943. msm_pcm_get_out_chs,
  2944. msm_pcm_put_out_chs),
  2945. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2946. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2947. msm_pcm_get_out_chs,
  2948. msm_pcm_put_out_chs),
  2949. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2950. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2951. msm_pcm_get_out_chs,
  2952. msm_pcm_put_out_chs),
  2953. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2954. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2955. msm_pcm_get_out_chs,
  2956. msm_pcm_put_out_chs),
  2957. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2958. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2959. msm_pcm_get_out_chs,
  2960. msm_pcm_put_out_chs),
  2961. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2962. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2963. msm_pcm_get_out_chs,
  2964. msm_pcm_put_out_chs),
  2965. {
  2966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2968. .name = "MultiMedia1 Channel Mixer",
  2969. .info = msm_pcm_channel_mixer_info,
  2970. .get = msm_pcm_channel_mixer_get,
  2971. .put = msm_pcm_channel_mixer_put,
  2972. .private_value = (unsigned long)&(mm1_channel_mux)
  2973. },
  2974. {
  2975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2977. .name = "MultiMedia2 Channel Mixer",
  2978. .info = msm_pcm_channel_mixer_info,
  2979. .get = msm_pcm_channel_mixer_get,
  2980. .put = msm_pcm_channel_mixer_put,
  2981. .private_value = (unsigned long)&(mm2_channel_mux)
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia3 Channel Mixer",
  2987. .info = msm_pcm_channel_mixer_info,
  2988. .get = msm_pcm_channel_mixer_get,
  2989. .put = msm_pcm_channel_mixer_put,
  2990. .private_value = (unsigned long)&(mm3_channel_mux)
  2991. },
  2992. {
  2993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2995. .name = "MultiMedia4 Channel Mixer",
  2996. .info = msm_pcm_channel_mixer_info,
  2997. .get = msm_pcm_channel_mixer_get,
  2998. .put = msm_pcm_channel_mixer_put,
  2999. .private_value = (unsigned long)&(mm4_channel_mux)
  3000. },
  3001. {
  3002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3004. .name = "MultiMedia1 Output Channel1",
  3005. .info = msm_pcm_channel_weight_info,
  3006. .get = msm_pcm_channel_weight_get,
  3007. .put = msm_pcm_channel_weight_put,
  3008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3009. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3010. },
  3011. {
  3012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3014. .name = "MultiMedia1 Output Channel2",
  3015. .info = msm_pcm_channel_weight_info,
  3016. .get = msm_pcm_channel_weight_get,
  3017. .put = msm_pcm_channel_weight_put,
  3018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3020. },
  3021. {
  3022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3024. .name = "MultiMedia1 Output Channel3",
  3025. .info = msm_pcm_channel_weight_info,
  3026. .get = msm_pcm_channel_weight_get,
  3027. .put = msm_pcm_channel_weight_put,
  3028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3030. },
  3031. {
  3032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3034. .name = "MultiMedia1 Output Channel4",
  3035. .info = msm_pcm_channel_weight_info,
  3036. .get = msm_pcm_channel_weight_get,
  3037. .put = msm_pcm_channel_weight_put,
  3038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3040. },
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 Output Channel5",
  3045. .info = msm_pcm_channel_weight_info,
  3046. .get = msm_pcm_channel_weight_get,
  3047. .put = msm_pcm_channel_weight_put,
  3048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3050. },
  3051. {
  3052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3054. .name = "MultiMedia1 Output Channel6",
  3055. .info = msm_pcm_channel_weight_info,
  3056. .get = msm_pcm_channel_weight_get,
  3057. .put = msm_pcm_channel_weight_put,
  3058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3060. },
  3061. {
  3062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3064. .name = "MultiMedia1 Output Channel7",
  3065. .info = msm_pcm_channel_weight_info,
  3066. .get = msm_pcm_channel_weight_get,
  3067. .put = msm_pcm_channel_weight_put,
  3068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3070. },
  3071. {
  3072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3074. .name = "MultiMedia1 Output Channel8",
  3075. .info = msm_pcm_channel_weight_info,
  3076. .get = msm_pcm_channel_weight_get,
  3077. .put = msm_pcm_channel_weight_put,
  3078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3080. },
  3081. {
  3082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3084. .name = "MultiMedia2 Output Channel1",
  3085. .info = msm_pcm_channel_weight_info,
  3086. .get = msm_pcm_channel_weight_get,
  3087. .put = msm_pcm_channel_weight_put,
  3088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3089. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3090. },
  3091. {
  3092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3094. .name = "MultiMedia2 Output Channel2",
  3095. .info = msm_pcm_channel_weight_info,
  3096. .get = msm_pcm_channel_weight_get,
  3097. .put = msm_pcm_channel_weight_put,
  3098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3099. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3100. },
  3101. {
  3102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3104. .name = "MultiMedia2 Output Channel3",
  3105. .info = msm_pcm_channel_weight_info,
  3106. .get = msm_pcm_channel_weight_get,
  3107. .put = msm_pcm_channel_weight_put,
  3108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3109. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3110. },
  3111. {
  3112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3114. .name = "MultiMedia3 Output Channel1",
  3115. .info = msm_pcm_channel_weight_info,
  3116. .get = msm_pcm_channel_weight_get,
  3117. .put = msm_pcm_channel_weight_put,
  3118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3119. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3120. },
  3121. {
  3122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3124. .name = "MultiMedia3 Output Channel2",
  3125. .info = msm_pcm_channel_weight_info,
  3126. .get = msm_pcm_channel_weight_get,
  3127. .put = msm_pcm_channel_weight_put,
  3128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3129. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3130. },
  3131. {
  3132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3134. .name = "MultiMedia1 Channel1",
  3135. .info = msm_pcm_channel_input_be_info,
  3136. .get = msm_pcm_channel_input_be_get,
  3137. .put = msm_pcm_channel_input_be_put,
  3138. .private_value = (unsigned long)&(mm1_ch1_enum)
  3139. },
  3140. {
  3141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3142. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3143. .name = "MultiMedia1 Channel2",
  3144. .info = msm_pcm_channel_input_be_info,
  3145. .get = msm_pcm_channel_input_be_get,
  3146. .put = msm_pcm_channel_input_be_put,
  3147. .private_value = (unsigned long)&(mm1_ch2_enum)
  3148. },
  3149. {
  3150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3151. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3152. .name = "MultiMedia1 Channel3",
  3153. .info = msm_pcm_channel_input_be_info,
  3154. .get = msm_pcm_channel_input_be_get,
  3155. .put = msm_pcm_channel_input_be_put,
  3156. .private_value = (unsigned long)&(mm1_ch3_enum)
  3157. },
  3158. {
  3159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3161. .name = "MultiMedia1 Channel4",
  3162. .info = msm_pcm_channel_input_be_info,
  3163. .get = msm_pcm_channel_input_be_get,
  3164. .put = msm_pcm_channel_input_be_put,
  3165. .private_value = (unsigned long)&(mm1_ch4_enum)
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia1 Channel5",
  3171. .info = msm_pcm_channel_input_be_info,
  3172. .get = msm_pcm_channel_input_be_get,
  3173. .put = msm_pcm_channel_input_be_put,
  3174. .private_value = (unsigned long)&(mm1_ch5_enum)
  3175. },
  3176. {
  3177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3179. .name = "MultiMedia1 Channel6",
  3180. .info = msm_pcm_channel_input_be_info,
  3181. .get = msm_pcm_channel_input_be_get,
  3182. .put = msm_pcm_channel_input_be_put,
  3183. .private_value = (unsigned long)&(mm1_ch6_enum)
  3184. },
  3185. {
  3186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3188. .name = "MultiMedia1 Channel7",
  3189. .info = msm_pcm_channel_input_be_info,
  3190. .get = msm_pcm_channel_input_be_get,
  3191. .put = msm_pcm_channel_input_be_put,
  3192. .private_value = (unsigned long)&(mm1_ch7_enum)
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia1 Channel8",
  3198. .info = msm_pcm_channel_input_be_info,
  3199. .get = msm_pcm_channel_input_be_get,
  3200. .put = msm_pcm_channel_input_be_put,
  3201. .private_value = (unsigned long)&(mm1_ch8_enum)
  3202. },
  3203. };
  3204. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3205. struct snd_ctl_elem_value *ucontrol)
  3206. {
  3207. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3208. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3209. ucontrol->value.integer.value[0]);
  3210. return 0;
  3211. }
  3212. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3213. struct snd_ctl_elem_value *ucontrol)
  3214. {
  3215. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3216. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3217. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3218. return 0;
  3219. }
  3220. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3221. "Four", "Five", "Six", "Seven", "Eight"};
  3222. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3223. struct snd_ctl_elem_value *ucontrol)
  3224. {
  3225. switch (msm_ec_ref_bit_format) {
  3226. case SNDRV_PCM_FORMAT_S24_LE:
  3227. ucontrol->value.integer.value[0] = 2;
  3228. break;
  3229. case SNDRV_PCM_FORMAT_S16_LE:
  3230. ucontrol->value.integer.value[0] = 1;
  3231. break;
  3232. default:
  3233. ucontrol->value.integer.value[0] = 0;
  3234. break;
  3235. }
  3236. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3237. __func__, ucontrol->value.integer.value[0]);
  3238. return 0;
  3239. }
  3240. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. u16 bit_width = 0;
  3244. switch (ucontrol->value.integer.value[0]) {
  3245. case 2:
  3246. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3247. break;
  3248. case 1:
  3249. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3250. break;
  3251. default:
  3252. msm_ec_ref_bit_format = 0;
  3253. break;
  3254. }
  3255. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3256. bit_width = 16;
  3257. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3258. bit_width = 24;
  3259. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3260. __func__, msm_ec_ref_bit_format);
  3261. adm_ec_ref_rx_bit_width(bit_width);
  3262. return 0;
  3263. }
  3264. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3265. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3269. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3270. __func__, ucontrol->value.integer.value[0]);
  3271. return 0;
  3272. }
  3273. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3274. struct snd_ctl_elem_value *ucontrol)
  3275. {
  3276. switch (ucontrol->value.integer.value[0]) {
  3277. case 0:
  3278. msm_ec_ref_sampling_rate = 0;
  3279. break;
  3280. case 1:
  3281. msm_ec_ref_sampling_rate = 8000;
  3282. break;
  3283. case 2:
  3284. msm_ec_ref_sampling_rate = 16000;
  3285. break;
  3286. case 3:
  3287. msm_ec_ref_sampling_rate = 32000;
  3288. break;
  3289. case 4:
  3290. msm_ec_ref_sampling_rate = 44100;
  3291. break;
  3292. case 5:
  3293. msm_ec_ref_sampling_rate = 48000;
  3294. break;
  3295. case 6:
  3296. msm_ec_ref_sampling_rate = 96000;
  3297. break;
  3298. case 7:
  3299. msm_ec_ref_sampling_rate = 192000;
  3300. break;
  3301. case 8:
  3302. msm_ec_ref_sampling_rate = 384000;
  3303. break;
  3304. default:
  3305. msm_ec_ref_sampling_rate = 48000;
  3306. break;
  3307. }
  3308. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3309. __func__, msm_ec_ref_sampling_rate);
  3310. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3311. return 0;
  3312. }
  3313. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3314. "32000", "44100", "48000", "96000", "192000", "384000"};
  3315. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3316. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3317. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3318. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3319. };
  3320. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3321. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3322. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3323. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3324. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3325. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3326. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3327. };
  3328. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3329. struct snd_ctl_elem_value *ucontrol)
  3330. {
  3331. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3332. mutex_lock(&routing_lock);
  3333. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3334. mutex_unlock(&routing_lock);
  3335. return 0;
  3336. }
  3337. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3338. struct snd_ctl_elem_value *ucontrol)
  3339. {
  3340. int ec_ref_port_id;
  3341. struct snd_soc_dapm_widget *widget =
  3342. snd_soc_dapm_kcontrol_widget(kcontrol);
  3343. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3344. struct snd_soc_dapm_update *update = NULL;
  3345. mutex_lock(&routing_lock);
  3346. switch (ucontrol->value.integer.value[0]) {
  3347. case 0:
  3348. msm_route_ec_ref_rx = 0;
  3349. ec_ref_port_id = AFE_PORT_INVALID;
  3350. break;
  3351. case 1:
  3352. msm_route_ec_ref_rx = 1;
  3353. ec_ref_port_id = SLIMBUS_0_RX;
  3354. break;
  3355. case 2:
  3356. msm_route_ec_ref_rx = 2;
  3357. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3358. break;
  3359. case 3:
  3360. msm_route_ec_ref_rx = 3;
  3361. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3362. break;
  3363. case 4:
  3364. msm_route_ec_ref_rx = 4;
  3365. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3366. break;
  3367. case 5:
  3368. msm_route_ec_ref_rx = 5;
  3369. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3370. break;
  3371. case 6:
  3372. msm_route_ec_ref_rx = 6;
  3373. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3374. break;
  3375. case 7:
  3376. msm_route_ec_ref_rx = 7;
  3377. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3378. break;
  3379. case 9:
  3380. msm_route_ec_ref_rx = 9;
  3381. ec_ref_port_id = SLIMBUS_5_RX;
  3382. break;
  3383. case 10:
  3384. msm_route_ec_ref_rx = 10;
  3385. ec_ref_port_id = SLIMBUS_1_TX;
  3386. break;
  3387. case 11:
  3388. msm_route_ec_ref_rx = 11;
  3389. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3390. break;
  3391. case 12:
  3392. msm_route_ec_ref_rx = 12;
  3393. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3394. break;
  3395. case 13:
  3396. msm_route_ec_ref_rx = 13;
  3397. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3398. break;
  3399. case 14:
  3400. msm_route_ec_ref_rx = 14;
  3401. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3402. break;
  3403. case 15:
  3404. msm_route_ec_ref_rx = 15;
  3405. ec_ref_port_id = SLIMBUS_6_RX;
  3406. break;
  3407. case 16:
  3408. msm_route_ec_ref_rx = 16;
  3409. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3410. break;
  3411. case 17:
  3412. msm_route_ec_ref_rx = 17;
  3413. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3414. break;
  3415. case 18:
  3416. msm_route_ec_ref_rx = 18;
  3417. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3418. break;
  3419. case 19:
  3420. msm_route_ec_ref_rx = 19;
  3421. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3422. break;
  3423. case 20:
  3424. msm_route_ec_ref_rx = 20;
  3425. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3426. break;
  3427. case 21:
  3428. msm_route_ec_ref_rx = 21;
  3429. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3430. break;
  3431. case 22:
  3432. msm_route_ec_ref_rx = 22;
  3433. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3434. break;
  3435. case 23:
  3436. msm_route_ec_ref_rx = 23;
  3437. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3438. break;
  3439. case 24:
  3440. msm_route_ec_ref_rx = 24;
  3441. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3442. break;
  3443. case 25:
  3444. msm_route_ec_ref_rx = 25;
  3445. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3446. break;
  3447. case 26:
  3448. msm_route_ec_ref_rx = 26;
  3449. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3450. break;
  3451. case 27:
  3452. msm_route_ec_ref_rx = 27;
  3453. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3454. break;
  3455. case 28:
  3456. msm_route_ec_ref_rx = 28;
  3457. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3458. break;
  3459. case 29:
  3460. msm_route_ec_ref_rx = 29;
  3461. ec_ref_port_id = SLIMBUS_7_RX;
  3462. break;
  3463. default:
  3464. msm_route_ec_ref_rx = 0; /* NONE */
  3465. pr_err("%s EC ref rx %ld not valid\n",
  3466. __func__, ucontrol->value.integer.value[0]);
  3467. ec_ref_port_id = AFE_PORT_INVALID;
  3468. break;
  3469. }
  3470. adm_ec_ref_rx_id(ec_ref_port_id);
  3471. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3472. __func__, msm_route_ec_ref_rx);
  3473. mutex_unlock(&routing_lock);
  3474. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3475. msm_route_ec_ref_rx, e, update);
  3476. return 0;
  3477. }
  3478. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3479. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3480. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3481. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3482. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3483. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3484. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3485. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3486. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3487. "SLIM_7_RX"
  3488. };
  3489. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3490. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3491. };
  3492. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3493. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3494. msm_route_ec_ref_rx_enum[0],
  3495. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3496. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3497. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3498. msm_route_ec_ref_rx_enum[0],
  3499. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3500. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3501. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3502. msm_route_ec_ref_rx_enum[0],
  3503. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3504. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3505. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3506. msm_route_ec_ref_rx_enum[0],
  3507. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3508. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3509. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3510. msm_route_ec_ref_rx_enum[0],
  3511. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3512. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3513. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3514. msm_route_ec_ref_rx_enum[0],
  3515. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3516. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3517. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3518. msm_route_ec_ref_rx_enum[0],
  3519. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3520. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3521. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3522. msm_route_ec_ref_rx_enum[0],
  3523. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3524. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3525. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3526. msm_route_ec_ref_rx_enum[0],
  3527. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3528. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3529. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3530. msm_route_ec_ref_rx_enum[0],
  3531. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3532. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3533. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3534. msm_route_ec_ref_rx_enum[0],
  3535. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3536. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3537. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3538. msm_route_ec_ref_rx_enum[0],
  3539. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3540. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3541. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3542. msm_route_ec_ref_rx_enum[0],
  3543. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3544. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3545. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3546. msm_route_ec_ref_rx_enum[0],
  3547. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3548. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3549. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3550. msm_route_ec_ref_rx_enum[0],
  3551. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3552. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3553. struct snd_ctl_elem_value *ucontrol)
  3554. {
  3555. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3556. mutex_lock(&routing_lock);
  3557. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3558. mutex_unlock(&routing_lock);
  3559. return 0;
  3560. }
  3561. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3562. struct snd_ctl_elem_value *ucontrol)
  3563. {
  3564. struct snd_soc_dapm_widget *widget =
  3565. snd_soc_dapm_kcontrol_widget(kcontrol);
  3566. int mux = ucontrol->value.enumerated.item[0];
  3567. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3568. int ret = 1;
  3569. bool state = true;
  3570. uint16_t ext_ec_ref_port_id;
  3571. struct snd_soc_dapm_update *update = NULL;
  3572. if (mux >= e->items) {
  3573. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3574. return -EINVAL;
  3575. }
  3576. mutex_lock(&routing_lock);
  3577. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3578. switch (msm_route_ext_ec_ref) {
  3579. case EXT_EC_REF_PRI_MI2S_TX:
  3580. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3581. break;
  3582. case EXT_EC_REF_SEC_MI2S_TX:
  3583. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3584. break;
  3585. case EXT_EC_REF_TERT_MI2S_TX:
  3586. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3587. break;
  3588. case EXT_EC_REF_QUAT_MI2S_TX:
  3589. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3590. break;
  3591. case EXT_EC_REF_QUIN_MI2S_TX:
  3592. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3593. break;
  3594. case EXT_EC_REF_SLIM_1_TX:
  3595. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3596. break;
  3597. case EXT_EC_REF_SEC_TDM_TX:
  3598. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3599. break;
  3600. case EXT_EC_REF_NONE:
  3601. default:
  3602. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3603. state = false;
  3604. break;
  3605. }
  3606. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3607. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3608. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3609. mutex_unlock(&routing_lock);
  3610. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3611. update);
  3612. } else {
  3613. ret = -EINVAL;
  3614. mutex_unlock(&routing_lock);
  3615. }
  3616. return ret;
  3617. }
  3618. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3619. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3620. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3621. "SLIM_1_TX", "SEC_TDM_TX"};
  3622. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3623. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3624. };
  3625. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3626. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3627. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3628. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3629. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3630. MSM_BACKEND_DAI_PRI_I2S_RX,
  3631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3632. msm_routing_put_audio_mixer),
  3633. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3634. MSM_BACKEND_DAI_PRI_I2S_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3638. MSM_BACKEND_DAI_PRI_I2S_RX,
  3639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3640. msm_routing_put_audio_mixer),
  3641. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3642. MSM_BACKEND_DAI_PRI_I2S_RX,
  3643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3644. msm_routing_put_audio_mixer),
  3645. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3646. MSM_BACKEND_DAI_PRI_I2S_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3650. MSM_BACKEND_DAI_PRI_I2S_RX,
  3651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3652. msm_routing_put_audio_mixer),
  3653. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3654. MSM_BACKEND_DAI_PRI_I2S_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3658. MSM_BACKEND_DAI_PRI_I2S_RX,
  3659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3660. msm_routing_put_audio_mixer),
  3661. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3662. MSM_BACKEND_DAI_PRI_I2S_RX,
  3663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3664. msm_routing_put_audio_mixer),
  3665. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3666. MSM_BACKEND_DAI_PRI_I2S_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3670. MSM_BACKEND_DAI_PRI_I2S_RX,
  3671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3672. msm_routing_put_audio_mixer),
  3673. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3674. MSM_BACKEND_DAI_PRI_I2S_RX,
  3675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3676. msm_routing_put_audio_mixer),
  3677. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3678. MSM_BACKEND_DAI_PRI_I2S_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3682. MSM_BACKEND_DAI_PRI_I2S_RX,
  3683. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3684. msm_routing_put_audio_mixer),
  3685. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3686. MSM_BACKEND_DAI_PRI_I2S_RX,
  3687. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3688. msm_routing_put_audio_mixer),
  3689. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3690. MSM_BACKEND_DAI_PRI_I2S_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3694. MSM_BACKEND_DAI_PRI_I2S_RX,
  3695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3696. msm_routing_put_audio_mixer),
  3697. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3698. MSM_BACKEND_DAI_PRI_I2S_RX,
  3699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3700. msm_routing_put_audio_mixer),
  3701. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3702. MSM_BACKEND_DAI_PRI_I2S_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3706. MSM_BACKEND_DAI_PRI_I2S_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3710. MSM_BACKEND_DAI_PRI_I2S_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. };
  3714. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3715. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3716. MSM_BACKEND_DAI_SEC_I2S_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3720. MSM_BACKEND_DAI_SEC_I2S_RX,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3722. msm_routing_put_audio_mixer),
  3723. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3724. MSM_BACKEND_DAI_SEC_I2S_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3728. MSM_BACKEND_DAI_SEC_I2S_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_SEC_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_SEC_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_SEC_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_SEC_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_SEC_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_SEC_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_SEC_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_SEC_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_SEC_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_SEC_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_SEC_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_SEC_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_SEC_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_SEC_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_SEC_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_SEC_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_SEC_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. };
  3800. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3801. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3802. MSM_BACKEND_DAI_SPDIF_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3806. MSM_BACKEND_DAI_SPDIF_RX,
  3807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3808. msm_routing_put_audio_mixer),
  3809. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3810. MSM_BACKEND_DAI_SPDIF_RX,
  3811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3812. msm_routing_put_audio_mixer),
  3813. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3814. MSM_BACKEND_DAI_SPDIF_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3818. MSM_BACKEND_DAI_SPDIF_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SPDIF_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SPDIF_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SPDIF_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SPDIF_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SPDIF_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SPDIF_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SPDIF_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SPDIF_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SPDIF_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SPDIF_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SPDIF_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SPDIF_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SPDIF_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SPDIF_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SPDIF_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SPDIF_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. };
  3886. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3888. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3892. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3894. msm_routing_put_audio_mixer),
  3895. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3896. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3900. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3902. msm_routing_put_audio_mixer),
  3903. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3904. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3908. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. };
  3952. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3954. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3958. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3962. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3964. msm_routing_put_audio_mixer),
  3965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3966. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3970. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3974. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3976. msm_routing_put_audio_mixer),
  3977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3978. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3982. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3986. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3988. msm_routing_put_audio_mixer),
  3989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3990. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3992. msm_routing_put_audio_mixer),
  3993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3994. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3998. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. };
  4038. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4039. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4078. msm_routing_put_audio_mixer),
  4079. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4081. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4082. msm_routing_put_audio_mixer),
  4083. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4084. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4088. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4089. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4090. msm_routing_put_audio_mixer),
  4091. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. };
  4124. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4126. MSM_BACKEND_DAI_MI2S_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4130. MSM_BACKEND_DAI_MI2S_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4134. MSM_BACKEND_DAI_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4138. MSM_BACKEND_DAI_MI2S_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4142. MSM_BACKEND_DAI_MI2S_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4146. MSM_BACKEND_DAI_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4150. MSM_BACKEND_DAI_MI2S_RX,
  4151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4152. msm_routing_put_audio_mixer),
  4153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4154. MSM_BACKEND_DAI_MI2S_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4158. MSM_BACKEND_DAI_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_MI2S_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_MI2S_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_MI2S_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_MI2S_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_MI2S_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_MI2S_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_MI2S_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_MI2S_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. };
  4210. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4211. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4212. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4216. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4220. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4224. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4228. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4232. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4236. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4240. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4244. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4248. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. };
  4296. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4298. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4302. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4306. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4310. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4314. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4318. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4322. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4326. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4330. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4334. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4338. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. };
  4382. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4383. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4388. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4392. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4396. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4400. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4416. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4420. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. };
  4460. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4461. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. };
  4466. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4524. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4528. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4532. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4536. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4540. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. };
  4552. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4553. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4614. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4618. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4622. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4626. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4630. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. };
  4638. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4696. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. };
  4704. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4714. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4718. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4722. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4726. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4730. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4734. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4738. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4740. msm_routing_put_audio_mixer),
  4741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4742. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4744. msm_routing_put_audio_mixer),
  4745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4746. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4750. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4754. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4758. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4762. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4766. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. };
  4770. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_HDMI_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_HDMI_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_HDMI_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_HDMI_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_HDMI_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_HDMI_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_HDMI_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4800. MSM_BACKEND_DAI_HDMI_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4804. MSM_BACKEND_DAI_HDMI_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4808. MSM_BACKEND_DAI_HDMI_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4812. MSM_BACKEND_DAI_HDMI_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4816. MSM_BACKEND_DAI_HDMI_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4820. MSM_BACKEND_DAI_HDMI_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4824. MSM_BACKEND_DAI_HDMI_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4828. MSM_BACKEND_DAI_HDMI_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4832. MSM_BACKEND_DAI_HDMI_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4836. MSM_BACKEND_DAI_HDMI_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4840. MSM_BACKEND_DAI_HDMI_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4844. MSM_BACKEND_DAI_HDMI_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_HDMI_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4852. MSM_BACKEND_DAI_HDMI_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. };
  4856. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4882. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4886. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4890. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4894. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4898. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4902. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4906. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4910. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4914. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4918. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. };
  4922. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4948. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4952. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4956. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4960. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4964. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. };
  4988. /* incall music delivery mixer */
  4989. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. };
  5007. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. };
  5025. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5026. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. };
  5043. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5044. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5073. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5075. msm_routing_put_audio_mixer),
  5076. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5077. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. };
  5109. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5110. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. };
  5175. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5176. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. };
  5241. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5242. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. };
  5307. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5308. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_USB_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_USB_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_USB_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_USB_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_USB_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_USB_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_USB_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_USB_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_USB_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_USB_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_USB_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_USB_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_USB_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_USB_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_USB_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_USB_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. };
  5373. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. };
  5459. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5460. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. };
  5525. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5526. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_INT_FM_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_INT_FM_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_INT_FM_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_INT_FM_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_INT_FM_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_INT_FM_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_INT_FM_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_INT_FM_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_INT_FM_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_INT_FM_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_INT_FM_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_INT_FM_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_INT_FM_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_INT_FM_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_INT_FM_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_INT_FM_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_INT_FM_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_INT_FM_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_INT_FM_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_INT_FM_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_INT_FM_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. };
  5611. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5612. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_AFE_PCM_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_AFE_PCM_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_AFE_PCM_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_AFE_PCM_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_AFE_PCM_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_AFE_PCM_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_AFE_PCM_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_AFE_PCM_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_AFE_PCM_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_AFE_PCM_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_AFE_PCM_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_AFE_PCM_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_AFE_PCM_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_AFE_PCM_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_AFE_PCM_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_AFE_PCM_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_AFE_PCM_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_AFE_PCM_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_AFE_PCM_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_AFE_PCM_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_AFE_PCM_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. };
  5697. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_AUXPCM_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_AUXPCM_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_AUXPCM_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_AUXPCM_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_AUXPCM_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_AUXPCM_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_AUXPCM_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_AUXPCM_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_AUXPCM_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_AUXPCM_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_AUXPCM_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_AUXPCM_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_AUXPCM_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_AUXPCM_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_AUXPCM_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_AUXPCM_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_AUXPCM_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_AUXPCM_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_AUXPCM_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_AUXPCM_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_AUXPCM_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. };
  5783. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. };
  5869. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5870. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. };
  5935. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5936. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. };
  6001. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6002. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. };
  6067. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6068. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. };
  6133. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. };
  6199. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6200. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. };
  6265. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. };
  6331. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6332. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. };
  6397. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6398. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. };
  6463. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6464. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. };
  6595. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6596. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. };
  6661. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6662. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. };
  6727. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. };
  6793. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6794. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. };
  6859. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. };
  6925. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. };
  6991. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6992. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. };
  7057. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7058. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. };
  7123. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7124. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. };
  7193. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7194. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. };
  7259. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. };
  7329. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7330. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. };
  7399. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. };
  7469. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. };
  7539. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7540. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. };
  7605. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7606. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. };
  7675. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7676. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. };
  7745. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7746. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. };
  7815. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7816. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_PRI_I2S_TX,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_MI2S_TX,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_AUXPCM_TX,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_INT_FM_TX,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_AFE_PCM_TX,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7905. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7907. msm_routing_put_audio_mixer),
  7908. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7909. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7911. msm_routing_put_audio_mixer),
  7912. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_USB_TX,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. };
  8017. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8018. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_INT_FM_TX,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_MI2S_TX,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8111. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8112. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8113. msm_routing_put_audio_mixer),
  8114. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_USB_TX,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. };
  8175. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8176. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_INT_FM_TX,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_MI2S_TX,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_AFE_PCM_TX,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_AUXPCM_TX,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8322. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8323. msm_routing_put_audio_mixer),
  8324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8327. msm_routing_put_audio_mixer),
  8328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8331. msm_routing_put_audio_mixer),
  8332. };
  8333. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8334. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_FM_TX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_AFE_PCM_TX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8399. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8400. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8401. msm_routing_put_audio_mixer),
  8402. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_USB_TX,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. };
  8487. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8488. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_INT_FM_TX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_MI2S_TX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_AFE_PCM_TX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_AUXPCM_TX,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_USB_TX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. };
  8665. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8666. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_INT_FM_TX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_AUXPCM_TX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_USB_TX,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. };
  8823. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8824. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_INT_FM_TX,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_AFE_PCM_TX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8889. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8891. msm_routing_put_audio_mixer),
  8892. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8893. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8895. msm_routing_put_audio_mixer),
  8896. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8897. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8898. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8899. msm_routing_put_audio_mixer),
  8900. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8901. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8902. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8903. msm_routing_put_audio_mixer),
  8904. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8905. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8906. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8907. msm_routing_put_audio_mixer),
  8908. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8909. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8910. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8911. msm_routing_put_audio_mixer),
  8912. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8913. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8914. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8915. msm_routing_put_audio_mixer),
  8916. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_USB_TX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. };
  8985. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8986. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_INT_FM_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_AFE_PCM_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_USB_TX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_MI2S_TX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_AUXPCM_TX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. };
  9147. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9148. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_INT_FM_TX,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_AFE_PCM_TX,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. };
  9249. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9250. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_INT_FM_TX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_AFE_PCM_TX,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_USB_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_MI2S_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_AUXPCM_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. };
  9375. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9376. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_INT_FM_TX,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_AFE_PCM_TX,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. };
  9437. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9438. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_INT_FM_TX,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_AFE_PCM_TX,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. };
  9499. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9500. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_INT_FM_TX,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_AFE_PCM_TX,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. };
  9561. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9562. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9639. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9640. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9641. msm_routing_put_audio_mixer),
  9642. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. };
  9683. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9684. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_INT_FM_TX,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_AFE_PCM_TX,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. };
  9745. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9746. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_INT_FM_TX,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_AFE_PCM_TX,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. };
  9807. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9808. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_PRI_I2S_RX,
  9810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9811. msm_routing_put_voice_mixer),
  9812. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_PRI_I2S_RX,
  9814. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9815. msm_routing_put_voice_mixer),
  9816. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_PRI_I2S_RX,
  9818. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9819. msm_routing_put_voice_mixer),
  9820. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_PRI_I2S_RX,
  9822. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9823. msm_routing_put_voice_mixer),
  9824. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_PRI_I2S_RX,
  9826. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9827. msm_routing_put_voice_mixer),
  9828. };
  9829. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_SEC_I2S_RX,
  9832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9833. msm_routing_put_voice_mixer),
  9834. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_I2S_RX,
  9836. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9837. msm_routing_put_voice_mixer),
  9838. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_I2S_RX,
  9840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9841. msm_routing_put_voice_mixer),
  9842. };
  9843. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9844. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9847. msm_routing_put_voice_mixer),
  9848. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9849. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9850. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9851. msm_routing_put_voice_mixer),
  9852. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9853. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9855. msm_routing_put_voice_mixer),
  9856. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9857. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9858. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9859. msm_routing_put_voice_mixer),
  9860. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9861. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9862. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9863. msm_routing_put_voice_mixer),
  9864. };
  9865. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9866. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9869. msm_routing_put_voice_mixer),
  9870. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9872. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9873. msm_routing_put_voice_mixer),
  9874. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9876. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9877. msm_routing_put_voice_mixer),
  9878. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9880. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9881. msm_routing_put_voice_mixer),
  9882. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9884. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9885. msm_routing_put_voice_mixer),
  9886. };
  9887. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9888. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9890. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9891. msm_routing_put_voice_mixer),
  9892. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9894. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9895. msm_routing_put_voice_mixer),
  9896. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9899. msm_routing_put_voice_mixer),
  9900. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9902. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9903. msm_routing_put_voice_mixer),
  9904. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9906. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9907. msm_routing_put_voice_mixer),
  9908. };
  9909. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9910. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_USB_RX,
  9912. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9913. msm_routing_put_voice_mixer),
  9914. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_USB_RX,
  9916. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9917. msm_routing_put_voice_mixer),
  9918. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_USB_RX,
  9920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9921. msm_routing_put_voice_mixer),
  9922. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_USB_RX,
  9924. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9925. msm_routing_put_voice_mixer),
  9926. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_USB_RX,
  9928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9929. msm_routing_put_voice_mixer),
  9930. };
  9931. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9932. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9934. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9935. msm_routing_put_voice_mixer),
  9936. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9938. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9939. msm_routing_put_voice_mixer),
  9940. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9942. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9943. msm_routing_put_voice_mixer),
  9944. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9947. msm_routing_put_voice_mixer),
  9948. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9951. msm_routing_put_voice_mixer),
  9952. };
  9953. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9954. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9956. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9957. msm_routing_put_voice_mixer),
  9958. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9960. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9961. msm_routing_put_voice_mixer),
  9962. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9965. msm_routing_put_voice_mixer),
  9966. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9968. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9969. msm_routing_put_voice_mixer),
  9970. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9972. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9973. msm_routing_put_voice_mixer),
  9974. };
  9975. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9976. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9978. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9979. msm_routing_put_voice_mixer),
  9980. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9983. msm_routing_put_voice_mixer),
  9984. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9987. msm_routing_put_voice_mixer),
  9988. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9990. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9991. msm_routing_put_voice_mixer),
  9992. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9994. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9995. msm_routing_put_voice_mixer),
  9996. };
  9997. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9998. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_MI2S_RX,
  10000. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10001. msm_routing_put_voice_mixer),
  10002. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_MI2S_RX,
  10004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10005. msm_routing_put_voice_mixer),
  10006. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_MI2S_RX,
  10008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10009. msm_routing_put_voice_mixer),
  10010. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_MI2S_RX,
  10012. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10013. msm_routing_put_voice_mixer),
  10014. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_MI2S_RX,
  10016. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10017. msm_routing_put_voice_mixer),
  10018. };
  10019. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10020. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10022. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10023. msm_routing_put_voice_mixer),
  10024. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10026. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10027. msm_routing_put_voice_mixer),
  10028. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10030. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10031. msm_routing_put_voice_mixer),
  10032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10034. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10035. msm_routing_put_voice_mixer),
  10036. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10038. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10039. msm_routing_put_voice_mixer),
  10040. };
  10041. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10042. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10045. msm_routing_put_voice_mixer),
  10046. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10048. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10049. msm_routing_put_voice_mixer),
  10050. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10053. msm_routing_put_voice_mixer),
  10054. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10057. msm_routing_put_voice_mixer),
  10058. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10060. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10061. msm_routing_put_voice_mixer),
  10062. };
  10063. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10064. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10067. msm_routing_put_voice_mixer),
  10068. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10070. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10071. msm_routing_put_voice_mixer),
  10072. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10074. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10075. msm_routing_put_voice_mixer),
  10076. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10078. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10079. msm_routing_put_voice_mixer),
  10080. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10082. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10083. msm_routing_put_voice_mixer),
  10084. };
  10085. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10086. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10089. msm_routing_put_voice_mixer),
  10090. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10092. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10093. msm_routing_put_voice_mixer),
  10094. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10096. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10097. msm_routing_put_voice_mixer),
  10098. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10100. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10101. msm_routing_put_voice_mixer),
  10102. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10104. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10105. msm_routing_put_voice_mixer),
  10106. };
  10107. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10108. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10110. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10111. msm_routing_put_voice_mixer),
  10112. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10114. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10115. msm_routing_put_voice_mixer),
  10116. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10118. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10119. msm_routing_put_voice_mixer),
  10120. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10122. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10123. msm_routing_put_voice_mixer),
  10124. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10126. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10127. msm_routing_put_voice_mixer),
  10128. };
  10129. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10130. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10132. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10133. msm_routing_put_voice_mixer),
  10134. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10136. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10137. msm_routing_put_voice_mixer),
  10138. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10140. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10141. msm_routing_put_voice_mixer),
  10142. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10144. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10145. msm_routing_put_voice_mixer),
  10146. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10148. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10149. msm_routing_put_voice_mixer),
  10150. };
  10151. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10152. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_AFE_PCM_RX,
  10154. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10155. msm_routing_put_voice_mixer),
  10156. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_AFE_PCM_RX,
  10158. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10159. msm_routing_put_voice_mixer),
  10160. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_AFE_PCM_RX,
  10162. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10163. msm_routing_put_voice_mixer),
  10164. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_AFE_PCM_RX,
  10166. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10167. msm_routing_put_voice_mixer),
  10168. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_AFE_PCM_RX,
  10170. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10171. msm_routing_put_voice_mixer),
  10172. };
  10173. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10174. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_AUXPCM_RX,
  10176. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10177. msm_routing_put_voice_mixer),
  10178. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_AUXPCM_RX,
  10180. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10181. msm_routing_put_voice_mixer),
  10182. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_AUXPCM_RX,
  10184. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10185. msm_routing_put_voice_mixer),
  10186. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_AUXPCM_RX,
  10188. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10189. msm_routing_put_voice_mixer),
  10190. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_AUXPCM_RX,
  10192. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10193. msm_routing_put_voice_mixer),
  10194. };
  10195. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10196. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10198. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10199. msm_routing_put_voice_mixer),
  10200. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10202. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10203. msm_routing_put_voice_mixer),
  10204. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10206. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10207. msm_routing_put_voice_mixer),
  10208. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10209. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10210. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10211. msm_routing_put_voice_mixer),
  10212. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10214. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10215. msm_routing_put_voice_mixer),
  10216. };
  10217. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10218. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10220. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10221. msm_routing_put_voice_mixer),
  10222. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10224. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10225. msm_routing_put_voice_mixer),
  10226. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10228. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10229. msm_routing_put_voice_mixer),
  10230. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10232. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10233. msm_routing_put_voice_mixer),
  10234. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10236. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10237. msm_routing_put_voice_mixer),
  10238. };
  10239. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10240. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10243. msm_routing_put_voice_mixer),
  10244. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10247. msm_routing_put_voice_mixer),
  10248. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10251. msm_routing_put_voice_mixer),
  10252. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10254. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10255. msm_routing_put_voice_mixer),
  10256. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10258. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10259. msm_routing_put_voice_mixer),
  10260. };
  10261. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10262. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10265. msm_routing_put_voice_mixer),
  10266. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10268. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10269. msm_routing_put_voice_mixer),
  10270. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10273. msm_routing_put_voice_mixer),
  10274. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10276. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10277. msm_routing_put_voice_mixer),
  10278. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10280. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10281. msm_routing_put_voice_mixer),
  10282. };
  10283. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10284. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_HDMI_RX,
  10286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10287. msm_routing_put_voice_mixer),
  10288. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_HDMI_RX,
  10290. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10291. msm_routing_put_voice_mixer),
  10292. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_HDMI_RX,
  10294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10295. msm_routing_put_voice_mixer),
  10296. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_HDMI_RX,
  10298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10299. msm_routing_put_voice_mixer),
  10300. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_HDMI_RX,
  10302. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10303. msm_routing_put_voice_mixer),
  10304. };
  10305. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10306. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10309. msm_routing_put_voice_mixer),
  10310. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10312. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10313. msm_routing_put_voice_mixer),
  10314. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10317. msm_routing_put_voice_mixer),
  10318. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10320. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10321. msm_routing_put_voice_mixer),
  10322. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10324. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10325. msm_routing_put_voice_mixer),
  10326. };
  10327. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10328. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10331. msm_routing_put_voice_mixer),
  10332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10335. msm_routing_put_voice_mixer),
  10336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10339. msm_routing_put_voice_mixer),
  10340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10343. msm_routing_put_voice_mixer),
  10344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10347. msm_routing_put_voice_mixer),
  10348. };
  10349. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10350. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10352. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10353. msm_routing_put_voice_mixer),
  10354. };
  10355. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10356. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10358. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10359. msm_routing_put_voice_mixer),
  10360. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10362. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10363. msm_routing_put_voice_mixer),
  10364. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10366. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10367. msm_routing_put_voice_mixer),
  10368. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10370. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10371. msm_routing_put_voice_mixer),
  10372. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10374. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10375. msm_routing_put_voice_mixer),
  10376. };
  10377. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10378. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10380. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10381. msm_routing_put_voice_mixer),
  10382. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10384. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10385. msm_routing_put_voice_mixer),
  10386. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10388. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10389. msm_routing_put_voice_mixer),
  10390. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10392. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10393. msm_routing_put_voice_mixer),
  10394. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10396. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10397. msm_routing_put_voice_mixer),
  10398. };
  10399. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10400. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_EXTPROC_RX,
  10402. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10403. msm_routing_put_voice_mixer),
  10404. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_EXTPROC_RX,
  10406. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10407. msm_routing_put_voice_mixer),
  10408. };
  10409. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10410. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10412. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10413. msm_routing_put_voice_mixer),
  10414. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10416. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10417. msm_routing_put_voice_mixer),
  10418. };
  10419. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10420. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10422. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10423. msm_routing_put_voice_mixer),
  10424. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10426. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10427. msm_routing_put_voice_mixer),
  10428. };
  10429. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10430. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_PRI_I2S_TX,
  10432. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10433. msm_routing_put_voice_mixer),
  10434. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_MI2S_TX,
  10436. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10437. msm_routing_put_voice_mixer),
  10438. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10440. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10441. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10443. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10444. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10446. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10447. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10449. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10450. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10452. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10453. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10455. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10456. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10458. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10459. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10461. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10462. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10464. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10465. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10467. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10468. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10470. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10471. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10473. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10474. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10476. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10477. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_USB_TX,
  10479. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10480. msm_routing_put_voice_mixer),
  10481. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10483. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10484. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10486. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10489. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10490. };
  10491. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10492. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_PRI_I2S_TX,
  10494. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10495. msm_routing_put_voice_mixer),
  10496. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_MI2S_TX,
  10498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10499. msm_routing_put_voice_mixer),
  10500. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10502. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10503. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10505. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10506. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10508. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10509. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10511. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10512. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10514. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10515. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10517. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10518. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10520. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10523. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10524. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10526. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10527. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10529. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10530. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10532. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10533. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10535. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10536. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10538. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10539. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10541. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10548. };
  10549. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10550. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_PRI_I2S_TX,
  10552. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10553. msm_routing_put_voice_mixer),
  10554. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_MI2S_TX,
  10556. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10557. msm_routing_put_voice_mixer),
  10558. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10560. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10561. msm_routing_put_voice_mixer),
  10562. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10565. msm_routing_put_voice_mixer),
  10566. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_AFE_PCM_TX,
  10568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10569. msm_routing_put_voice_mixer),
  10570. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_AUXPCM_TX,
  10572. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10573. msm_routing_put_voice_mixer),
  10574. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10576. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10577. msm_routing_put_voice_mixer),
  10578. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10581. msm_routing_put_voice_mixer),
  10582. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10585. msm_routing_put_voice_mixer),
  10586. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10588. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10589. msm_routing_put_voice_mixer),
  10590. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10593. msm_routing_put_voice_mixer),
  10594. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10597. msm_routing_put_voice_mixer),
  10598. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10601. msm_routing_put_voice_mixer),
  10602. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10605. msm_routing_put_voice_mixer),
  10606. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10609. msm_routing_put_voice_mixer),
  10610. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_USB_TX,
  10612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10613. msm_routing_put_voice_mixer),
  10614. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10616. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10617. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10619. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10620. };
  10621. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10622. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_EXTPROC_TX,
  10624. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10625. msm_routing_put_voice_stub_mixer),
  10626. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10628. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10629. msm_routing_put_voice_stub_mixer),
  10630. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10632. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10633. msm_routing_put_voice_stub_mixer),
  10634. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10636. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10637. msm_routing_put_voice_stub_mixer),
  10638. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_MI2S_TX,
  10640. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10641. msm_routing_put_voice_stub_mixer),
  10642. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10644. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10645. msm_routing_put_voice_stub_mixer),
  10646. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10648. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10649. msm_routing_put_voice_stub_mixer),
  10650. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10652. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10653. msm_routing_put_voice_stub_mixer),
  10654. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10656. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10657. msm_routing_put_voice_stub_mixer),
  10658. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_AUXPCM_TX,
  10660. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10661. msm_routing_put_voice_stub_mixer),
  10662. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10664. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10665. msm_routing_put_voice_stub_mixer),
  10666. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10668. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10669. msm_routing_put_voice_stub_mixer),
  10670. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10672. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10673. msm_routing_put_voice_stub_mixer),
  10674. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10676. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10677. msm_routing_put_voice_stub_mixer),
  10678. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10680. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10681. msm_routing_put_voice_stub_mixer),
  10682. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10684. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10685. msm_routing_put_voice_stub_mixer),
  10686. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_AFE_PCM_TX,
  10688. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10689. msm_routing_put_voice_stub_mixer),
  10690. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10692. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10693. msm_routing_put_voice_stub_mixer),
  10694. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10696. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10697. msm_routing_put_voice_stub_mixer),
  10698. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10700. 1, 0, msm_routing_get_voice_stub_mixer,
  10701. msm_routing_put_voice_stub_mixer),
  10702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10704. 1, 0, msm_routing_get_voice_stub_mixer,
  10705. msm_routing_put_voice_stub_mixer),
  10706. };
  10707. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10708. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_EXTPROC_TX,
  10710. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10711. msm_routing_put_voice_stub_mixer),
  10712. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10713. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10714. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10715. msm_routing_put_voice_stub_mixer),
  10716. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10717. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10718. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10719. msm_routing_put_voice_stub_mixer),
  10720. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10721. MSM_BACKEND_DAI_AUXPCM_TX,
  10722. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10723. msm_routing_put_voice_stub_mixer),
  10724. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10726. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10727. msm_routing_put_voice_stub_mixer),
  10728. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10730. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10731. msm_routing_put_voice_stub_mixer),
  10732. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10733. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10734. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10735. msm_routing_put_voice_stub_mixer),
  10736. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10737. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10738. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10739. msm_routing_put_voice_stub_mixer),
  10740. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10741. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10742. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10743. msm_routing_put_voice_stub_mixer),
  10744. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10746. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10747. msm_routing_put_voice_stub_mixer),
  10748. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_AFE_PCM_TX,
  10750. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10751. msm_routing_put_voice_stub_mixer),
  10752. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10754. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10755. msm_routing_put_voice_stub_mixer),
  10756. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10758. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10759. msm_routing_put_voice_stub_mixer),
  10760. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10762. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10763. msm_routing_put_voice_stub_mixer),
  10764. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10766. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10767. msm_routing_put_voice_stub_mixer),
  10768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10770. 1, 0, msm_routing_get_voice_stub_mixer,
  10771. msm_routing_put_voice_stub_mixer),
  10772. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10774. 1, 0, msm_routing_get_voice_stub_mixer,
  10775. msm_routing_put_voice_stub_mixer),
  10776. };
  10777. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10778. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_EXTPROC_TX,
  10780. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10781. msm_routing_put_voice_stub_mixer),
  10782. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10784. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10785. msm_routing_put_voice_stub_mixer),
  10786. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10788. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10789. msm_routing_put_voice_stub_mixer),
  10790. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_AUXPCM_TX,
  10792. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10793. msm_routing_put_voice_stub_mixer),
  10794. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10796. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10797. msm_routing_put_voice_stub_mixer),
  10798. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10800. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10801. msm_routing_put_voice_stub_mixer),
  10802. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10804. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10805. msm_routing_put_voice_stub_mixer),
  10806. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10808. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10809. msm_routing_put_voice_stub_mixer),
  10810. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10812. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10813. msm_routing_put_voice_stub_mixer),
  10814. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10816. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10817. msm_routing_put_voice_stub_mixer),
  10818. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_AFE_PCM_TX,
  10820. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10821. msm_routing_put_voice_stub_mixer),
  10822. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10824. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10825. msm_routing_put_voice_stub_mixer),
  10826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10828. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10829. msm_routing_put_voice_stub_mixer),
  10830. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10832. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10833. msm_routing_put_voice_stub_mixer),
  10834. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10836. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10837. msm_routing_put_voice_stub_mixer),
  10838. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10840. 1, 0, msm_routing_get_voice_stub_mixer,
  10841. msm_routing_put_voice_stub_mixer),
  10842. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10844. 1, 0, msm_routing_get_voice_stub_mixer,
  10845. msm_routing_put_voice_stub_mixer),
  10846. };
  10847. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10848. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_PRI_I2S_TX,
  10850. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10851. msm_routing_put_voice_mixer),
  10852. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10855. msm_routing_put_voice_mixer),
  10856. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10858. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10859. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10860. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_AFE_PCM_TX,
  10862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10863. msm_routing_put_voice_mixer),
  10864. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10865. MSM_BACKEND_DAI_AUXPCM_TX,
  10866. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10867. msm_routing_put_voice_mixer),
  10868. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10870. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10871. msm_routing_put_voice_mixer),
  10872. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10873. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10874. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10875. msm_routing_put_voice_mixer),
  10876. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10878. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10879. msm_routing_put_voice_mixer),
  10880. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10881. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10883. msm_routing_put_voice_mixer),
  10884. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10885. MSM_BACKEND_DAI_MI2S_TX,
  10886. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10887. msm_routing_put_voice_mixer),
  10888. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10889. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10890. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10891. msm_routing_put_voice_mixer),
  10892. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10893. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10894. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10895. msm_routing_put_voice_mixer),
  10896. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10899. msm_routing_put_voice_mixer),
  10900. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10902. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10903. msm_routing_put_voice_mixer),
  10904. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10907. msm_routing_put_voice_mixer),
  10908. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_USB_TX,
  10910. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10911. msm_routing_put_voice_mixer),
  10912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10918. };
  10919. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10920. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10921. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10922. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10923. msm_routing_put_port_mixer),
  10924. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10925. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10926. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10927. msm_routing_put_port_mixer),
  10928. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10930. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10931. msm_routing_put_port_mixer),
  10932. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10934. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10935. msm_routing_put_port_mixer),
  10936. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10938. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10939. msm_routing_put_port_mixer),
  10940. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10942. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10943. msm_routing_put_port_mixer),
  10944. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10946. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10947. msm_routing_put_port_mixer),
  10948. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10951. msm_routing_put_port_mixer),
  10952. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10954. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10955. msm_routing_put_port_mixer),
  10956. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10958. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10959. msm_routing_put_port_mixer),
  10960. };
  10961. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10962. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10963. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10964. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10965. msm_routing_put_port_mixer),
  10966. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10968. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10969. msm_routing_put_port_mixer),
  10970. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10972. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10973. msm_routing_put_port_mixer),
  10974. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10976. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10977. msm_routing_put_port_mixer),
  10978. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10980. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10981. msm_routing_put_port_mixer),
  10982. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10983. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10984. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10985. msm_routing_put_port_mixer),
  10986. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10987. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10988. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10989. msm_routing_put_port_mixer),
  10990. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10992. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10993. msm_routing_put_port_mixer),
  10994. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10996. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10997. msm_routing_put_port_mixer),
  10998. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11000. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11001. msm_routing_put_port_mixer),
  11002. };
  11003. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  11004. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11006. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11007. msm_routing_put_port_mixer),
  11008. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11010. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11011. msm_routing_put_port_mixer),
  11012. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11014. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11015. msm_routing_put_port_mixer),
  11016. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11018. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11019. msm_routing_put_port_mixer),
  11020. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11022. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11023. msm_routing_put_port_mixer),
  11024. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11026. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11027. msm_routing_put_port_mixer),
  11028. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11030. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11031. msm_routing_put_port_mixer),
  11032. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11034. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11035. msm_routing_put_port_mixer),
  11036. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11038. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11039. msm_routing_put_port_mixer),
  11040. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11042. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11043. msm_routing_put_port_mixer),
  11044. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11045. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11046. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11047. msm_routing_put_port_mixer),
  11048. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11050. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11051. msm_routing_put_port_mixer),
  11052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11054. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11055. msm_routing_put_port_mixer),
  11056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11058. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11059. msm_routing_put_port_mixer),
  11060. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11063. msm_routing_put_port_mixer),
  11064. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11066. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11067. msm_routing_put_port_mixer),
  11068. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11071. msm_routing_put_port_mixer),
  11072. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11074. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11075. msm_routing_put_port_mixer),
  11076. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11078. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11079. msm_routing_put_port_mixer),
  11080. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11082. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11083. msm_routing_put_port_mixer),
  11084. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11086. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11087. msm_routing_put_port_mixer),
  11088. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11090. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11091. msm_routing_put_port_mixer),
  11092. };
  11093. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11094. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_AUXPCM_RX,
  11096. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11097. msm_routing_put_port_mixer),
  11098. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_AUXPCM_RX,
  11100. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11101. msm_routing_put_port_mixer),
  11102. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_AUXPCM_RX,
  11104. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11105. msm_routing_put_port_mixer),
  11106. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_AUXPCM_RX,
  11108. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11109. msm_routing_put_port_mixer),
  11110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_AUXPCM_RX,
  11112. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11113. msm_routing_put_port_mixer),
  11114. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_AUXPCM_RX,
  11116. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11117. msm_routing_put_port_mixer),
  11118. };
  11119. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11120. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11122. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11123. msm_routing_put_port_mixer),
  11124. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11126. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11127. msm_routing_put_port_mixer),
  11128. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11130. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11131. msm_routing_put_port_mixer),
  11132. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11134. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11135. msm_routing_put_port_mixer),
  11136. };
  11137. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11138. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11140. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11141. msm_routing_put_port_mixer),
  11142. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11144. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11145. msm_routing_put_port_mixer),
  11146. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11148. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11149. msm_routing_put_port_mixer),
  11150. };
  11151. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11152. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11154. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11155. msm_routing_put_port_mixer),
  11156. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11158. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11159. msm_routing_put_port_mixer),
  11160. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11162. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11163. msm_routing_put_port_mixer),
  11164. };
  11165. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11166. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11168. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11169. msm_routing_put_port_mixer),
  11170. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11172. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11173. msm_routing_put_port_mixer),
  11174. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11176. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11177. msm_routing_put_port_mixer),
  11178. };
  11179. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11180. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11182. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11183. msm_routing_put_port_mixer),
  11184. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11186. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11187. msm_routing_put_port_mixer),
  11188. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11190. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11191. msm_routing_put_port_mixer),
  11192. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11194. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11195. msm_routing_put_port_mixer),
  11196. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11198. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11199. msm_routing_put_port_mixer),
  11200. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11201. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11202. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11203. msm_routing_put_port_mixer),
  11204. };
  11205. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11206. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11208. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11209. msm_routing_put_port_mixer),
  11210. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11212. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11213. msm_routing_put_port_mixer),
  11214. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11216. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11217. msm_routing_put_port_mixer),
  11218. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11220. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11221. msm_routing_put_port_mixer),
  11222. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11224. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11225. msm_routing_put_port_mixer),
  11226. };
  11227. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11231. msm_routing_put_port_mixer),
  11232. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11234. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11235. msm_routing_put_port_mixer),
  11236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11238. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11239. msm_routing_put_port_mixer),
  11240. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11242. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11243. msm_routing_put_port_mixer),
  11244. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11246. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11247. msm_routing_put_port_mixer),
  11248. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11250. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11251. msm_routing_put_port_mixer),
  11252. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11254. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11255. msm_routing_put_port_mixer),
  11256. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11258. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11259. msm_routing_put_port_mixer),
  11260. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11262. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11263. msm_routing_put_port_mixer),
  11264. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11266. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11267. msm_routing_put_port_mixer),
  11268. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11270. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11271. msm_routing_put_port_mixer),
  11272. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11274. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11275. msm_routing_put_port_mixer),
  11276. };
  11277. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11278. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11280. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11281. msm_routing_put_port_mixer),
  11282. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11284. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11285. msm_routing_put_port_mixer),
  11286. };
  11287. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11288. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_AFE_PCM_RX,
  11290. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11291. msm_routing_put_port_mixer),
  11292. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_AFE_PCM_RX,
  11294. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11295. msm_routing_put_port_mixer),
  11296. };
  11297. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11298. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_HDMI_RX,
  11300. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11301. msm_routing_put_port_mixer),
  11302. };
  11303. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11304. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11306. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11307. msm_routing_put_port_mixer),
  11308. };
  11309. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11310. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11311. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11312. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11313. msm_routing_put_port_mixer),
  11314. };
  11315. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11316. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_I2S_RX,
  11318. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11319. msm_routing_put_port_mixer),
  11320. };
  11321. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11322. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_MI2S_RX,
  11324. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11325. msm_routing_put_port_mixer),
  11326. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_MI2S_RX,
  11328. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11329. msm_routing_put_port_mixer),
  11330. };
  11331. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11332. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11334. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11335. msm_routing_put_port_mixer),
  11336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11339. msm_routing_put_port_mixer),
  11340. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11342. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11343. msm_routing_put_port_mixer),
  11344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11346. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11347. msm_routing_put_port_mixer),
  11348. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11350. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11351. msm_routing_put_port_mixer),
  11352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11355. msm_routing_put_port_mixer),
  11356. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11358. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11359. msm_routing_put_port_mixer),
  11360. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11362. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11363. msm_routing_put_port_mixer),
  11364. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11366. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11367. msm_routing_put_port_mixer),
  11368. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11370. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11371. msm_routing_put_port_mixer),
  11372. };
  11373. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11374. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_USB_RX,
  11376. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11377. msm_routing_put_port_mixer),
  11378. };
  11379. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11380. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11382. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11383. msm_routing_put_port_mixer),
  11384. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11386. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11387. msm_routing_put_port_mixer),
  11388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11391. msm_routing_put_port_mixer),
  11392. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11394. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11395. msm_routing_put_port_mixer),
  11396. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11398. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11399. msm_routing_put_port_mixer),
  11400. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11402. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11403. msm_routing_put_port_mixer),
  11404. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11407. msm_routing_put_port_mixer),
  11408. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11410. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11411. msm_routing_put_port_mixer),
  11412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11414. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11415. msm_routing_put_port_mixer),
  11416. };
  11417. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11418. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11420. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11421. msm_routing_put_port_mixer),
  11422. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11424. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11425. msm_routing_put_port_mixer),
  11426. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11428. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11429. msm_routing_put_port_mixer),
  11430. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11432. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11433. msm_routing_put_port_mixer),
  11434. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11436. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11437. msm_routing_put_port_mixer),
  11438. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11440. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11441. msm_routing_put_port_mixer),
  11442. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11444. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11445. msm_routing_put_port_mixer),
  11446. };
  11447. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11448. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11450. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11451. msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11455. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11456. msm_routing_get_port_mixer,
  11457. msm_routing_put_port_mixer),
  11458. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11460. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11461. msm_routing_get_port_mixer,
  11462. msm_routing_put_port_mixer),
  11463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11465. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11466. msm_routing_get_port_mixer,
  11467. msm_routing_put_port_mixer),
  11468. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11470. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11471. msm_routing_get_port_mixer,
  11472. msm_routing_put_port_mixer),
  11473. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11475. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11476. msm_routing_get_port_mixer,
  11477. msm_routing_put_port_mixer),
  11478. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11480. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11481. msm_routing_get_port_mixer,
  11482. msm_routing_put_port_mixer),
  11483. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11485. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11486. msm_routing_get_port_mixer,
  11487. msm_routing_put_port_mixer),
  11488. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11490. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11491. msm_routing_get_port_mixer,
  11492. msm_routing_put_port_mixer),
  11493. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11495. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11496. msm_routing_get_port_mixer,
  11497. msm_routing_put_port_mixer),
  11498. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11501. msm_routing_get_port_mixer,
  11502. msm_routing_put_port_mixer),
  11503. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11505. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11506. msm_routing_get_port_mixer,
  11507. msm_routing_put_port_mixer),
  11508. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11510. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11511. msm_routing_get_port_mixer,
  11512. msm_routing_put_port_mixer),
  11513. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11515. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11516. msm_routing_get_port_mixer,
  11517. msm_routing_put_port_mixer),
  11518. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11520. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11521. msm_routing_get_port_mixer,
  11522. msm_routing_put_port_mixer),
  11523. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11525. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11526. msm_routing_get_port_mixer,
  11527. msm_routing_put_port_mixer),
  11528. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11530. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11531. msm_routing_get_port_mixer,
  11532. msm_routing_put_port_mixer),
  11533. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11535. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11536. msm_routing_get_port_mixer,
  11537. msm_routing_put_port_mixer),
  11538. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11541. msm_routing_get_port_mixer,
  11542. msm_routing_put_port_mixer),
  11543. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11545. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11546. msm_routing_get_port_mixer,
  11547. msm_routing_put_port_mixer),
  11548. };
  11549. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11550. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11552. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11553. msm_routing_get_port_mixer,
  11554. msm_routing_put_port_mixer),
  11555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11557. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11558. msm_routing_get_port_mixer,
  11559. msm_routing_put_port_mixer),
  11560. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11562. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11563. msm_routing_get_port_mixer,
  11564. msm_routing_put_port_mixer),
  11565. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11567. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11568. msm_routing_get_port_mixer,
  11569. msm_routing_put_port_mixer),
  11570. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11572. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11573. msm_routing_get_port_mixer,
  11574. msm_routing_put_port_mixer),
  11575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11577. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11578. msm_routing_get_port_mixer,
  11579. msm_routing_put_port_mixer),
  11580. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11582. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11583. msm_routing_get_port_mixer,
  11584. msm_routing_put_port_mixer),
  11585. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11587. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11588. msm_routing_get_port_mixer,
  11589. msm_routing_put_port_mixer),
  11590. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11592. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11593. msm_routing_get_port_mixer,
  11594. msm_routing_put_port_mixer),
  11595. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11597. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11598. msm_routing_get_port_mixer,
  11599. msm_routing_put_port_mixer),
  11600. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11602. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11603. msm_routing_get_port_mixer,
  11604. msm_routing_put_port_mixer),
  11605. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11607. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11608. msm_routing_get_port_mixer,
  11609. msm_routing_put_port_mixer),
  11610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11611. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11612. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11613. msm_routing_get_port_mixer,
  11614. msm_routing_put_port_mixer),
  11615. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11617. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11618. msm_routing_get_port_mixer,
  11619. msm_routing_put_port_mixer),
  11620. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11623. msm_routing_get_port_mixer,
  11624. msm_routing_put_port_mixer),
  11625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11627. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11628. msm_routing_get_port_mixer,
  11629. msm_routing_put_port_mixer),
  11630. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11632. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11633. msm_routing_get_port_mixer,
  11634. msm_routing_put_port_mixer),
  11635. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11637. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11638. msm_routing_get_port_mixer,
  11639. msm_routing_put_port_mixer),
  11640. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11643. msm_routing_get_port_mixer,
  11644. msm_routing_put_port_mixer),
  11645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11647. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11648. msm_routing_get_port_mixer,
  11649. msm_routing_put_port_mixer),
  11650. };
  11651. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11652. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11654. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11655. msm_routing_get_port_mixer,
  11656. msm_routing_put_port_mixer),
  11657. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11659. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11660. msm_routing_get_port_mixer,
  11661. msm_routing_put_port_mixer),
  11662. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11664. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11665. msm_routing_get_port_mixer,
  11666. msm_routing_put_port_mixer),
  11667. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11669. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11670. msm_routing_get_port_mixer,
  11671. msm_routing_put_port_mixer),
  11672. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11674. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11675. msm_routing_get_port_mixer,
  11676. msm_routing_put_port_mixer),
  11677. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11679. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11680. msm_routing_get_port_mixer,
  11681. msm_routing_put_port_mixer),
  11682. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11684. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11685. msm_routing_get_port_mixer,
  11686. msm_routing_put_port_mixer),
  11687. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11689. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11690. msm_routing_get_port_mixer,
  11691. msm_routing_put_port_mixer),
  11692. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11694. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11695. msm_routing_get_port_mixer,
  11696. msm_routing_put_port_mixer),
  11697. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11699. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11700. msm_routing_get_port_mixer,
  11701. msm_routing_put_port_mixer),
  11702. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11704. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11705. msm_routing_get_port_mixer,
  11706. msm_routing_put_port_mixer),
  11707. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11709. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11710. msm_routing_get_port_mixer,
  11711. msm_routing_put_port_mixer),
  11712. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11714. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11715. msm_routing_get_port_mixer,
  11716. msm_routing_put_port_mixer),
  11717. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11719. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11720. msm_routing_get_port_mixer,
  11721. msm_routing_put_port_mixer),
  11722. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11724. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11725. msm_routing_get_port_mixer,
  11726. msm_routing_put_port_mixer),
  11727. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11729. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11730. msm_routing_get_port_mixer,
  11731. msm_routing_put_port_mixer),
  11732. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11734. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11735. msm_routing_get_port_mixer,
  11736. msm_routing_put_port_mixer),
  11737. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11739. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11740. msm_routing_get_port_mixer,
  11741. msm_routing_put_port_mixer),
  11742. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11744. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11745. msm_routing_get_port_mixer,
  11746. msm_routing_put_port_mixer),
  11747. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11749. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11750. msm_routing_get_port_mixer,
  11751. msm_routing_put_port_mixer),
  11752. };
  11753. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11754. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11756. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11757. msm_routing_get_port_mixer,
  11758. msm_routing_put_port_mixer),
  11759. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11761. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11762. msm_routing_get_port_mixer,
  11763. msm_routing_put_port_mixer),
  11764. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11766. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11767. msm_routing_get_port_mixer,
  11768. msm_routing_put_port_mixer),
  11769. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11771. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11772. msm_routing_get_port_mixer,
  11773. msm_routing_put_port_mixer),
  11774. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11776. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11777. msm_routing_get_port_mixer,
  11778. msm_routing_put_port_mixer),
  11779. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11781. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11782. msm_routing_get_port_mixer,
  11783. msm_routing_put_port_mixer),
  11784. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11786. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11787. msm_routing_get_port_mixer,
  11788. msm_routing_put_port_mixer),
  11789. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11791. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11792. msm_routing_get_port_mixer,
  11793. msm_routing_put_port_mixer),
  11794. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11796. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11797. msm_routing_get_port_mixer,
  11798. msm_routing_put_port_mixer),
  11799. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11801. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11802. msm_routing_get_port_mixer,
  11803. msm_routing_put_port_mixer),
  11804. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11806. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11807. msm_routing_get_port_mixer,
  11808. msm_routing_put_port_mixer),
  11809. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11811. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11812. msm_routing_get_port_mixer,
  11813. msm_routing_put_port_mixer),
  11814. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11816. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11817. msm_routing_get_port_mixer,
  11818. msm_routing_put_port_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11821. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11822. msm_routing_get_port_mixer,
  11823. msm_routing_put_port_mixer),
  11824. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11826. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11827. msm_routing_get_port_mixer,
  11828. msm_routing_put_port_mixer),
  11829. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11831. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11832. msm_routing_get_port_mixer,
  11833. msm_routing_put_port_mixer),
  11834. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11836. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11837. msm_routing_get_port_mixer,
  11838. msm_routing_put_port_mixer),
  11839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11841. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11842. msm_routing_get_port_mixer,
  11843. msm_routing_put_port_mixer),
  11844. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11846. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11847. msm_routing_get_port_mixer,
  11848. msm_routing_put_port_mixer),
  11849. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11851. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11852. msm_routing_get_port_mixer,
  11853. msm_routing_put_port_mixer),
  11854. };
  11855. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11856. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11858. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11859. msm_routing_get_port_mixer,
  11860. msm_routing_put_port_mixer),
  11861. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11863. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11864. msm_routing_get_port_mixer,
  11865. msm_routing_put_port_mixer),
  11866. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11868. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11869. msm_routing_get_port_mixer,
  11870. msm_routing_put_port_mixer),
  11871. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11873. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11874. msm_routing_get_port_mixer,
  11875. msm_routing_put_port_mixer),
  11876. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11878. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11879. msm_routing_get_port_mixer,
  11880. msm_routing_put_port_mixer),
  11881. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11883. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11884. msm_routing_get_port_mixer,
  11885. msm_routing_put_port_mixer),
  11886. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11888. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11889. msm_routing_get_port_mixer,
  11890. msm_routing_put_port_mixer),
  11891. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11893. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11894. msm_routing_get_port_mixer,
  11895. msm_routing_put_port_mixer),
  11896. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11898. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11899. msm_routing_get_port_mixer,
  11900. msm_routing_put_port_mixer),
  11901. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11903. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11904. msm_routing_get_port_mixer,
  11905. msm_routing_put_port_mixer),
  11906. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11908. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11909. msm_routing_get_port_mixer,
  11910. msm_routing_put_port_mixer),
  11911. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11913. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11914. msm_routing_get_port_mixer,
  11915. msm_routing_put_port_mixer),
  11916. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11918. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11919. msm_routing_get_port_mixer,
  11920. msm_routing_put_port_mixer),
  11921. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11923. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11924. msm_routing_get_port_mixer,
  11925. msm_routing_put_port_mixer),
  11926. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11928. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11929. msm_routing_get_port_mixer,
  11930. msm_routing_put_port_mixer),
  11931. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11933. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11934. msm_routing_get_port_mixer,
  11935. msm_routing_put_port_mixer),
  11936. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11938. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11939. msm_routing_get_port_mixer,
  11940. msm_routing_put_port_mixer),
  11941. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11943. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11944. msm_routing_get_port_mixer,
  11945. msm_routing_put_port_mixer),
  11946. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11948. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11949. msm_routing_get_port_mixer,
  11950. msm_routing_put_port_mixer),
  11951. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11953. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11954. msm_routing_get_port_mixer,
  11955. msm_routing_put_port_mixer),
  11956. };
  11957. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11958. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11960. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11961. msm_routing_get_port_mixer,
  11962. msm_routing_put_port_mixer),
  11963. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11965. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11966. msm_routing_get_port_mixer,
  11967. msm_routing_put_port_mixer),
  11968. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11970. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11971. msm_routing_get_port_mixer,
  11972. msm_routing_put_port_mixer),
  11973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11975. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11976. msm_routing_get_port_mixer,
  11977. msm_routing_put_port_mixer),
  11978. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11980. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11981. msm_routing_get_port_mixer,
  11982. msm_routing_put_port_mixer),
  11983. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11985. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11986. msm_routing_get_port_mixer,
  11987. msm_routing_put_port_mixer),
  11988. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11990. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11991. msm_routing_get_port_mixer,
  11992. msm_routing_put_port_mixer),
  11993. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11995. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11996. msm_routing_get_port_mixer,
  11997. msm_routing_put_port_mixer),
  11998. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12000. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12001. msm_routing_get_port_mixer,
  12002. msm_routing_put_port_mixer),
  12003. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12005. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12006. msm_routing_get_port_mixer,
  12007. msm_routing_put_port_mixer),
  12008. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12010. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12011. msm_routing_get_port_mixer,
  12012. msm_routing_put_port_mixer),
  12013. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12015. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12016. msm_routing_get_port_mixer,
  12017. msm_routing_put_port_mixer),
  12018. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12020. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12021. msm_routing_get_port_mixer,
  12022. msm_routing_put_port_mixer),
  12023. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12025. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12026. msm_routing_get_port_mixer,
  12027. msm_routing_put_port_mixer),
  12028. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12030. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12031. msm_routing_get_port_mixer,
  12032. msm_routing_put_port_mixer),
  12033. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12035. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12036. msm_routing_get_port_mixer,
  12037. msm_routing_put_port_mixer),
  12038. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12040. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12041. msm_routing_get_port_mixer,
  12042. msm_routing_put_port_mixer),
  12043. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12045. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12046. msm_routing_get_port_mixer,
  12047. msm_routing_put_port_mixer),
  12048. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12050. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12051. msm_routing_get_port_mixer,
  12052. msm_routing_put_port_mixer),
  12053. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12055. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12056. msm_routing_get_port_mixer,
  12057. msm_routing_put_port_mixer),
  12058. };
  12059. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12060. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12062. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12063. msm_routing_get_port_mixer,
  12064. msm_routing_put_port_mixer),
  12065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12068. msm_routing_get_port_mixer,
  12069. msm_routing_put_port_mixer),
  12070. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12072. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12073. msm_routing_get_port_mixer,
  12074. msm_routing_put_port_mixer),
  12075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12077. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12078. msm_routing_get_port_mixer,
  12079. msm_routing_put_port_mixer),
  12080. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12082. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12083. msm_routing_get_port_mixer,
  12084. msm_routing_put_port_mixer),
  12085. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12087. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12088. msm_routing_get_port_mixer,
  12089. msm_routing_put_port_mixer),
  12090. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12093. msm_routing_get_port_mixer,
  12094. msm_routing_put_port_mixer),
  12095. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12097. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12098. msm_routing_get_port_mixer,
  12099. msm_routing_put_port_mixer),
  12100. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12102. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12103. msm_routing_get_port_mixer,
  12104. msm_routing_put_port_mixer),
  12105. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12107. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12108. msm_routing_get_port_mixer,
  12109. msm_routing_put_port_mixer),
  12110. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12112. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12113. msm_routing_get_port_mixer,
  12114. msm_routing_put_port_mixer),
  12115. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12117. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12118. msm_routing_get_port_mixer,
  12119. msm_routing_put_port_mixer),
  12120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12122. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12123. msm_routing_get_port_mixer,
  12124. msm_routing_put_port_mixer),
  12125. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12127. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12128. msm_routing_get_port_mixer,
  12129. msm_routing_put_port_mixer),
  12130. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12132. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12133. msm_routing_get_port_mixer,
  12134. msm_routing_put_port_mixer),
  12135. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12137. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12138. msm_routing_get_port_mixer,
  12139. msm_routing_put_port_mixer),
  12140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12142. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12143. msm_routing_get_port_mixer,
  12144. msm_routing_put_port_mixer),
  12145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12147. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12148. msm_routing_get_port_mixer,
  12149. msm_routing_put_port_mixer),
  12150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12152. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12153. msm_routing_get_port_mixer,
  12154. msm_routing_put_port_mixer),
  12155. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12157. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12158. msm_routing_get_port_mixer,
  12159. msm_routing_put_port_mixer),
  12160. };
  12161. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12162. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12165. msm_routing_get_port_mixer,
  12166. msm_routing_put_port_mixer),
  12167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12169. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12170. msm_routing_get_port_mixer,
  12171. msm_routing_put_port_mixer),
  12172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12174. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12175. msm_routing_get_port_mixer,
  12176. msm_routing_put_port_mixer),
  12177. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12179. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12180. msm_routing_get_port_mixer,
  12181. msm_routing_put_port_mixer),
  12182. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12184. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12185. msm_routing_get_port_mixer,
  12186. msm_routing_put_port_mixer),
  12187. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12189. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12190. msm_routing_get_port_mixer,
  12191. msm_routing_put_port_mixer),
  12192. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12194. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12195. msm_routing_get_port_mixer,
  12196. msm_routing_put_port_mixer),
  12197. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12199. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12200. msm_routing_get_port_mixer,
  12201. msm_routing_put_port_mixer),
  12202. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12204. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12205. msm_routing_get_port_mixer,
  12206. msm_routing_put_port_mixer),
  12207. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12209. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12210. msm_routing_get_port_mixer,
  12211. msm_routing_put_port_mixer),
  12212. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12214. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12215. msm_routing_get_port_mixer,
  12216. msm_routing_put_port_mixer),
  12217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12219. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12220. msm_routing_get_port_mixer,
  12221. msm_routing_put_port_mixer),
  12222. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12224. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12225. msm_routing_get_port_mixer,
  12226. msm_routing_put_port_mixer),
  12227. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12229. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12230. msm_routing_get_port_mixer,
  12231. msm_routing_put_port_mixer),
  12232. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12234. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12235. msm_routing_get_port_mixer,
  12236. msm_routing_put_port_mixer),
  12237. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12239. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12240. msm_routing_get_port_mixer,
  12241. msm_routing_put_port_mixer),
  12242. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12244. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12245. msm_routing_get_port_mixer,
  12246. msm_routing_put_port_mixer),
  12247. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12249. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12250. msm_routing_get_port_mixer,
  12251. msm_routing_put_port_mixer),
  12252. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12254. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12255. msm_routing_get_port_mixer,
  12256. msm_routing_put_port_mixer),
  12257. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12259. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12260. msm_routing_get_port_mixer,
  12261. msm_routing_put_port_mixer),
  12262. };
  12263. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12264. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12266. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12267. msm_routing_get_port_mixer,
  12268. msm_routing_put_port_mixer),
  12269. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12271. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12272. msm_routing_get_port_mixer,
  12273. msm_routing_put_port_mixer),
  12274. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12276. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12277. msm_routing_get_port_mixer,
  12278. msm_routing_put_port_mixer),
  12279. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12281. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12282. msm_routing_get_port_mixer,
  12283. msm_routing_put_port_mixer),
  12284. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12286. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12287. msm_routing_get_port_mixer,
  12288. msm_routing_put_port_mixer),
  12289. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12291. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12292. msm_routing_get_port_mixer,
  12293. msm_routing_put_port_mixer),
  12294. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12296. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12297. msm_routing_get_port_mixer,
  12298. msm_routing_put_port_mixer),
  12299. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12301. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12302. msm_routing_get_port_mixer,
  12303. msm_routing_put_port_mixer),
  12304. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12306. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12307. msm_routing_get_port_mixer,
  12308. msm_routing_put_port_mixer),
  12309. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12311. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12312. msm_routing_get_port_mixer,
  12313. msm_routing_put_port_mixer),
  12314. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12316. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12317. msm_routing_get_port_mixer,
  12318. msm_routing_put_port_mixer),
  12319. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12321. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12322. msm_routing_get_port_mixer,
  12323. msm_routing_put_port_mixer),
  12324. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12326. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12327. msm_routing_get_port_mixer,
  12328. msm_routing_put_port_mixer),
  12329. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12331. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12332. msm_routing_get_port_mixer,
  12333. msm_routing_put_port_mixer),
  12334. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12336. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12337. msm_routing_get_port_mixer,
  12338. msm_routing_put_port_mixer),
  12339. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12341. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12342. msm_routing_get_port_mixer,
  12343. msm_routing_put_port_mixer),
  12344. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12346. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12347. msm_routing_get_port_mixer,
  12348. msm_routing_put_port_mixer),
  12349. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12351. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12352. msm_routing_get_port_mixer,
  12353. msm_routing_put_port_mixer),
  12354. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12356. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12357. msm_routing_get_port_mixer,
  12358. msm_routing_put_port_mixer),
  12359. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12361. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12362. msm_routing_get_port_mixer,
  12363. msm_routing_put_port_mixer),
  12364. };
  12365. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12366. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12368. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12369. msm_routing_get_port_mixer,
  12370. msm_routing_put_port_mixer),
  12371. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12373. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12374. msm_routing_get_port_mixer,
  12375. msm_routing_put_port_mixer),
  12376. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12378. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12379. msm_routing_get_port_mixer,
  12380. msm_routing_put_port_mixer),
  12381. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12383. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12384. msm_routing_get_port_mixer,
  12385. msm_routing_put_port_mixer),
  12386. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12388. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12389. msm_routing_get_port_mixer,
  12390. msm_routing_put_port_mixer),
  12391. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12393. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12394. msm_routing_get_port_mixer,
  12395. msm_routing_put_port_mixer),
  12396. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12398. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12399. msm_routing_get_port_mixer,
  12400. msm_routing_put_port_mixer),
  12401. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12403. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12404. msm_routing_get_port_mixer,
  12405. msm_routing_put_port_mixer),
  12406. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12408. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12409. msm_routing_get_port_mixer,
  12410. msm_routing_put_port_mixer),
  12411. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12413. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12414. msm_routing_get_port_mixer,
  12415. msm_routing_put_port_mixer),
  12416. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12418. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12419. msm_routing_get_port_mixer,
  12420. msm_routing_put_port_mixer),
  12421. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12423. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12424. msm_routing_get_port_mixer,
  12425. msm_routing_put_port_mixer),
  12426. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12428. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12429. msm_routing_get_port_mixer,
  12430. msm_routing_put_port_mixer),
  12431. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12433. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12434. msm_routing_get_port_mixer,
  12435. msm_routing_put_port_mixer),
  12436. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12438. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12439. msm_routing_get_port_mixer,
  12440. msm_routing_put_port_mixer),
  12441. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12443. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12444. msm_routing_get_port_mixer,
  12445. msm_routing_put_port_mixer),
  12446. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12448. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12449. msm_routing_get_port_mixer,
  12450. msm_routing_put_port_mixer),
  12451. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12453. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12454. msm_routing_get_port_mixer,
  12455. msm_routing_put_port_mixer),
  12456. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12458. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12459. msm_routing_get_port_mixer,
  12460. msm_routing_put_port_mixer),
  12461. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12463. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12464. msm_routing_get_port_mixer,
  12465. msm_routing_put_port_mixer),
  12466. };
  12467. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12468. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12470. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12471. msm_routing_get_port_mixer,
  12472. msm_routing_put_port_mixer),
  12473. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12476. msm_routing_get_port_mixer,
  12477. msm_routing_put_port_mixer),
  12478. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12480. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12481. msm_routing_get_port_mixer,
  12482. msm_routing_put_port_mixer),
  12483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12486. msm_routing_get_port_mixer,
  12487. msm_routing_put_port_mixer),
  12488. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12490. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12491. msm_routing_get_port_mixer,
  12492. msm_routing_put_port_mixer),
  12493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12496. msm_routing_get_port_mixer,
  12497. msm_routing_put_port_mixer),
  12498. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12501. msm_routing_get_port_mixer,
  12502. msm_routing_put_port_mixer),
  12503. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12505. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12506. msm_routing_get_port_mixer,
  12507. msm_routing_put_port_mixer),
  12508. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12511. msm_routing_get_port_mixer,
  12512. msm_routing_put_port_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12515. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12516. msm_routing_get_port_mixer,
  12517. msm_routing_put_port_mixer),
  12518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12520. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12521. msm_routing_get_port_mixer,
  12522. msm_routing_put_port_mixer),
  12523. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12525. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12526. msm_routing_get_port_mixer,
  12527. msm_routing_put_port_mixer),
  12528. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12531. msm_routing_get_port_mixer,
  12532. msm_routing_put_port_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12535. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12536. msm_routing_get_port_mixer,
  12537. msm_routing_put_port_mixer),
  12538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12540. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12541. msm_routing_get_port_mixer,
  12542. msm_routing_put_port_mixer),
  12543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12545. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12546. msm_routing_get_port_mixer,
  12547. msm_routing_put_port_mixer),
  12548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12551. msm_routing_get_port_mixer,
  12552. msm_routing_put_port_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12555. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12556. msm_routing_get_port_mixer,
  12557. msm_routing_put_port_mixer),
  12558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12560. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12561. msm_routing_get_port_mixer,
  12562. msm_routing_put_port_mixer),
  12563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12565. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12566. msm_routing_get_port_mixer,
  12567. msm_routing_put_port_mixer),
  12568. };
  12569. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12570. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12572. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12573. msm_routing_get_port_mixer,
  12574. msm_routing_put_port_mixer),
  12575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12578. msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12582. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12583. msm_routing_get_port_mixer,
  12584. msm_routing_put_port_mixer),
  12585. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12587. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12588. msm_routing_get_port_mixer,
  12589. msm_routing_put_port_mixer),
  12590. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12592. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12593. msm_routing_get_port_mixer,
  12594. msm_routing_put_port_mixer),
  12595. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12597. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12598. msm_routing_get_port_mixer,
  12599. msm_routing_put_port_mixer),
  12600. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12602. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12603. msm_routing_get_port_mixer,
  12604. msm_routing_put_port_mixer),
  12605. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12607. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12608. msm_routing_get_port_mixer,
  12609. msm_routing_put_port_mixer),
  12610. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12612. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12613. msm_routing_get_port_mixer,
  12614. msm_routing_put_port_mixer),
  12615. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12617. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12618. msm_routing_get_port_mixer,
  12619. msm_routing_put_port_mixer),
  12620. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12623. msm_routing_get_port_mixer,
  12624. msm_routing_put_port_mixer),
  12625. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12627. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12628. msm_routing_get_port_mixer,
  12629. msm_routing_put_port_mixer),
  12630. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12632. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12633. msm_routing_get_port_mixer,
  12634. msm_routing_put_port_mixer),
  12635. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12637. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12638. msm_routing_get_port_mixer,
  12639. msm_routing_put_port_mixer),
  12640. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12642. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12643. msm_routing_get_port_mixer,
  12644. msm_routing_put_port_mixer),
  12645. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12647. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12648. msm_routing_get_port_mixer,
  12649. msm_routing_put_port_mixer),
  12650. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12652. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12653. msm_routing_get_port_mixer,
  12654. msm_routing_put_port_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12657. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12658. msm_routing_get_port_mixer,
  12659. msm_routing_put_port_mixer),
  12660. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12662. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12663. msm_routing_get_port_mixer,
  12664. msm_routing_put_port_mixer),
  12665. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12667. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12668. msm_routing_get_port_mixer,
  12669. msm_routing_put_port_mixer),
  12670. };
  12671. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12674. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12675. msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12680. msm_routing_get_port_mixer,
  12681. msm_routing_put_port_mixer),
  12682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12685. msm_routing_get_port_mixer,
  12686. msm_routing_put_port_mixer),
  12687. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12689. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12690. msm_routing_get_port_mixer,
  12691. msm_routing_put_port_mixer),
  12692. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12694. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12695. msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12699. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12700. msm_routing_get_port_mixer,
  12701. msm_routing_put_port_mixer),
  12702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12704. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12705. msm_routing_get_port_mixer,
  12706. msm_routing_put_port_mixer),
  12707. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12709. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12710. msm_routing_get_port_mixer,
  12711. msm_routing_put_port_mixer),
  12712. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12714. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12715. msm_routing_get_port_mixer,
  12716. msm_routing_put_port_mixer),
  12717. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12719. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12720. msm_routing_get_port_mixer,
  12721. msm_routing_put_port_mixer),
  12722. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12724. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12725. msm_routing_get_port_mixer,
  12726. msm_routing_put_port_mixer),
  12727. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12729. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12730. msm_routing_get_port_mixer,
  12731. msm_routing_put_port_mixer),
  12732. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12734. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12735. msm_routing_get_port_mixer,
  12736. msm_routing_put_port_mixer),
  12737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12739. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12740. msm_routing_get_port_mixer,
  12741. msm_routing_put_port_mixer),
  12742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12745. msm_routing_get_port_mixer,
  12746. msm_routing_put_port_mixer),
  12747. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12749. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12750. msm_routing_get_port_mixer,
  12751. msm_routing_put_port_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12754. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12755. msm_routing_get_port_mixer,
  12756. msm_routing_put_port_mixer),
  12757. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12759. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12760. msm_routing_get_port_mixer,
  12761. msm_routing_put_port_mixer),
  12762. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12765. msm_routing_get_port_mixer,
  12766. msm_routing_put_port_mixer),
  12767. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12769. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12770. msm_routing_get_port_mixer,
  12771. msm_routing_put_port_mixer),
  12772. };
  12773. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12774. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12776. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12777. msm_routing_get_port_mixer,
  12778. msm_routing_put_port_mixer),
  12779. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12781. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12782. msm_routing_get_port_mixer,
  12783. msm_routing_put_port_mixer),
  12784. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12787. msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12791. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12792. msm_routing_get_port_mixer,
  12793. msm_routing_put_port_mixer),
  12794. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12796. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12797. msm_routing_get_port_mixer,
  12798. msm_routing_put_port_mixer),
  12799. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12801. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12802. msm_routing_get_port_mixer,
  12803. msm_routing_put_port_mixer),
  12804. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12806. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12807. msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12811. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12812. msm_routing_get_port_mixer,
  12813. msm_routing_put_port_mixer),
  12814. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12816. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12817. msm_routing_get_port_mixer,
  12818. msm_routing_put_port_mixer),
  12819. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12821. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12822. msm_routing_get_port_mixer,
  12823. msm_routing_put_port_mixer),
  12824. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12826. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12827. msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12831. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12832. msm_routing_get_port_mixer,
  12833. msm_routing_put_port_mixer),
  12834. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12836. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12837. msm_routing_get_port_mixer,
  12838. msm_routing_put_port_mixer),
  12839. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12841. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12842. msm_routing_get_port_mixer,
  12843. msm_routing_put_port_mixer),
  12844. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12846. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12847. msm_routing_get_port_mixer,
  12848. msm_routing_put_port_mixer),
  12849. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12851. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12852. msm_routing_get_port_mixer,
  12853. msm_routing_put_port_mixer),
  12854. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12856. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12857. msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12861. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12862. msm_routing_get_port_mixer,
  12863. msm_routing_put_port_mixer),
  12864. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12866. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12867. msm_routing_get_port_mixer,
  12868. msm_routing_put_port_mixer),
  12869. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12871. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12872. msm_routing_get_port_mixer,
  12873. msm_routing_put_port_mixer),
  12874. };
  12875. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12878. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12879. msm_routing_get_port_mixer,
  12880. msm_routing_put_port_mixer),
  12881. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12883. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12884. msm_routing_get_port_mixer,
  12885. msm_routing_put_port_mixer),
  12886. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12889. msm_routing_get_port_mixer,
  12890. msm_routing_put_port_mixer),
  12891. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12893. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12894. msm_routing_get_port_mixer,
  12895. msm_routing_put_port_mixer),
  12896. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12898. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12899. msm_routing_get_port_mixer,
  12900. msm_routing_put_port_mixer),
  12901. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12903. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12904. msm_routing_get_port_mixer,
  12905. msm_routing_put_port_mixer),
  12906. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12908. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12909. msm_routing_get_port_mixer,
  12910. msm_routing_put_port_mixer),
  12911. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12913. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12914. msm_routing_get_port_mixer,
  12915. msm_routing_put_port_mixer),
  12916. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12918. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12919. msm_routing_get_port_mixer,
  12920. msm_routing_put_port_mixer),
  12921. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12923. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12924. msm_routing_get_port_mixer,
  12925. msm_routing_put_port_mixer),
  12926. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12928. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12929. msm_routing_get_port_mixer,
  12930. msm_routing_put_port_mixer),
  12931. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12933. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12934. msm_routing_get_port_mixer,
  12935. msm_routing_put_port_mixer),
  12936. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12938. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12939. msm_routing_get_port_mixer,
  12940. msm_routing_put_port_mixer),
  12941. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12943. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12944. msm_routing_get_port_mixer,
  12945. msm_routing_put_port_mixer),
  12946. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12948. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12949. msm_routing_get_port_mixer,
  12950. msm_routing_put_port_mixer),
  12951. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12953. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12954. msm_routing_get_port_mixer,
  12955. msm_routing_put_port_mixer),
  12956. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12958. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12959. msm_routing_get_port_mixer,
  12960. msm_routing_put_port_mixer),
  12961. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12963. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12964. msm_routing_get_port_mixer,
  12965. msm_routing_put_port_mixer),
  12966. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12968. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12969. msm_routing_get_port_mixer,
  12970. msm_routing_put_port_mixer),
  12971. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12973. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12974. msm_routing_get_port_mixer,
  12975. msm_routing_put_port_mixer),
  12976. };
  12977. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12978. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12980. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12981. msm_routing_get_port_mixer,
  12982. msm_routing_put_port_mixer),
  12983. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12985. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12986. msm_routing_get_port_mixer,
  12987. msm_routing_put_port_mixer),
  12988. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12991. msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12995. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12996. msm_routing_get_port_mixer,
  12997. msm_routing_put_port_mixer),
  12998. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13000. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13001. msm_routing_get_port_mixer,
  13002. msm_routing_put_port_mixer),
  13003. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13005. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13006. msm_routing_get_port_mixer,
  13007. msm_routing_put_port_mixer),
  13008. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13010. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13011. msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13015. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13016. msm_routing_get_port_mixer,
  13017. msm_routing_put_port_mixer),
  13018. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13020. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13021. msm_routing_get_port_mixer,
  13022. msm_routing_put_port_mixer),
  13023. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13025. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13026. msm_routing_get_port_mixer,
  13027. msm_routing_put_port_mixer),
  13028. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13029. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13030. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13031. msm_routing_get_port_mixer,
  13032. msm_routing_put_port_mixer),
  13033. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13035. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13036. msm_routing_get_port_mixer,
  13037. msm_routing_put_port_mixer),
  13038. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13040. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13041. msm_routing_get_port_mixer,
  13042. msm_routing_put_port_mixer),
  13043. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13045. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13046. msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13050. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13051. msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13055. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13056. msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13060. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13061. msm_routing_get_port_mixer,
  13062. msm_routing_put_port_mixer),
  13063. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13065. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13066. msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13070. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13071. msm_routing_get_port_mixer,
  13072. msm_routing_put_port_mixer),
  13073. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13075. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13076. msm_routing_get_port_mixer,
  13077. msm_routing_put_port_mixer),
  13078. };
  13079. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13080. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13082. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13083. msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13087. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13088. msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13092. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13093. msm_routing_get_port_mixer,
  13094. msm_routing_put_port_mixer),
  13095. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13097. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13098. msm_routing_get_port_mixer,
  13099. msm_routing_put_port_mixer),
  13100. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13103. msm_routing_get_port_mixer,
  13104. msm_routing_put_port_mixer),
  13105. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13107. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13108. msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13112. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13113. msm_routing_get_port_mixer,
  13114. msm_routing_put_port_mixer),
  13115. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13117. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13118. msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13123. msm_routing_get_port_mixer,
  13124. msm_routing_put_port_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13127. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13128. msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13132. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13133. msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13137. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13138. msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13143. msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13147. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13148. msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13152. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13153. msm_routing_get_port_mixer,
  13154. msm_routing_put_port_mixer),
  13155. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13157. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13158. msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13163. msm_routing_get_port_mixer,
  13164. msm_routing_put_port_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13167. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13168. msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13172. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13173. msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13177. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13178. msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. };
  13181. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13185. msm_routing_get_port_mixer,
  13186. msm_routing_put_port_mixer),
  13187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13190. msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13195. msm_routing_get_port_mixer,
  13196. msm_routing_put_port_mixer),
  13197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13200. msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13204. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13205. msm_routing_get_port_mixer,
  13206. msm_routing_put_port_mixer),
  13207. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13209. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13210. msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13214. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13215. msm_routing_get_port_mixer,
  13216. msm_routing_put_port_mixer),
  13217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13220. msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13225. msm_routing_get_port_mixer,
  13226. msm_routing_put_port_mixer),
  13227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13229. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13230. msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13234. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13235. msm_routing_get_port_mixer,
  13236. msm_routing_put_port_mixer),
  13237. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13239. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13240. msm_routing_get_port_mixer,
  13241. msm_routing_put_port_mixer),
  13242. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13245. msm_routing_get_port_mixer,
  13246. msm_routing_put_port_mixer),
  13247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13250. msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13254. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13255. msm_routing_get_port_mixer,
  13256. msm_routing_put_port_mixer),
  13257. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13259. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13260. msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13264. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13265. msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13269. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13270. msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13275. msm_routing_get_port_mixer,
  13276. msm_routing_put_port_mixer),
  13277. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13280. msm_routing_get_port_mixer,
  13281. msm_routing_put_port_mixer),
  13282. };
  13283. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13286. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13287. msm_routing_get_port_mixer,
  13288. msm_routing_put_port_mixer),
  13289. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13291. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13292. msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13296. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13297. msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13302. msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13306. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13307. msm_routing_get_port_mixer,
  13308. msm_routing_put_port_mixer),
  13309. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13311. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13312. msm_routing_get_port_mixer,
  13313. msm_routing_put_port_mixer),
  13314. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13316. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13317. msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13321. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13322. msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13326. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13327. msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13331. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13332. msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13336. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13337. msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13341. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13342. msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13346. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13347. msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13351. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13352. msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13356. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13357. msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13361. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13362. msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13366. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13367. msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13371. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13372. msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13376. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13377. msm_routing_get_port_mixer,
  13378. msm_routing_put_port_mixer),
  13379. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13381. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13382. msm_routing_get_port_mixer,
  13383. msm_routing_put_port_mixer),
  13384. };
  13385. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13386. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13388. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13389. msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13393. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13394. msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13398. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13399. msm_routing_get_port_mixer,
  13400. msm_routing_put_port_mixer),
  13401. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13403. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13404. msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13408. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13409. msm_routing_get_port_mixer,
  13410. msm_routing_put_port_mixer),
  13411. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13413. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13414. msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13418. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13419. msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13423. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13424. msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13428. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13433. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13438. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13439. msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13443. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13444. msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13448. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13449. msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13453. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13454. msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13458. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13459. msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13463. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13464. msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13468. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13469. msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13473. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13474. msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13478. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13479. msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13483. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13484. msm_routing_get_port_mixer,
  13485. msm_routing_put_port_mixer),
  13486. };
  13487. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13490. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13494. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13498. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13502. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13506. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13510. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13514. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. };
  13517. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13521. msm_routing_put_port_mixer),
  13522. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13524. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13525. msm_routing_put_port_mixer),
  13526. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13529. msm_routing_put_port_mixer),
  13530. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13536. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13537. msm_routing_put_port_mixer),
  13538. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13540. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13544. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13545. msm_routing_put_port_mixer),
  13546. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13548. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13549. msm_routing_put_port_mixer),
  13550. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13552. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. };
  13555. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13556. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13558. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13559. msm_routing_put_listen_mixer),
  13560. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13562. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13563. msm_routing_put_listen_mixer),
  13564. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13566. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13567. msm_routing_put_listen_mixer),
  13568. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13570. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13571. msm_routing_put_listen_mixer),
  13572. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13574. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13575. msm_routing_put_listen_mixer),
  13576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13578. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13579. msm_routing_put_listen_mixer),
  13580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13582. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13583. msm_routing_put_listen_mixer),
  13584. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13586. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13587. msm_routing_put_listen_mixer),
  13588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13590. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13591. msm_routing_put_listen_mixer),
  13592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13594. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13595. msm_routing_put_listen_mixer),
  13596. };
  13597. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13598. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13601. msm_routing_put_listen_mixer),
  13602. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13603. SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13605. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13606. msm_routing_put_listen_mixer),
  13607. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13609. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13610. msm_routing_put_listen_mixer),
  13611. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13613. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13614. msm_routing_put_listen_mixer),
  13615. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13617. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13618. msm_routing_put_listen_mixer),
  13619. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13621. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13622. msm_routing_put_listen_mixer),
  13623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13625. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13626. msm_routing_put_listen_mixer),
  13627. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13629. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13630. msm_routing_put_listen_mixer),
  13631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13633. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13634. msm_routing_put_listen_mixer),
  13635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13637. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13638. msm_routing_put_listen_mixer),
  13639. };
  13640. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13641. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13643. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13644. msm_routing_put_listen_mixer),
  13645. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13647. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13648. msm_routing_put_listen_mixer),
  13649. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13651. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13652. msm_routing_put_listen_mixer),
  13653. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13655. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13656. msm_routing_put_listen_mixer),
  13657. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13659. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13660. msm_routing_put_listen_mixer),
  13661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13663. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13664. msm_routing_put_listen_mixer),
  13665. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13667. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13668. msm_routing_put_listen_mixer),
  13669. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13671. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13672. msm_routing_put_listen_mixer),
  13673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13675. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13676. msm_routing_put_listen_mixer),
  13677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13679. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13680. msm_routing_put_listen_mixer),
  13681. };
  13682. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13683. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13685. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13686. msm_routing_put_listen_mixer),
  13687. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13689. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13690. msm_routing_put_listen_mixer),
  13691. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13693. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13694. msm_routing_put_listen_mixer),
  13695. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13697. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13698. msm_routing_put_listen_mixer),
  13699. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13701. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13702. msm_routing_put_listen_mixer),
  13703. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13705. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13706. msm_routing_put_listen_mixer),
  13707. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13709. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13710. msm_routing_put_listen_mixer),
  13711. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13713. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13714. msm_routing_put_listen_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13717. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13718. msm_routing_put_listen_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13721. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13722. msm_routing_put_listen_mixer),
  13723. };
  13724. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13725. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13727. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13728. msm_routing_put_listen_mixer),
  13729. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13731. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13732. msm_routing_put_listen_mixer),
  13733. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13735. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13736. msm_routing_put_listen_mixer),
  13737. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13739. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13740. msm_routing_put_listen_mixer),
  13741. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13743. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13744. msm_routing_put_listen_mixer),
  13745. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13747. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13748. msm_routing_put_listen_mixer),
  13749. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13751. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13752. msm_routing_put_listen_mixer),
  13753. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13755. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13756. msm_routing_put_listen_mixer),
  13757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13759. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13760. msm_routing_put_listen_mixer),
  13761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13763. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13764. msm_routing_put_listen_mixer),
  13765. };
  13766. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13767. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13769. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13770. msm_routing_put_listen_mixer),
  13771. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13773. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13774. msm_routing_put_listen_mixer),
  13775. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13777. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13778. msm_routing_put_listen_mixer),
  13779. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13781. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13782. msm_routing_put_listen_mixer),
  13783. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13785. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13786. msm_routing_put_listen_mixer),
  13787. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13789. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13790. msm_routing_put_listen_mixer),
  13791. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13793. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13794. msm_routing_put_listen_mixer),
  13795. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13797. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13798. msm_routing_put_listen_mixer),
  13799. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13801. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13802. msm_routing_put_listen_mixer),
  13803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13805. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13806. msm_routing_put_listen_mixer),
  13807. };
  13808. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13809. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13811. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13812. msm_routing_put_listen_mixer),
  13813. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13815. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13816. msm_routing_put_listen_mixer),
  13817. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13819. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13820. msm_routing_put_listen_mixer),
  13821. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13823. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13824. msm_routing_put_listen_mixer),
  13825. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13827. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13828. msm_routing_put_listen_mixer),
  13829. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13831. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13832. msm_routing_put_listen_mixer),
  13833. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13835. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13836. msm_routing_put_listen_mixer),
  13837. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13839. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13840. msm_routing_put_listen_mixer),
  13841. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13843. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13844. msm_routing_put_listen_mixer),
  13845. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13847. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13848. msm_routing_put_listen_mixer),
  13849. };
  13850. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13851. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13853. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13854. msm_routing_put_listen_mixer),
  13855. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13857. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13858. msm_routing_put_listen_mixer),
  13859. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13861. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13862. msm_routing_put_listen_mixer),
  13863. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13865. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13866. msm_routing_put_listen_mixer),
  13867. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13869. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13870. msm_routing_put_listen_mixer),
  13871. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13873. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13874. msm_routing_put_listen_mixer),
  13875. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13877. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13878. msm_routing_put_listen_mixer),
  13879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13881. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13882. msm_routing_put_listen_mixer),
  13883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13885. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13886. msm_routing_put_listen_mixer),
  13887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13889. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13890. msm_routing_put_listen_mixer),
  13891. };
  13892. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13893. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13894. 0, 1, 0, msm_routing_get_switch_mixer,
  13895. msm_routing_put_switch_mixer);
  13896. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13897. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13898. 0, 1, 0, msm_routing_get_switch_mixer,
  13899. msm_routing_put_switch_mixer);
  13900. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13901. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13902. 0, 1, 0, msm_routing_get_switch_mixer,
  13903. msm_routing_put_switch_mixer);
  13904. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13905. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13906. 0, 1, 0, msm_routing_get_switch_mixer,
  13907. msm_routing_put_switch_mixer);
  13908. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  13909. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13910. 0, 1, 0, msm_routing_get_switch_mixer,
  13911. msm_routing_put_switch_mixer);
  13912. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13913. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13914. 0, 1, 0, msm_routing_get_switch_mixer,
  13915. msm_routing_put_switch_mixer);
  13916. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13917. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13918. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13919. msm_routing_put_fm_pcmrx_switch_mixer);
  13920. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13921. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13922. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13923. msm_routing_put_int0_mi2s_switch_mixer);
  13924. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13925. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13926. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13927. msm_routing_put_int4_mi2s_switch_mixer);
  13928. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13929. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13930. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13931. msm_routing_put_pri_mi2s_switch_mixer);
  13932. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13933. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13934. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13935. msm_routing_put_sec_mi2s_switch_mixer);
  13936. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13937. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13938. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13939. msm_routing_put_tert_mi2s_switch_mixer);
  13940. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13941. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13942. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13943. msm_routing_put_quat_mi2s_switch_mixer);
  13944. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13945. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13946. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13947. msm_routing_put_quin_mi2s_switch_mixer);
  13948. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13949. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13950. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13951. msm_routing_put_hfp_switch_mixer);
  13952. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13953. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13954. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13955. msm_routing_put_hfp_switch_mixer);
  13956. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13957. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13958. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13959. msm_routing_put_hfp_switch_mixer);
  13960. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13961. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13962. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13963. msm_routing_put_hfp_switch_mixer);
  13964. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13965. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13966. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13967. msm_routing_put_usb_switch_mixer);
  13968. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13969. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13970. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13971. msm_routing_a2dp_switch_mixer_put);
  13972. static const struct soc_enum lsm_port_enum =
  13973. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13974. static const char * const lsm_func_text[] = {
  13975. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13976. };
  13977. static const struct soc_enum lsm_func_enum =
  13978. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13979. static const struct snd_kcontrol_new lsm_controls[] = {
  13980. /* kcontrol of lsm_function */
  13981. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13982. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13983. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13984. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13985. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13986. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13987. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13988. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13989. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13990. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13991. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13992. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13993. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13994. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13995. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13996. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13997. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13998. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13999. /* kcontrol of lsm_port */
  14000. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  14001. msm_routing_lsm_port_get,
  14002. msm_routing_lsm_port_put),
  14003. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  14004. msm_routing_lsm_port_get,
  14005. msm_routing_lsm_port_put),
  14006. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  14007. msm_routing_lsm_port_get,
  14008. msm_routing_lsm_port_put),
  14009. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  14010. msm_routing_lsm_port_get,
  14011. msm_routing_lsm_port_put),
  14012. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14013. msm_routing_lsm_port_get,
  14014. msm_routing_lsm_port_put),
  14015. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14016. msm_routing_lsm_port_get,
  14017. msm_routing_lsm_port_put),
  14018. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14019. msm_routing_lsm_port_get,
  14020. msm_routing_lsm_port_put),
  14021. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14022. msm_routing_lsm_port_get,
  14023. msm_routing_lsm_port_put),
  14024. };
  14025. static const char * const aanc_slim_0_rx_text[] = {
  14026. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14027. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14028. };
  14029. static const struct soc_enum aanc_slim_0_rx_enum =
  14030. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14031. aanc_slim_0_rx_text);
  14032. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14033. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14034. msm_routing_slim_0_rx_aanc_mux_get,
  14035. msm_routing_slim_0_rx_aanc_mux_put)
  14036. };
  14037. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  14038. struct snd_ctl_elem_value *ucontrol)
  14039. {
  14040. ucontrol->value.integer.value[0] = aanc_level;
  14041. return 0;
  14042. }
  14043. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  14044. struct snd_ctl_elem_value *ucontrol)
  14045. {
  14046. int ret = 0;
  14047. mutex_lock(&routing_lock);
  14048. aanc_level = ucontrol->value.integer.value[0];
  14049. pr_debug("%s: value: %ld\n",
  14050. __func__, ucontrol->value.integer.value[0]);
  14051. ret = afe_set_aanc_noise_level(aanc_level);
  14052. mutex_unlock(&routing_lock);
  14053. return ret;
  14054. }
  14055. static const struct snd_kcontrol_new aanc_noise_level[] = {
  14056. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  14057. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  14058. };
  14059. static int msm_routing_get_stereo_to_custom_stereo_control(
  14060. struct snd_kcontrol *kcontrol,
  14061. struct snd_ctl_elem_value *ucontrol)
  14062. {
  14063. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14064. return 0;
  14065. }
  14066. static int msm_routing_put_stereo_to_custom_stereo_control(
  14067. struct snd_kcontrol *kcontrol,
  14068. struct snd_ctl_elem_value *ucontrol)
  14069. {
  14070. int flag = 0, i = 0, rc = 0, idx = 0;
  14071. int be_index = 0, port_id, topo_id;
  14072. unsigned int session_id = 0;
  14073. uint16_t op_FL_ip_FL_weight = 0;
  14074. uint16_t op_FL_ip_FR_weight = 0;
  14075. uint16_t op_FR_ip_FL_weight = 0;
  14076. uint16_t op_FR_ip_FR_weight = 0;
  14077. flag = ucontrol->value.integer.value[0];
  14078. pr_debug("%s E flag %d\n", __func__, flag);
  14079. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14080. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14081. __func__, is_custom_stereo_on, flag);
  14082. return 0;
  14083. }
  14084. is_custom_stereo_on = flag ? true : false;
  14085. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14086. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14087. port_id = msm_bedais[be_index].port_id;
  14088. if (!msm_bedais[be_index].active)
  14089. continue;
  14090. if ((port_id != SLIMBUS_0_RX) &&
  14091. (port_id != RT_PROXY_PORT_001_RX) &&
  14092. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14093. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14094. continue;
  14095. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14096. MSM_FRONTEND_DAI_MM_SIZE) {
  14097. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14098. LEGACY_PCM_MODE)
  14099. goto skip_send_custom_stereo;
  14100. session_id =
  14101. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14102. if (is_custom_stereo_on) {
  14103. op_FL_ip_FL_weight =
  14104. Q14_GAIN_ZERO_POINT_FIVE;
  14105. op_FL_ip_FR_weight =
  14106. Q14_GAIN_ZERO_POINT_FIVE;
  14107. op_FR_ip_FL_weight =
  14108. Q14_GAIN_ZERO_POINT_FIVE;
  14109. op_FR_ip_FR_weight =
  14110. Q14_GAIN_ZERO_POINT_FIVE;
  14111. } else {
  14112. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14113. op_FL_ip_FR_weight = 0;
  14114. op_FR_ip_FL_weight = 0;
  14115. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14116. }
  14117. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14118. unsigned long copp =
  14119. session_copp_map[i]
  14120. [SESSION_TYPE_RX][be_index];
  14121. if (!test_bit(idx, &copp))
  14122. goto skip_send_custom_stereo;
  14123. topo_id = adm_get_topology_for_port_copp_idx(
  14124. msm_bedais[be_index].port_id, idx);
  14125. if (topo_id < 0)
  14126. pr_debug("%s:Err:custom stereo topo %d",
  14127. __func__, topo_id);
  14128. pr_debug("idx %d\n", idx);
  14129. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14130. rc = msm_ds2_dap_set_custom_stereo_onoff
  14131. (msm_bedais[be_index].port_id,
  14132. idx, is_custom_stereo_on);
  14133. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14134. rc = dolby_dap_set_custom_stereo_onoff(
  14135. msm_bedais[be_index].port_id,
  14136. idx, is_custom_stereo_on);
  14137. else
  14138. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14139. (msm_bedais[be_index].port_id,
  14140. idx, session_id,
  14141. op_FL_ip_FL_weight,
  14142. op_FL_ip_FR_weight,
  14143. op_FR_ip_FL_weight,
  14144. op_FR_ip_FR_weight);
  14145. if (rc < 0)
  14146. skip_send_custom_stereo:
  14147. pr_err("%s: err setting custom stereo\n",
  14148. __func__);
  14149. }
  14150. }
  14151. }
  14152. return 0;
  14153. }
  14154. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14155. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14156. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14157. msm_routing_put_stereo_to_custom_stereo_control),
  14158. };
  14159. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14160. struct snd_ctl_elem_value *ucontrol)
  14161. {
  14162. return 0;
  14163. }
  14164. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14165. struct snd_ctl_elem_value *ucontrol)
  14166. {
  14167. int i = 0, j;
  14168. int num_app_types = ucontrol->value.integer.value[i++];
  14169. pr_debug("%s\n", __func__);
  14170. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14171. sizeof(struct msm_pcm_routing_app_type_data));
  14172. if (num_app_types > MAX_APP_TYPES) {
  14173. pr_err("%s: number of app types exceed the max supported\n",
  14174. __func__);
  14175. return -EINVAL;
  14176. }
  14177. for (j = 0; j < num_app_types; j++) {
  14178. app_type_cfg[j].app_type =
  14179. ucontrol->value.integer.value[i++];
  14180. app_type_cfg[j].sample_rate =
  14181. ucontrol->value.integer.value[i++];
  14182. app_type_cfg[j].bit_width =
  14183. ucontrol->value.integer.value[i++];
  14184. }
  14185. return 0;
  14186. }
  14187. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14188. struct snd_ctl_elem_value *ucontrol)
  14189. {
  14190. int j, fe_id, be_id, port_type;
  14191. int ret = 0;
  14192. unsigned long copp;
  14193. struct msm_pcm_routing_bdai_data *bedai;
  14194. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14195. SESSION_TYPE_RX;
  14196. int app_type = ucontrol->value.integer.value[1];
  14197. int gain = (ucontrol->value.integer.value[2] +
  14198. ucontrol->value.integer.value[3])/2;
  14199. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14200. MSM_AFE_PORT_TYPE_TX;
  14201. mutex_lock(&routing_lock);
  14202. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14203. if (is_be_dai_extproc(be_id))
  14204. continue;
  14205. bedai = &msm_bedais[be_id];
  14206. if (afe_get_port_type(bedai->port_id) != port_type)
  14207. continue;
  14208. if (!bedai->active)
  14209. continue;
  14210. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14211. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14212. continue;
  14213. if (app_type !=
  14214. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14215. continue;
  14216. copp = session_copp_map[fe_id][dir][be_id];
  14217. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14218. if (!test_bit(j, &copp))
  14219. continue;
  14220. ret |= adm_set_volume(bedai->port_id, j, gain);
  14221. }
  14222. }
  14223. }
  14224. mutex_unlock(&routing_lock);
  14225. return ret ? -EINVAL : 0;
  14226. }
  14227. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14228. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14229. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14230. msm_routing_put_app_type_cfg_control),
  14231. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14232. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14233. };
  14234. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14235. struct snd_ctl_elem_value *ucontrol)
  14236. {
  14237. int copp_idx, fe_id, be_id, port_type;
  14238. int ret = 0;
  14239. unsigned long copp;
  14240. struct msm_pcm_routing_bdai_data *bedai;
  14241. u8 *packed_params = NULL;
  14242. struct param_hdr_v3 param_hdr;
  14243. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14244. sizeof(uint32_t));
  14245. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14246. SESSION_TYPE_RX;
  14247. int app_type = ucontrol->value.integer.value[1];
  14248. int module_id = ucontrol->value.integer.value[2];
  14249. int instance_id = ucontrol->value.integer.value[3];
  14250. int param_id = ucontrol->value.integer.value[4];
  14251. int param_value = ucontrol->value.integer.value[5];
  14252. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14253. MSM_AFE_PORT_TYPE_TX;
  14254. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14255. __func__, app_type, module_id,
  14256. instance_id, param_id, param_value);
  14257. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14258. if (!packed_params)
  14259. return -ENOMEM;
  14260. memset(&param_hdr, 0, sizeof(param_hdr));
  14261. param_hdr.module_id = module_id;
  14262. param_hdr.instance_id = instance_id;
  14263. param_hdr.param_id = param_id;
  14264. param_hdr.param_size = sizeof(uint32_t);
  14265. packed_param_size = 0;
  14266. mutex_lock(&routing_lock);
  14267. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14268. if (is_be_dai_extproc(be_id))
  14269. continue;
  14270. bedai = &msm_bedais[be_id];
  14271. if (afe_get_port_type(bedai->port_id) != port_type)
  14272. continue;
  14273. if (!bedai->active)
  14274. continue;
  14275. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14276. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14277. continue;
  14278. if (app_type !=
  14279. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14280. continue;
  14281. copp = session_copp_map[fe_id][dir][be_id];
  14282. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14283. copp_idx++) {
  14284. if (!test_bit(copp_idx, &copp))
  14285. continue;
  14286. ret = q6common_pack_pp_params(packed_params,
  14287. &param_hdr,
  14288. (u8 *) &param_value,
  14289. &packed_param_size);
  14290. if (ret) {
  14291. pr_err("%s: Failed to pack params, error %d\n",
  14292. __func__, ret);
  14293. goto done;
  14294. }
  14295. ret = adm_set_pp_params(bedai->port_id,
  14296. copp_idx, NULL,
  14297. packed_params,
  14298. packed_param_size);
  14299. if (ret) {
  14300. pr_err("%s: Setting param failed with err=%d\n",
  14301. __func__, ret);
  14302. ret = -EINVAL;
  14303. goto done;
  14304. }
  14305. }
  14306. }
  14307. }
  14308. done:
  14309. mutex_unlock(&routing_lock);
  14310. kfree(packed_params);
  14311. return ret;
  14312. }
  14313. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14314. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14315. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14316. };
  14317. static int msm_routing_get_lsm_app_type_cfg_control(
  14318. struct snd_kcontrol *kcontrol,
  14319. struct snd_ctl_elem_value *ucontrol)
  14320. {
  14321. return 0;
  14322. }
  14323. static int msm_routing_put_lsm_app_type_cfg_control(
  14324. struct snd_kcontrol *kcontrol,
  14325. struct snd_ctl_elem_value *ucontrol)
  14326. {
  14327. int shift = ((struct soc_multi_mixer_control *)
  14328. kcontrol->private_value)->shift;
  14329. int i = 0, j;
  14330. int num_app_types = ucontrol->value.integer.value[i++];
  14331. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14332. sizeof(struct msm_pcm_routing_app_type_data));
  14333. if (num_app_types > MAX_APP_TYPES) {
  14334. pr_err("%s: number of app types exceed the max supported\n",
  14335. __func__);
  14336. return -EINVAL;
  14337. }
  14338. for (j = 0; j < num_app_types; j++) {
  14339. lsm_app_type_cfg[j].app_type =
  14340. ucontrol->value.integer.value[i++];
  14341. lsm_app_type_cfg[j].sample_rate =
  14342. ucontrol->value.integer.value[i++];
  14343. lsm_app_type_cfg[j].bit_width =
  14344. ucontrol->value.integer.value[i++];
  14345. /* Shift of 1 indicates this is V2 mixer control */
  14346. if (shift == 1)
  14347. lsm_app_type_cfg[j].num_out_channels =
  14348. ucontrol->value.integer.value[i++];
  14349. }
  14350. return 0;
  14351. }
  14352. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14353. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14354. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14355. msm_routing_put_lsm_app_type_cfg_control),
  14356. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14357. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14358. msm_routing_put_lsm_app_type_cfg_control),
  14359. };
  14360. static int msm_routing_get_use_ds1_or_ds2_control(
  14361. struct snd_kcontrol *kcontrol,
  14362. struct snd_ctl_elem_value *ucontrol)
  14363. {
  14364. ucontrol->value.integer.value[0] = is_ds2_on;
  14365. return 0;
  14366. }
  14367. static int msm_routing_put_use_ds1_or_ds2_control(
  14368. struct snd_kcontrol *kcontrol,
  14369. struct snd_ctl_elem_value *ucontrol)
  14370. {
  14371. is_ds2_on = ucontrol->value.integer.value[0];
  14372. return 0;
  14373. }
  14374. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14375. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14376. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14377. msm_routing_put_use_ds1_or_ds2_control),
  14378. };
  14379. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14380. struct snd_ctl_elem_value *ucontrol) {
  14381. int rc = 0;
  14382. int be_idx = 0;
  14383. char *param_value;
  14384. int *update_param_value;
  14385. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14386. struct param_hdr_v3 param_hdr;
  14387. param_value = kzalloc(param_size, GFP_KERNEL);
  14388. if (!param_value)
  14389. return -ENOMEM;
  14390. memset(&param_hdr, 0, sizeof(param_hdr));
  14391. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14392. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14393. break;
  14394. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14395. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14396. param_hdr.instance_id = INSTANCE_ID_0;
  14397. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14398. param_hdr.param_size = param_size;
  14399. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14400. NULL, &param_hdr, (u8 *) param_value);
  14401. if (rc) {
  14402. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14403. kfree(param_value);
  14404. return -EINVAL;
  14405. }
  14406. update_param_value = (int *)param_value;
  14407. ucontrol->value.integer.value[0] = update_param_value[0];
  14408. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14409. __func__, update_param_value[0]);
  14410. }
  14411. kfree(param_value);
  14412. return 0;
  14413. }
  14414. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14415. struct snd_ctl_elem_value *ucontrol)
  14416. {
  14417. voc_session_id = ucontrol->value.integer.value[0];
  14418. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14419. return 0;
  14420. }
  14421. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14422. struct snd_ctl_elem_value *ucontrol)
  14423. {
  14424. ucontrol->value.integer.value[0] = voc_session_id;
  14425. return 0;
  14426. }
  14427. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14428. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14429. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14430. msm_voc_session_id_put),
  14431. };
  14432. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14433. struct snd_ctl_elem_info *uinfo)
  14434. {
  14435. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14436. uinfo->count = sizeof(struct sound_focus_param);
  14437. return 0;
  14438. }
  14439. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14440. struct snd_ctl_elem_value *ucontrol)
  14441. {
  14442. int ret = 0;
  14443. struct sound_focus_param soundFocusData;
  14444. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14445. sizeof(struct sound_focus_param));
  14446. ret = voc_set_sound_focus(soundFocusData);
  14447. if (ret) {
  14448. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14449. __func__, ret);
  14450. ret = -EINVAL;
  14451. }
  14452. return ret;
  14453. }
  14454. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14455. struct snd_ctl_elem_value *ucontrol)
  14456. {
  14457. int ret = 0;
  14458. struct sound_focus_param soundFocusData;
  14459. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14460. ret = voc_get_sound_focus(&soundFocusData);
  14461. if (ret) {
  14462. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14463. __func__, ret);
  14464. ret = -EINVAL;
  14465. goto done;
  14466. }
  14467. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14468. sizeof(struct sound_focus_param));
  14469. done:
  14470. return ret;
  14471. }
  14472. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14473. struct snd_ctl_elem_info *uinfo)
  14474. {
  14475. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14476. uinfo->count = sizeof(struct source_tracking_param);
  14477. return 0;
  14478. }
  14479. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14480. struct snd_ctl_elem_value *ucontrol)
  14481. {
  14482. int ret = 0;
  14483. struct source_tracking_param sourceTrackingData;
  14484. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14485. ret = voc_get_source_tracking(&sourceTrackingData);
  14486. if (ret) {
  14487. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14488. __func__, ret);
  14489. ret = -EINVAL;
  14490. goto done;
  14491. }
  14492. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14493. sizeof(struct source_tracking_param));
  14494. done:
  14495. return ret;
  14496. }
  14497. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14498. int *copp_idx)
  14499. {
  14500. int i, idx, be_idx;
  14501. int ret = 0;
  14502. unsigned long copp;
  14503. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14504. ret = q6audio_validate_port(port_id);
  14505. if (ret < 0) {
  14506. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14507. __func__, port_id, ret);
  14508. ret = -EINVAL;
  14509. goto done;
  14510. }
  14511. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14512. if (msm_bedais[be_idx].port_id == port_id)
  14513. break;
  14514. }
  14515. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14516. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14517. ret = -EINVAL;
  14518. goto done;
  14519. }
  14520. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14521. MSM_FRONTEND_DAI_MM_SIZE) {
  14522. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14523. copp = session_copp_map[i]
  14524. [session_type][be_idx];
  14525. if (test_bit(idx, &copp))
  14526. break;
  14527. }
  14528. if (idx >= MAX_COPPS_PER_PORT)
  14529. continue;
  14530. else
  14531. break;
  14532. }
  14533. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14534. pr_err("%s: Invalid FE, exiting\n", __func__);
  14535. ret = -EINVAL;
  14536. goto done;
  14537. }
  14538. *copp_idx = idx;
  14539. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14540. done:
  14541. return ret;
  14542. }
  14543. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14544. const char *prefix, int *port_id)
  14545. {
  14546. int ret = 0;
  14547. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14548. /*
  14549. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14550. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14551. * and compare the string with the backend name to derive the port id.
  14552. */
  14553. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14554. "SLIMBUS_0")) {
  14555. *port_id = SLIMBUS_0_TX;
  14556. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14557. "TERT_MI2S")) {
  14558. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14559. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14560. "INT3_MI2S")) {
  14561. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14562. } else {
  14563. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14564. __func__, kcontrol->id.name);
  14565. ret = -EINVAL;
  14566. goto done;
  14567. }
  14568. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14569. __func__, kcontrol->id.name, *port_id);
  14570. done:
  14571. return ret;
  14572. }
  14573. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14574. struct snd_ctl_elem_value *ucontrol)
  14575. {
  14576. int ret = 0;
  14577. struct sound_focus_param soundFocusData;
  14578. int port_id, copp_idx;
  14579. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14580. "Sound Focus Audio Tx ", &port_id);
  14581. if (ret != 0) {
  14582. pr_err("%s: Error in deriving port id, err=%d\n",
  14583. __func__, ret);
  14584. ret = -EINVAL;
  14585. goto done;
  14586. }
  14587. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14588. &copp_idx);
  14589. if (ret) {
  14590. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14591. __func__, port_id);
  14592. ret = -EINVAL;
  14593. goto done;
  14594. }
  14595. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14596. sizeof(struct sound_focus_param));
  14597. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14598. if (ret) {
  14599. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14600. __func__, ret);
  14601. ret = -EINVAL;
  14602. goto done;
  14603. }
  14604. done:
  14605. return ret;
  14606. }
  14607. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14608. struct snd_ctl_elem_value *ucontrol)
  14609. {
  14610. int ret = 0;
  14611. struct sound_focus_param soundFocusData;
  14612. int port_id, copp_idx;
  14613. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14614. "Sound Focus Audio Tx ", &port_id);
  14615. if (ret) {
  14616. pr_err("%s: Error in deriving port id, err=%d\n",
  14617. __func__, ret);
  14618. ret = -EINVAL;
  14619. goto done;
  14620. }
  14621. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14622. &copp_idx);
  14623. if (ret) {
  14624. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14625. __func__, port_id);
  14626. ret = -EINVAL;
  14627. goto done;
  14628. }
  14629. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14630. if (ret) {
  14631. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14632. __func__, ret);
  14633. ret = -EINVAL;
  14634. goto done;
  14635. }
  14636. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14637. sizeof(struct sound_focus_param));
  14638. done:
  14639. return ret;
  14640. }
  14641. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14642. struct snd_ctl_elem_value *ucontrol)
  14643. {
  14644. int ret = 0;
  14645. struct source_tracking_param sourceTrackingData;
  14646. int port_id, copp_idx;
  14647. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14648. "Source Tracking Audio Tx ", &port_id);
  14649. if (ret) {
  14650. pr_err("%s: Error in deriving port id, err=%d\n",
  14651. __func__, ret);
  14652. ret = -EINVAL;
  14653. goto done;
  14654. }
  14655. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14656. &copp_idx);
  14657. if (ret) {
  14658. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14659. __func__, port_id);
  14660. ret = -EINVAL;
  14661. goto done;
  14662. }
  14663. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14664. if (ret) {
  14665. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14666. __func__, ret);
  14667. ret = -EINVAL;
  14668. goto done;
  14669. }
  14670. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14671. sizeof(struct source_tracking_param));
  14672. done:
  14673. return ret;
  14674. }
  14675. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14676. {
  14677. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14678. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14679. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14680. .info = msm_sound_focus_info,
  14681. .get = msm_voice_sound_focus_get,
  14682. .put = msm_voice_sound_focus_put,
  14683. },
  14684. {
  14685. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14687. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14688. .info = msm_source_tracking_info,
  14689. .get = msm_voice_source_tracking_get,
  14690. },
  14691. {
  14692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14693. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14694. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14695. .info = msm_sound_focus_info,
  14696. .get = msm_audio_sound_focus_get,
  14697. .put = msm_audio_sound_focus_put,
  14698. },
  14699. {
  14700. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14702. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14703. .info = msm_source_tracking_info,
  14704. .get = msm_audio_source_tracking_get,
  14705. },
  14706. {
  14707. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14708. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14709. .name = "Sound Focus Voice Tx TERT_MI2S",
  14710. .info = msm_sound_focus_info,
  14711. .get = msm_voice_sound_focus_get,
  14712. .put = msm_voice_sound_focus_put,
  14713. },
  14714. {
  14715. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14716. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14717. .name = "Source Tracking Voice Tx TERT_MI2S",
  14718. .info = msm_source_tracking_info,
  14719. .get = msm_voice_source_tracking_get,
  14720. },
  14721. {
  14722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14724. .name = "Sound Focus Audio Tx TERT_MI2S",
  14725. .info = msm_sound_focus_info,
  14726. .get = msm_audio_sound_focus_get,
  14727. .put = msm_audio_sound_focus_put,
  14728. },
  14729. {
  14730. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14732. .name = "Source Tracking Audio Tx TERT_MI2S",
  14733. .info = msm_source_tracking_info,
  14734. .get = msm_audio_source_tracking_get,
  14735. },
  14736. {
  14737. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14738. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14739. .name = "Sound Focus Voice Tx INT3_MI2S",
  14740. .info = msm_sound_focus_info,
  14741. .get = msm_voice_sound_focus_get,
  14742. .put = msm_voice_sound_focus_put,
  14743. },
  14744. {
  14745. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14746. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14747. .name = "Source Tracking Voice Tx INT3_MI2S",
  14748. .info = msm_source_tracking_info,
  14749. .get = msm_voice_source_tracking_get,
  14750. },
  14751. {
  14752. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14753. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14754. .name = "Sound Focus Audio Tx INT3_MI2S",
  14755. .info = msm_sound_focus_info,
  14756. .get = msm_audio_sound_focus_get,
  14757. .put = msm_audio_sound_focus_put,
  14758. },
  14759. {
  14760. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14762. .name = "Source Tracking Audio Tx INT3_MI2S",
  14763. .info = msm_source_tracking_info,
  14764. .get = msm_audio_source_tracking_get,
  14765. },
  14766. };
  14767. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14768. struct snd_ctl_elem_value *ucontrol)
  14769. {
  14770. int ret = 0;
  14771. int item;
  14772. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14773. pr_debug("%s item is %d\n", __func__,
  14774. ucontrol->value.enumerated.item[0]);
  14775. mutex_lock(&routing_lock);
  14776. item = ucontrol->value.enumerated.item[0];
  14777. if (item < e->items) {
  14778. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14779. __func__, e->shift_l, e->values[item]);
  14780. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14781. e->values[item] < MSM_BACKEND_DAI_MAX)
  14782. /* Enable feedback TX path */
  14783. ret = afe_spk_prot_feed_back_cfg(
  14784. msm_bedais[e->values[item]].port_id,
  14785. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14786. else {
  14787. pr_debug("%s values are out of range item %d\n",
  14788. __func__, e->values[item]);
  14789. /* Disable feedback TX path */
  14790. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14791. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14792. else
  14793. ret = -EINVAL;
  14794. }
  14795. } else {
  14796. pr_err("%s item value is out of range item\n", __func__);
  14797. ret = -EINVAL;
  14798. }
  14799. mutex_unlock(&routing_lock);
  14800. return ret;
  14801. }
  14802. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14803. struct snd_ctl_elem_value *ucontrol)
  14804. {
  14805. int ret = 0;
  14806. int item;
  14807. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14808. pr_debug("%s item is %d\n", __func__,
  14809. ucontrol->value.enumerated.item[0]);
  14810. mutex_lock(&routing_lock);
  14811. item = ucontrol->value.enumerated.item[0];
  14812. if (item < e->items) {
  14813. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14814. __func__, e->shift_l, e->values[item]);
  14815. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14816. e->values[item] < MSM_BACKEND_DAI_MAX)
  14817. /* Enable feedback TX path */
  14818. ret = afe_spk_prot_feed_back_cfg(
  14819. msm_bedais[e->values[item]].port_id,
  14820. msm_bedais[e->shift_l].port_id,
  14821. 1, 1, 1);
  14822. else {
  14823. pr_debug("%s values are out of range item %d\n",
  14824. __func__, e->values[item]);
  14825. /* Disable feedback TX path */
  14826. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14827. ret = afe_spk_prot_feed_back_cfg(0,
  14828. 0, 0, 0, 0);
  14829. else
  14830. ret = -EINVAL;
  14831. }
  14832. } else {
  14833. pr_err("%s item value is out of range item\n", __func__);
  14834. ret = -EINVAL;
  14835. }
  14836. mutex_unlock(&routing_lock);
  14837. return ret;
  14838. }
  14839. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14840. struct snd_ctl_elem_value *ucontrol)
  14841. {
  14842. pr_debug("%s\n", __func__);
  14843. return 0;
  14844. }
  14845. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14846. struct snd_ctl_elem_value *ucontrol)
  14847. {
  14848. pr_debug("%s\n", __func__);
  14849. ucontrol->value.enumerated.item[0] = 0;
  14850. return 0;
  14851. }
  14852. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14853. "ZERO", "SLIM4_TX"
  14854. };
  14855. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14856. "ZERO", "SLIM4_TX"
  14857. };
  14858. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14859. "ZERO", "WSA_CDC_DMA_TX_0"
  14860. };
  14861. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14862. "ZERO", "WSA_CDC_DMA_TX_0"
  14863. };
  14864. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14865. "ZERO", "SENARY_TX"
  14866. };
  14867. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14868. "ZERO", "INT5_MI2S_TX"
  14869. };
  14870. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14871. "ZERO", "INT5_MI2S_TX"
  14872. };
  14873. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14874. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14875. };
  14876. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14877. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14878. };
  14879. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14880. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14881. };
  14882. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14883. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14884. };
  14885. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14886. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14887. };
  14888. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14889. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14890. };
  14891. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14892. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14893. };
  14894. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14895. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14896. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14897. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14898. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14899. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14900. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14901. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14902. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14903. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14904. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14905. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14906. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14907. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14908. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14909. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14910. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14911. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14912. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14913. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14914. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14915. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14916. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14917. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14918. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14919. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14920. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14921. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14922. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14923. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14924. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14925. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14926. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14927. spkr_prot_put_vi_lch_port);
  14928. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14929. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14930. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14931. spkr_prot_put_vi_rch_port);
  14932. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14933. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14934. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14935. spkr_prot_put_vi_lch_port);
  14936. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14937. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14938. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14939. spkr_prot_put_vi_rch_port);
  14940. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14941. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14942. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14943. spkr_prot_put_vi_lch_port);
  14944. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14945. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14946. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14947. spkr_prot_put_vi_lch_port);
  14948. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14949. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14950. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14951. spkr_prot_put_vi_rch_port);
  14952. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14953. /* Frontend AIF */
  14954. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14955. * Stream name must contains substring of front-end dai name
  14956. */
  14957. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14958. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14960. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14962. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14964. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14966. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14968. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14970. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14972. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14974. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14976. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14977. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14978. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14980. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14982. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14983. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14984. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14986. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14988. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14989. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14990. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14991. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14992. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14993. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14994. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14995. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14996. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14997. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14998. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14999. "VoiceMMode2 Capture", 0, 0, 0, 0),
  15000. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  15001. 0, 0, 0, 0),
  15002. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  15003. 0, 0, 0, 0),
  15004. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  15005. 0, 0, 0, 0),
  15006. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  15007. 0, 0, 0, 0),
  15008. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  15009. 0, 0, 0, 0),
  15010. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  15011. 0, 0, 0, 0),
  15012. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  15013. 0, 0, 0, 0),
  15014. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  15015. 0, 0, 0, 0),
  15016. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  15017. 0, 0, 0, 0),
  15018. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  15019. 0, 0, 0, 0),
  15020. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  15021. 0, 0, 0, 0),
  15022. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  15023. 0, 0, 0, 0),
  15024. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  15025. 0, 0, 0, 0),
  15026. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  15027. 0, 0, 0, 0),
  15028. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  15029. 0, 0, 0, 0),
  15030. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  15031. 0, 0, 0, 0),
  15032. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  15033. 0, 0, 0, 0),
  15034. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  15035. 0, 0, 0, 0),
  15036. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  15037. 0, 0, 0, 0),
  15038. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15039. 0, 0, 0, 0),
  15040. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15041. 0, 0, 0, 0),
  15042. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15043. 0, 0, 0, 0),
  15044. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15045. 0, 0, 0, 0),
  15046. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15047. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15048. 0, 0, 0, 0),
  15049. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15050. "INT0 MI2S_RX Hostless Playback",
  15051. 0, 0, 0, 0),
  15052. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15053. "INT4 MI2S_RX Hostless Playback",
  15054. 0, 0, 0, 0),
  15055. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15056. "Primary MI2S_RX Hostless Playback",
  15057. 0, 0, 0, 0),
  15058. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15059. "Secondary MI2S_RX Hostless Playback",
  15060. 0, 0, 0, 0),
  15061. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15062. "Tertiary MI2S_RX Hostless Playback",
  15063. 0, 0, 0, 0),
  15064. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15065. "Quaternary MI2S_RX Hostless Playback",
  15066. 0, 0, 0, 0),
  15067. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15068. "Quinary MI2S_RX Hostless Playback",
  15069. 0, 0, 0, 0),
  15070. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15071. 0, 0, 0, 0),
  15072. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15073. 0, 0, 0, 0),
  15074. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15075. 0, 0, 0, 0),
  15076. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15077. 0, 0, 0, 0),
  15078. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15079. 0, 0, 0, 0),
  15080. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15081. "INT3 MI2S_TX Hostless Capture",
  15082. 0, 0, 0, 0),
  15083. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15084. "Tertiary MI2S_TX Hostless Capture",
  15085. 0, 0, 0, 0),
  15086. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15087. "Secondary MI2S_TX Hostless Capture",
  15088. 0, 0, 0, 0),
  15089. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15090. "Primary MI2S_TX Hostless Capture",
  15091. 0, 0, 0, 0),
  15092. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15093. 0, 0, 0, 0),
  15094. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15095. 0, 0, 0, 0),
  15096. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15097. "Quaternary MI2S_TX Hostless Capture",
  15098. 0, 0, 0, 0),
  15099. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15100. "Quinary MI2S_TX Hostless Capture",
  15101. 0, 0, 0, 0),
  15102. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15103. "Primary TDM0 Hostless Playback",
  15104. 0, 0, 0, 0),
  15105. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15106. "Primary TDM0 Hostless Capture",
  15107. 0, 0, 0, 0),
  15108. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15109. "Primary TDM1 Hostless Playback",
  15110. 0, 0, 0, 0),
  15111. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15112. "Primary TDM1 Hostless Capture",
  15113. 0, 0, 0, 0),
  15114. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15115. "Primary TDM2 Hostless Playback",
  15116. 0, 0, 0, 0),
  15117. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15118. "Primary TDM2 Hostless Capture",
  15119. 0, 0, 0, 0),
  15120. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15121. "Primary TDM3 Hostless Playback",
  15122. 0, 0, 0, 0),
  15123. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15124. "Primary TDM3 Hostless Capture",
  15125. 0, 0, 0, 0),
  15126. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15127. "Primary TDM4 Hostless Playback",
  15128. 0, 0, 0, 0),
  15129. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15130. "Primary TDM4 Hostless Capture",
  15131. 0, 0, 0, 0),
  15132. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15133. "Primary TDM5 Hostless Playback",
  15134. 0, 0, 0, 0),
  15135. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15136. "Primary TDM5 Hostless Capture",
  15137. 0, 0, 0, 0),
  15138. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15139. "Primary TDM6 Hostless Playback",
  15140. 0, 0, 0, 0),
  15141. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15142. "Primary TDM6 Hostless Capture",
  15143. 0, 0, 0, 0),
  15144. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15145. "Primary TDM7 Hostless Playback",
  15146. 0, 0, 0, 0),
  15147. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15148. "Primary TDM7 Hostless Capture",
  15149. 0, 0, 0, 0),
  15150. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15151. "Secondary TDM0 Hostless Playback",
  15152. 0, 0, 0, 0),
  15153. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15154. "Secondary TDM0 Hostless Capture",
  15155. 0, 0, 0, 0),
  15156. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15157. "Secondary TDM1 Hostless Playback",
  15158. 0, 0, 0, 0),
  15159. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15160. "Secondary TDM1 Hostless Capture",
  15161. 0, 0, 0, 0),
  15162. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15163. "Secondary TDM2 Hostless Playback",
  15164. 0, 0, 0, 0),
  15165. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15166. "Secondary TDM2 Hostless Capture",
  15167. 0, 0, 0, 0),
  15168. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15169. "Secondary TDM3 Hostless Playback",
  15170. 0, 0, 0, 0),
  15171. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15172. "Secondary TDM3 Hostless Capture",
  15173. 0, 0, 0, 0),
  15174. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15175. "Secondary TDM4 Hostless Playback",
  15176. 0, 0, 0, 0),
  15177. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15178. "Secondary TDM4 Hostless Capture",
  15179. 0, 0, 0, 0),
  15180. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15181. "Secondary TDM5 Hostless Playback",
  15182. 0, 0, 0, 0),
  15183. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15184. "Secondary TDM5 Hostless Capture",
  15185. 0, 0, 0, 0),
  15186. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15187. "Secondary TDM6 Hostless Playback",
  15188. 0, 0, 0, 0),
  15189. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15190. "Secondary TDM6 Hostless Capture",
  15191. 0, 0, 0, 0),
  15192. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15193. "Secondary TDM7 Hostless Playback",
  15194. 0, 0, 0, 0),
  15195. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15196. "Secondary TDM7 Hostless Capture",
  15197. 0, 0, 0, 0),
  15198. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15199. "Tertiary TDM0 Hostless Playback",
  15200. 0, 0, 0, 0),
  15201. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15202. "Tertiary TDM0 Hostless Capture",
  15203. 0, 0, 0, 0),
  15204. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15205. "Tertiary TDM1 Hostless Playback",
  15206. 0, 0, 0, 0),
  15207. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15208. "Tertiary TDM1 Hostless Capture",
  15209. 0, 0, 0, 0),
  15210. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15211. "Tertiary TDM2 Hostless Playback",
  15212. 0, 0, 0, 0),
  15213. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15214. "Tertiary TDM2 Hostless Capture",
  15215. 0, 0, 0, 0),
  15216. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15217. "Tertiary TDM3 Hostless Playback",
  15218. 0, 0, 0, 0),
  15219. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15220. "Tertiary TDM3 Hostless Capture",
  15221. 0, 0, 0, 0),
  15222. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15223. "Tertiary TDM4 Hostless Playback",
  15224. 0, 0, 0, 0),
  15225. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15226. "Tertiary TDM4 Hostless Capture",
  15227. 0, 0, 0, 0),
  15228. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15229. "Tertiary TDM5 Hostless Playback",
  15230. 0, 0, 0, 0),
  15231. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15232. "Tertiary TDM5 Hostless Capture",
  15233. 0, 0, 0, 0),
  15234. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15235. "Tertiary TDM6 Hostless Playback",
  15236. 0, 0, 0, 0),
  15237. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15238. "Tertiary TDM6 Hostless Capture",
  15239. 0, 0, 0, 0),
  15240. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15241. "Tertiary TDM7 Hostless Playback",
  15242. 0, 0, 0, 0),
  15243. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15244. "Tertiary TDM7 Hostless Capture",
  15245. 0, 0, 0, 0),
  15246. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15247. "Quaternary TDM0 Hostless Playback",
  15248. 0, 0, 0, 0),
  15249. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15250. "Quaternary TDM0 Hostless Capture",
  15251. 0, 0, 0, 0),
  15252. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15253. "Quaternary TDM1 Hostless Playback",
  15254. 0, 0, 0, 0),
  15255. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15256. "Quaternary TDM1 Hostless Capture",
  15257. 0, 0, 0, 0),
  15258. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15259. "Quaternary TDM2 Hostless Playback",
  15260. 0, 0, 0, 0),
  15261. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15262. "Quaternary TDM2 Hostless Capture",
  15263. 0, 0, 0, 0),
  15264. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15265. "Quaternary TDM3 Hostless Playback",
  15266. 0, 0, 0, 0),
  15267. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15268. "Quaternary TDM3 Hostless Capture",
  15269. 0, 0, 0, 0),
  15270. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15271. "Quaternary TDM4 Hostless Playback",
  15272. 0, 0, 0, 0),
  15273. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15274. "Quaternary TDM4 Hostless Capture",
  15275. 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15277. "Quaternary TDM5 Hostless Playback",
  15278. 0, 0, 0, 0),
  15279. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15280. "Quaternary TDM5 Hostless Capture",
  15281. 0, 0, 0, 0),
  15282. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15283. "Quaternary TDM6 Hostless Playback",
  15284. 0, 0, 0, 0),
  15285. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15286. "Quaternary TDM6 Hostless Capture",
  15287. 0, 0, 0, 0),
  15288. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15289. "Quaternary TDM7 Hostless Playback",
  15290. 0, 0, 0, 0),
  15291. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15292. "Quaternary TDM7 Hostless Capture",
  15293. 0, 0, 0, 0),
  15294. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15295. "Quinary TDM0 Hostless Playback",
  15296. 0, 0, 0, 0),
  15297. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15298. "Quinary TDM0 Hostless Capture",
  15299. 0, 0, 0, 0),
  15300. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15301. "Quinary TDM1 Hostless Playback",
  15302. 0, 0, 0, 0),
  15303. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15304. "Quinary TDM1 Hostless Capture",
  15305. 0, 0, 0, 0),
  15306. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15307. "Quinary TDM2 Hostless Playback",
  15308. 0, 0, 0, 0),
  15309. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15310. "Quinary TDM2 Hostless Capture",
  15311. 0, 0, 0, 0),
  15312. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15313. "Quinary TDM3 Hostless Playback",
  15314. 0, 0, 0, 0),
  15315. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15316. "Quinary TDM3 Hostless Capture",
  15317. 0, 0, 0, 0),
  15318. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15319. "Quinary TDM4 Hostless Playback",
  15320. 0, 0, 0, 0),
  15321. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15322. "Quinary TDM4 Hostless Capture",
  15323. 0, 0, 0, 0),
  15324. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15325. "Quinary TDM5 Hostless Playback",
  15326. 0, 0, 0, 0),
  15327. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15328. "Quinary TDM5 Hostless Capture",
  15329. 0, 0, 0, 0),
  15330. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15331. "Quinary TDM6 Hostless Playback",
  15332. 0, 0, 0, 0),
  15333. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15334. "Quinary TDM6 Hostless Capture",
  15335. 0, 0, 0, 0),
  15336. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15337. "Quinary TDM7 Hostless Playback",
  15338. 0, 0, 0, 0),
  15339. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15340. "Quinary TDM7 Hostless Capture",
  15341. 0, 0, 0, 0),
  15342. /* LSM */
  15343. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15344. 0, 0, 0, 0),
  15345. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15346. 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15348. 0, 0, 0, 0),
  15349. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15350. 0, 0, 0, 0),
  15351. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15352. 0, 0, 0, 0),
  15353. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15354. 0, 0, 0, 0),
  15355. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15356. 0, 0, 0, 0),
  15357. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15358. 0, 0, 0, 0),
  15359. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15361. /* Backend AIF */
  15362. /* Stream name equals to backend dai link stream name */
  15363. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15364. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15365. 0, 0, 0, 0),
  15366. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15367. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15369. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15371. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15372. 0, 0, 0, 0),
  15373. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15374. 0, 0, 0, 0),
  15375. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15377. 0, 0, 0, 0),
  15378. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15379. 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15383. "Secondary MI2S Playback SD1",
  15384. 0, 0, 0, 0),
  15385. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15386. 0, 0, 0, 0),
  15387. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15388. 0, 0, 0, 0),
  15389. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15390. 0, 0, 0, 0),
  15391. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15392. 0, 0, 0, 0),
  15393. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15394. 0, 0, 0, 0),
  15395. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15396. 0, 0, 0, 0),
  15397. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15398. 0, 0, 0, 0),
  15399. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15400. 0, 0, 0, 0),
  15401. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15402. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15403. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15404. 0, 0, 0, 0),
  15405. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15406. 0, 0, 0, 0),
  15407. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15408. 0, 0, 0, 0),
  15409. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15410. 0, 0, 0, 0),
  15411. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15412. 0, 0, 0, 0),
  15413. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15414. 0, 0, 0, 0),
  15415. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15416. 0, 0, 0, 0),
  15417. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15419. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15420. 0, 0, 0, 0),
  15421. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15422. 0, 0, 0, 0),
  15423. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15424. 0, 0, 0, 0),
  15425. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15426. 0, 0, 0, 0),
  15427. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15428. 0, 0, 0, 0),
  15429. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15430. 0, 0, 0, 0),
  15431. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15432. 0, 0, 0, 0),
  15433. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15434. 0, 0, 0, 0),
  15435. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15436. 0, 0, 0, 0),
  15437. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15438. 0, 0, 0, 0),
  15439. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15440. 0, 0, 0, 0),
  15441. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15442. 0, 0, 0, 0),
  15443. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15444. 0, 0, 0, 0),
  15445. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15446. 0, 0, 0, 0),
  15447. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15448. 0, 0, 0, 0),
  15449. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15450. 0, 0, 0, 0),
  15451. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15452. 0, 0, 0, 0),
  15453. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15454. 0, 0, 0, 0),
  15455. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15456. 0, 0, 0, 0),
  15457. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15458. 0, 0, 0, 0),
  15459. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15460. 0, 0, 0, 0),
  15461. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15462. 0, 0, 0, 0),
  15463. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15464. 0, 0, 0, 0),
  15465. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15466. 0, 0, 0, 0),
  15467. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15468. 0, 0, 0, 0),
  15469. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15470. 0, 0, 0, 0),
  15471. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15472. 0, 0, 0, 0),
  15473. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15474. 0, 0, 0, 0),
  15475. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15476. 0, 0, 0, 0),
  15477. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15478. 0, 0, 0, 0),
  15479. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15480. 0, 0, 0, 0),
  15481. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15482. 0, 0, 0, 0),
  15483. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15484. 0, 0, 0, 0),
  15485. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15486. 0, 0, 0, 0),
  15487. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15488. 0, 0, 0, 0),
  15489. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15490. 0, 0, 0, 0),
  15491. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15492. 0, 0, 0, 0),
  15493. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15494. 0, 0, 0, 0),
  15495. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15496. 0, 0, 0, 0),
  15497. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15498. 0, 0, 0, 0),
  15499. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15500. 0, 0, 0, 0),
  15501. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15502. 0, 0, 0, 0),
  15503. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15504. 0, 0, 0, 0),
  15505. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15506. 0, 0, 0, 0),
  15507. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15508. 0, 0, 0, 0),
  15509. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15510. 0, 0, 0, 0),
  15511. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15512. 0, 0, 0, 0),
  15513. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15514. 0, 0, 0, 0),
  15515. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15516. 0, 0, 0, 0),
  15517. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15518. 0, 0, 0, 0),
  15519. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15520. 0, 0, 0, 0),
  15521. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15522. 0, 0, 0, 0),
  15523. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15524. 0, 0, 0, 0),
  15525. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15526. 0, 0, 0, 0),
  15527. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15528. 0, 0, 0, 0),
  15529. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15530. 0, 0, 0, 0),
  15531. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15532. 0, 0, 0, 0),
  15533. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15534. 0, 0, 0, 0),
  15535. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15536. 0, 0, 0, 0),
  15537. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15538. 0, 0, 0, 0),
  15539. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15540. 0, 0, 0, 0),
  15541. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15542. 0, 0, 0, 0),
  15543. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15544. 0, 0, 0, 0),
  15545. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15546. 0, 0, 0, 0),
  15547. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15548. 0, 0, 0, 0),
  15549. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15550. 0, 0, 0, 0),
  15551. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15552. 0, 0, 0, 0),
  15553. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15554. 0, 0, 0, 0),
  15555. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15556. 0, 0, 0, 0),
  15557. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15558. 0, 0, 0, 0),
  15559. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15560. 0, 0, 0, 0),
  15561. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15562. 0, 0, 0, 0),
  15563. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15564. 0, 0, 0, 0),
  15565. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15566. 0, 0, 0, 0),
  15567. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15568. 0, 0, 0, 0),
  15569. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15570. 0, 0, 0, 0),
  15571. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15572. 0, 0, 0, 0),
  15573. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15574. 0, 0, 0, 0),
  15575. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15576. 0, 0, 0, 0),
  15577. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15578. 0, 0, 0, 0),
  15579. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15580. 0, 0, 0, 0),
  15581. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15582. 0, 0, 0, 0),
  15583. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15584. 0, 0, 0, 0),
  15585. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15586. 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15588. 0, 0, 0, 0),
  15589. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15590. 0, 0, 0, 0),
  15591. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15592. 0, 0, 0, 0),
  15593. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15594. 0, 0, 0, 0),
  15595. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15596. 0, 0, 0, 0),
  15597. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15598. 0, 0, 0, 0),
  15599. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15600. 0, 0, 0, 0),
  15601. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15602. 0, 0, 0, 0),
  15603. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15604. 0, 0, 0, 0),
  15605. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15606. 0, 0, 0, 0),
  15607. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15608. 0, 0, 0, 0),
  15609. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15610. 0, 0, 0, 0),
  15611. /* incall */
  15612. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15613. 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15615. 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15617. 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15619. 0, 0, 0, 0),
  15620. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15621. 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15623. 0, 0, 0, 0),
  15624. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15625. 0, 0, 0, 0),
  15626. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15627. 0, 0, 0, 0),
  15628. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15629. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15630. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15631. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15632. 0, 0, 0, 0),
  15633. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15634. 0, 0, 0, 0),
  15635. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15636. 0, 0, 0, 0),
  15637. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15638. 0, 0, 0, 0),
  15639. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15640. 0, 0, 0, 0),
  15641. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15642. 0, 0, 0, 0),
  15643. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15644. 0, 0, 0, 0),
  15645. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15646. 0, 0, 0, 0),
  15647. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15648. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15649. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15650. 0, 0, 0, 0),
  15651. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15652. 0, 0, 0, 0),
  15653. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15654. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15655. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15656. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15657. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15658. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15659. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15660. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15661. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15662. /* In- call recording */
  15663. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15664. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15665. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15666. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15667. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15668. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15669. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15670. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15671. /* Switch Definitions */
  15672. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15673. &slim_fm_switch_mixer_controls),
  15674. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15675. &slim1_fm_switch_mixer_controls),
  15676. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15677. &slim3_fm_switch_mixer_controls),
  15678. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15679. &slim4_fm_switch_mixer_controls),
  15680. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15681. &slim6_fm_switch_mixer_controls),
  15682. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15683. &pcm_rx_switch_mixer_controls),
  15684. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15685. &int0_mi2s_rx_switch_mixer_controls),
  15686. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15687. &int4_mi2s_rx_switch_mixer_controls),
  15688. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15689. &pri_mi2s_rx_switch_mixer_controls),
  15690. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15691. &sec_mi2s_rx_switch_mixer_controls),
  15692. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15693. &tert_mi2s_rx_switch_mixer_controls),
  15694. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15695. &quat_mi2s_rx_switch_mixer_controls),
  15696. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15697. &quin_mi2s_rx_switch_mixer_controls),
  15698. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15699. &hfp_pri_aux_switch_mixer_controls),
  15700. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15701. &hfp_aux_switch_mixer_controls),
  15702. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15703. &hfp_int_switch_mixer_controls),
  15704. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15705. &hfp_slim7_switch_mixer_controls),
  15706. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15707. &usb_switch_mixer_controls),
  15708. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15709. &a2dp_slim7_switch_mixer_controls),
  15710. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  15711. &cdc_dma_fm_switch_mixer_controls),
  15712. /* Mixer definitions */
  15713. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15714. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15715. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15716. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15717. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15718. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15719. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15720. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15721. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15722. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15723. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15724. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15725. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15726. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15727. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15728. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15729. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15730. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15731. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15732. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15733. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15734. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15735. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15736. quaternary_mi2s_rx_mixer_controls,
  15737. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15738. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15739. tertiary_mi2s_rx_mixer_controls,
  15740. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15741. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15742. secondary_mi2s_rx_mixer_controls,
  15743. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15744. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15745. secondary_mi2s_rx2_mixer_controls,
  15746. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15747. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15748. primary_mi2s_rx_mixer_controls,
  15749. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15750. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15751. int0_mi2s_rx_mixer_controls,
  15752. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15753. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15754. int4_mi2s_rx_mixer_controls,
  15755. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15756. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15757. quinary_mi2s_rx_mixer_controls,
  15758. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15759. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15760. pri_tdm_rx_0_mixer_controls,
  15761. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15762. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15763. pri_tdm_rx_1_mixer_controls,
  15764. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15765. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15766. pri_tdm_rx_2_mixer_controls,
  15767. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15768. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15769. pri_tdm_rx_3_mixer_controls,
  15770. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15771. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15772. pri_tdm_tx_0_mixer_controls,
  15773. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15774. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15775. sec_tdm_rx_0_mixer_controls,
  15776. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15777. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15778. sec_tdm_rx_1_mixer_controls,
  15779. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15780. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15781. sec_tdm_rx_2_mixer_controls,
  15782. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15783. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15784. sec_tdm_rx_3_mixer_controls,
  15785. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15786. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15787. sec_tdm_tx_0_mixer_controls,
  15788. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15789. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15790. tert_tdm_rx_0_mixer_controls,
  15791. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15792. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15793. tert_tdm_tx_0_mixer_controls,
  15794. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15795. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15796. tert_tdm_rx_1_mixer_controls,
  15797. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15798. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15799. tert_tdm_rx_2_mixer_controls,
  15800. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15801. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15802. tert_tdm_rx_3_mixer_controls,
  15803. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15805. tert_tdm_rx_4_mixer_controls,
  15806. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15807. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15808. quat_tdm_rx_0_mixer_controls,
  15809. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15810. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15811. quat_tdm_tx_0_mixer_controls,
  15812. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15813. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15814. quat_tdm_rx_1_mixer_controls,
  15815. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15816. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15817. quat_tdm_rx_2_mixer_controls,
  15818. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15819. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15820. quat_tdm_rx_3_mixer_controls,
  15821. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15822. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15823. quin_tdm_rx_0_mixer_controls,
  15824. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15825. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15826. quin_tdm_tx_0_mixer_controls,
  15827. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15829. quin_tdm_rx_1_mixer_controls,
  15830. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15831. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15832. quin_tdm_rx_2_mixer_controls,
  15833. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15834. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15835. quin_tdm_rx_3_mixer_controls,
  15836. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15837. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15838. wsa_cdc_dma_rx_0_mixer_controls,
  15839. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15840. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15841. wsa_cdc_dma_rx_1_mixer_controls,
  15842. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15843. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15844. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15845. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15846. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15847. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15848. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15849. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15850. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15851. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15852. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15853. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15854. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15855. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15856. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15857. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15858. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15859. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15860. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15861. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15862. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15863. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15864. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15865. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15866. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15868. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15869. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15870. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15871. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15872. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15873. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15874. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15875. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15876. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15877. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15878. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15879. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15880. tert_auxpcm_rx_mixer_controls,
  15881. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15882. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15883. quat_auxpcm_rx_mixer_controls,
  15884. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15885. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15886. quin_auxpcm_rx_mixer_controls,
  15887. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15888. /* incall */
  15889. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15890. incall_music_delivery_mixer_controls,
  15891. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15892. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15893. incall_music2_delivery_mixer_controls,
  15894. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15895. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15896. slimbus_4_rx_mixer_controls,
  15897. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15898. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15899. slimbus_6_rx_mixer_controls,
  15900. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15901. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15902. usb_audio_rx_mixer_controls,
  15903. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15904. /* Voice Mixer */
  15905. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15906. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15907. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15908. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15909. SND_SOC_NOPM, 0, 0,
  15910. sec_i2s_rx_voice_mixer_controls,
  15911. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15912. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15913. SND_SOC_NOPM, 0, 0,
  15914. sec_mi2s_rx_voice_mixer_controls,
  15915. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15916. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15917. SND_SOC_NOPM, 0, 0,
  15918. slimbus_rx_voice_mixer_controls,
  15919. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15920. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15921. SND_SOC_NOPM, 0, 0,
  15922. bt_sco_rx_voice_mixer_controls,
  15923. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15924. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15925. SND_SOC_NOPM, 0, 0,
  15926. afe_pcm_rx_voice_mixer_controls,
  15927. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15928. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15929. SND_SOC_NOPM, 0, 0,
  15930. aux_pcm_rx_voice_mixer_controls,
  15931. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15932. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15933. SND_SOC_NOPM, 0, 0,
  15934. sec_aux_pcm_rx_voice_mixer_controls,
  15935. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15936. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15937. SND_SOC_NOPM, 0, 0,
  15938. tert_aux_pcm_rx_voice_mixer_controls,
  15939. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15940. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15941. SND_SOC_NOPM, 0, 0,
  15942. quat_aux_pcm_rx_voice_mixer_controls,
  15943. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15944. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15945. SND_SOC_NOPM, 0, 0,
  15946. quin_aux_pcm_rx_voice_mixer_controls,
  15947. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15948. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15949. SND_SOC_NOPM, 0, 0,
  15950. hdmi_rx_voice_mixer_controls,
  15951. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15952. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15953. SND_SOC_NOPM, 0, 0,
  15954. mi2s_rx_voice_mixer_controls,
  15955. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15956. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15957. SND_SOC_NOPM, 0, 0,
  15958. pri_mi2s_rx_voice_mixer_controls,
  15959. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15960. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15961. SND_SOC_NOPM, 0, 0,
  15962. int0_mi2s_rx_voice_mixer_controls,
  15963. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15964. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15965. SND_SOC_NOPM, 0, 0,
  15966. int4_mi2s_rx_voice_mixer_controls,
  15967. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15968. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15969. SND_SOC_NOPM, 0, 0,
  15970. tert_mi2s_rx_voice_mixer_controls,
  15971. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15972. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15973. SND_SOC_NOPM, 0, 0,
  15974. quat_mi2s_rx_voice_mixer_controls,
  15975. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15976. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15977. SND_SOC_NOPM, 0, 0,
  15978. quin_mi2s_rx_voice_mixer_controls,
  15979. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15980. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15981. SND_SOC_NOPM, 0, 0,
  15982. quat_tdm_rx_2_voice_mixer_controls,
  15983. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15984. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15985. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15986. ARRAY_SIZE(tx_voip_mixer_controls)),
  15987. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15988. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15989. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15990. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15991. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15992. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15993. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15994. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15995. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15996. int_bt_a2dp_rx_mixer_controls,
  15997. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15998. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15999. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  16000. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  16001. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  16002. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16003. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  16004. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16005. tx_voice2_stub_mixer_controls,
  16006. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  16007. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  16008. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  16009. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  16010. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  16011. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  16012. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  16013. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16014. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  16015. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  16016. SND_SOC_NOPM, 0, 0,
  16017. slimbus_6_rx_voice_mixer_controls,
  16018. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  16019. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16020. slimbus_7_rx_voice_mixer_controls,
  16021. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  16022. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16023. slimbus_8_rx_voice_mixer_controls,
  16024. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  16025. /* port mixer */
  16026. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  16027. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  16028. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  16029. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  16030. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  16031. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  16032. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  16033. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  16034. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  16035. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  16036. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  16037. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  16038. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  16039. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  16040. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16041. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16042. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16043. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16044. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16045. sbus_1_rx_port_mixer_controls,
  16046. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16047. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16048. bt_sco_rx_port_mixer_controls,
  16049. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16050. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16051. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16052. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16053. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16054. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16055. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16056. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16057. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16058. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16059. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16060. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16061. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16062. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16063. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16064. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16065. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16066. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16067. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16068. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16069. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16070. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16071. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16072. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16073. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16074. primary_mi2s_rx_port_mixer_controls,
  16075. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16076. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16077. sec_mi2s_rx_port_mixer_controls,
  16078. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16079. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16080. tert_mi2s_rx_port_mixer_controls,
  16081. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16082. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16083. quat_mi2s_rx_port_mixer_controls,
  16084. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16085. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16086. quin_mi2s_rx_port_mixer_controls,
  16087. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16088. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16089. pri_tdm_rx_0_port_mixer_controls,
  16090. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16091. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16092. pri_tdm_rx_1_port_mixer_controls,
  16093. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16094. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16095. pri_tdm_rx_2_port_mixer_controls,
  16096. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16097. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16098. pri_tdm_rx_3_port_mixer_controls,
  16099. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16100. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16101. sec_tdm_rx_0_port_mixer_controls,
  16102. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16103. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16104. sec_tdm_rx_1_port_mixer_controls,
  16105. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16106. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16107. sec_tdm_rx_2_port_mixer_controls,
  16108. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16110. sec_tdm_rx_3_port_mixer_controls,
  16111. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16112. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16113. tert_tdm_rx_0_port_mixer_controls,
  16114. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16115. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16116. tert_tdm_rx_1_port_mixer_controls,
  16117. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16118. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16119. tert_tdm_rx_2_port_mixer_controls,
  16120. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16121. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16122. tert_tdm_rx_3_port_mixer_controls,
  16123. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16124. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16125. quat_tdm_rx_0_port_mixer_controls,
  16126. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16127. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16128. quat_tdm_rx_1_port_mixer_controls,
  16129. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16130. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16131. quat_tdm_rx_2_port_mixer_controls,
  16132. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16133. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16134. quat_tdm_rx_3_port_mixer_controls,
  16135. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16136. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16137. quin_tdm_rx_0_port_mixer_controls,
  16138. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16139. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16140. quin_tdm_rx_1_port_mixer_controls,
  16141. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16142. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16143. quin_tdm_rx_2_port_mixer_controls,
  16144. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16145. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16146. quin_tdm_rx_3_port_mixer_controls,
  16147. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16148. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16149. int0_mi2s_rx_port_mixer_controls,
  16150. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16151. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16152. int4_mi2s_rx_port_mixer_controls,
  16153. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16154. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16155. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16156. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16157. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16158. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16159. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16160. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16161. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16162. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16163. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16164. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16165. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16166. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16167. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16168. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16169. /* lsm mixer definitions */
  16170. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16171. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16172. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16173. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16174. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16175. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16176. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16177. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16178. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16179. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16180. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16181. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16182. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16183. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16184. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16185. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16186. /* Virtual Pins to force backends ON atm */
  16187. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16188. SND_SOC_DAPM_INPUT("BE_IN"),
  16189. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16190. &slim0_rx_vi_fb_lch_mux),
  16191. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16192. &slim0_rx_vi_fb_rch_mux),
  16193. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16194. &wsa_rx_0_vi_fb_lch_mux),
  16195. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16196. &wsa_rx_0_vi_fb_rch_mux),
  16197. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16198. &mi2s_rx_vi_fb_mux),
  16199. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16200. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16201. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16202. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16203. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16204. &voc_ext_ec_mux),
  16205. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16206. &ext_ec_ref_mux_ul1),
  16207. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16208. &ext_ec_ref_mux_ul2),
  16209. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16210. &ext_ec_ref_mux_ul3),
  16211. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16212. &ext_ec_ref_mux_ul4),
  16213. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16214. &ext_ec_ref_mux_ul5),
  16215. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16216. &ext_ec_ref_mux_ul6),
  16217. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16218. &ext_ec_ref_mux_ul8),
  16219. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16220. &ext_ec_ref_mux_ul9),
  16221. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16222. &ext_ec_ref_mux_ul10),
  16223. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16224. &ext_ec_ref_mux_ul16),
  16225. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16226. &ext_ec_ref_mux_ul17),
  16227. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16228. &ext_ec_ref_mux_ul18),
  16229. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16230. &ext_ec_ref_mux_ul19),
  16231. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16232. &ext_ec_ref_mux_ul28),
  16233. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16234. &ext_ec_ref_mux_ul29),
  16235. };
  16236. static const struct snd_soc_dapm_route intercon[] = {
  16237. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16238. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16239. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16240. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16241. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16242. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16243. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16244. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16245. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16246. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16247. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16248. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16249. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16250. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16251. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16252. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16253. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16254. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16255. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16256. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16257. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16258. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16259. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16260. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16261. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16262. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16263. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16264. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16265. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16266. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16267. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16268. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16269. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16270. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16271. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16272. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16273. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16274. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16275. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16276. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16277. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16278. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16279. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16280. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16281. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16282. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16283. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16284. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16285. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16286. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16287. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16288. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16289. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16290. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16291. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16292. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16293. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16294. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16295. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16296. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16297. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16298. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16299. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16300. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16301. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16302. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16303. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16304. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16305. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16306. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16307. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16308. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16309. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16310. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16311. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16312. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16313. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16314. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16315. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16316. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16317. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16318. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16319. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16320. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16321. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16322. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16323. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16324. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16325. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16326. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16327. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16328. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16329. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16330. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16331. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16332. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16333. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16334. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16335. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16336. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16337. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16338. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16339. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16340. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16341. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16342. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16343. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16344. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16345. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16346. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16347. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16348. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16349. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16350. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16351. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16352. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16353. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16354. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16355. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16356. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16357. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16358. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16359. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16360. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16361. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16362. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16363. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16364. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16365. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16366. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16367. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16368. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16369. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16370. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16371. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16372. {"HDMI", NULL, "HDMI Mixer"},
  16373. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16374. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16375. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16376. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16377. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16378. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16379. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16380. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16381. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16382. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16383. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16384. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16385. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16386. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16387. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16388. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16389. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16390. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16391. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16392. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16393. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16394. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16395. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16396. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16397. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16398. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16399. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16400. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16401. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16402. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16403. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16404. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16405. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16406. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16407. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16408. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16409. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16410. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16411. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16412. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16413. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16414. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16415. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16416. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16417. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16418. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16419. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16420. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16421. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16422. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16423. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16424. /* incall */
  16425. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16426. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16427. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16428. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16429. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16430. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16431. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16432. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16433. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16434. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16435. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16436. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16437. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16438. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16439. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16440. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16441. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16442. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16443. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16444. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16445. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16446. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16447. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16448. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16449. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16450. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16451. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16452. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16453. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16454. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16455. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16456. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16457. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16458. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16459. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16460. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16461. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16462. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16463. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16464. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16465. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16466. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16467. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16468. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16469. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16470. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16471. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16472. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16473. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16474. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16475. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16476. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16477. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16478. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16479. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16480. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16481. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16482. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16483. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16484. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16485. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16486. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16487. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16488. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16489. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16490. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16491. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16492. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16493. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16494. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16495. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16496. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16497. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16498. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16499. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16500. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16501. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16502. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16503. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16504. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16505. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16506. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16507. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16508. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16509. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16510. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16511. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16512. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16513. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16514. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16515. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16516. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16517. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16518. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16519. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16520. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16521. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16522. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16523. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16524. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16525. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16526. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16527. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16528. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16529. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16530. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16531. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16532. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16533. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16534. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16535. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16536. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16537. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16538. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16539. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16540. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16541. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16542. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16543. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16544. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16545. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16546. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16547. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16548. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16549. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16550. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16551. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16552. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16553. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16554. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16555. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16556. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16557. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16558. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16559. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16560. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16561. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16562. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16563. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16564. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16565. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16566. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16567. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16568. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16569. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16570. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16571. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16572. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16573. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16574. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16575. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16576. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16577. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16578. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16579. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16580. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16581. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16582. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16583. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16584. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16585. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16586. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16587. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16588. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16589. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16590. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16591. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16592. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16593. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16594. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16595. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16596. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16597. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16598. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16599. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16600. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16601. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16602. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16603. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16604. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16605. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16606. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16607. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16608. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16609. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16610. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16611. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16612. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16613. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16614. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16615. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16616. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16617. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16618. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16619. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16620. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16621. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16622. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16623. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16624. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16625. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16626. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16627. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16628. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16629. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16630. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16631. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16632. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16633. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16634. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16635. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16636. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16637. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16638. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16639. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16640. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16641. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16642. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16643. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16644. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16645. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16646. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16647. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16648. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16649. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16650. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16651. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16652. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16653. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16654. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16655. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16656. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16657. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16658. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16659. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16660. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16661. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16662. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16663. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16664. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16665. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16666. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16667. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16668. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16669. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16670. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16671. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16672. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16673. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16674. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16675. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16676. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16677. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16678. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16679. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16680. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16681. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16682. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16683. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16684. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16685. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16686. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16687. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16688. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16689. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16690. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16691. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16692. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16693. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16694. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16695. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16696. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16697. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16698. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16699. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16700. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16701. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16702. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16703. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16704. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16705. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16706. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16707. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16708. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16709. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16710. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16711. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16712. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16713. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16714. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16715. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16716. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16717. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16718. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16719. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16720. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16721. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16722. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16723. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16724. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16725. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16726. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16727. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16728. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16729. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16730. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16731. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16732. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16733. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16734. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16735. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16736. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16737. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16738. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16739. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16740. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16741. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16742. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16743. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16744. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16745. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16746. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16747. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16748. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16749. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16750. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16751. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16752. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16753. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16754. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16755. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16756. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16757. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16758. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16759. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16760. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16761. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16762. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16763. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16764. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16765. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16766. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16767. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16768. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16769. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16770. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16771. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16772. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16773. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16774. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16775. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16776. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16777. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16778. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16779. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16780. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16781. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16782. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16783. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16784. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16785. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16786. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16787. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16788. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16789. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16790. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16791. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16792. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16793. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16794. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16795. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16796. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16797. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16798. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16799. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16800. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16801. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16802. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16803. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16804. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16805. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16806. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16807. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16808. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16809. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16810. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16811. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16812. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16813. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16814. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16815. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16816. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16817. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16818. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16819. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16820. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16821. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16822. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16823. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16824. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16825. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16826. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16827. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16828. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16829. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16830. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16831. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16832. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16833. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16834. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16835. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16836. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16837. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16838. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16839. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16840. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16841. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16842. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16843. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16844. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16845. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16846. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16847. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16848. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16849. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16850. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16851. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16852. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16853. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16854. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16855. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16856. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16857. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16858. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16859. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16860. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16861. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16862. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16863. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16864. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16865. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16866. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16867. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16868. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16869. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16870. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16871. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16872. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16873. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16874. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16875. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16876. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16877. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16878. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16879. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16880. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16881. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16882. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16883. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16884. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16885. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16886. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16887. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16888. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16889. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16890. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16891. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16892. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16893. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16894. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16895. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16896. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16897. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16898. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16899. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16900. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16901. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16902. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16903. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16904. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16905. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16906. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16907. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16908. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16909. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16910. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16911. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16912. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16913. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16914. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16915. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16916. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16917. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16918. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16919. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16920. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16921. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16922. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16923. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16924. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16925. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16926. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16927. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16928. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16929. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16930. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16931. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16932. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16933. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16934. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16935. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16936. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16937. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16938. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16939. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16940. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16941. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16942. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16943. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16944. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16945. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16946. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16947. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16948. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16949. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16950. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16951. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16952. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16953. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16954. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16955. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16956. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16957. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16958. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16959. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16960. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16961. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16962. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16963. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16964. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16965. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16966. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16967. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16968. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16969. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16970. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16971. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16972. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16973. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16974. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16975. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16976. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16977. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16978. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16979. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16980. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16981. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16982. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16983. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16984. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16985. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16986. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16987. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16988. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16989. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16990. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16991. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16992. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16993. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16994. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16995. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16996. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16997. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16998. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16999. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17000. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17001. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17002. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17003. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17004. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17005. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17006. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17007. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17008. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17009. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17010. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17011. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  17012. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17013. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17014. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17015. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17016. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17017. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17018. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17019. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17020. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17021. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17022. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17023. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17024. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17025. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17026. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17027. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17028. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17029. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  17030. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17031. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17032. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17033. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17034. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17035. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17036. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17037. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17038. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17039. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17040. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17041. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17042. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17043. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17044. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17045. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17046. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17047. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17048. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17049. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17050. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17051. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17052. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17053. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17054. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17055. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17056. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17057. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17058. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17059. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17060. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17061. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17062. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17063. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17064. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17065. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17066. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17067. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17068. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17069. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17070. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17071. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17072. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17073. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17074. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17075. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17076. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17077. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17078. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17079. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17080. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17081. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17082. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17083. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17084. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17085. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17086. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17087. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17088. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17089. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17090. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17091. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17092. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17093. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17094. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17095. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17096. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17097. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17098. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17099. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17100. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17101. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17102. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17103. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17104. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17105. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17106. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17107. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17108. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17109. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17110. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17111. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17112. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17113. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17114. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17115. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17116. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17117. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17118. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17119. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17120. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17121. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17122. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17123. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17124. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17125. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17126. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17127. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17128. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17129. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17130. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17131. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17132. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17133. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17134. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17135. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17136. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17137. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17138. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17139. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17140. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17141. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17142. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17143. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17144. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17145. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17146. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17147. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17148. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17149. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17150. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17151. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17152. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17153. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17154. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17155. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17156. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17157. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17158. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17159. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17160. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17161. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17162. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17163. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17164. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17165. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17166. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17167. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17168. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17169. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17170. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17171. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17172. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17173. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17174. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17175. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17176. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17177. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17178. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17179. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17180. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17181. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17182. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17183. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17184. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17185. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17186. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17187. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17188. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17189. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17190. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17191. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17192. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17193. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17194. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17195. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17196. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17197. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17198. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17199. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17200. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17201. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17202. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17203. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17204. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17205. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17206. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17207. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17208. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17209. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17210. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17211. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17212. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17213. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17214. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17215. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17216. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17217. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17218. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17219. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17220. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17221. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17222. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17223. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17224. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17225. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17226. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17227. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17228. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17229. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17230. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17231. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17232. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17233. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17234. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17235. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17236. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17237. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17238. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17239. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17240. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17241. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17242. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17243. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17244. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17245. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17246. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17247. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17248. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17249. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17250. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17251. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17252. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17253. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17254. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17255. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17256. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17257. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17258. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17259. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17260. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17261. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17262. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17263. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17264. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17265. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17266. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17267. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17268. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17269. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17270. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17271. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17272. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17273. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17274. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17275. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17276. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17277. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17278. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17279. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17280. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17281. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17282. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17283. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17284. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17285. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17286. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17287. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17288. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17289. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17290. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17291. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17292. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17293. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17294. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17295. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17296. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17297. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17298. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17299. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17300. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17301. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17302. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17303. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17304. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17305. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17306. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17307. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17308. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17309. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17310. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17311. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17312. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17313. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17314. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17315. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17316. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17317. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17318. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17319. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17320. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17321. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17322. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17323. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17324. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17325. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17326. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17327. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17328. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17329. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17330. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17331. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17332. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17333. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17334. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17335. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17336. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17337. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17338. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17339. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17340. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17341. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17342. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17343. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17344. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17345. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17346. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17347. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17348. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17349. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17350. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17351. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17352. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17353. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17354. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17355. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17356. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17357. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17358. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17359. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17360. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17361. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17362. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17363. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17364. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17365. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17366. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17367. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17368. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17369. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17370. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17371. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17372. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17373. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17374. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17375. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17376. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17377. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17378. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17379. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17380. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17381. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17382. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17383. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17384. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17385. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17386. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17387. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17388. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17389. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17390. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17391. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17392. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17393. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17394. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17395. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17396. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17397. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17398. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17399. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17400. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17401. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17402. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17403. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17404. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17405. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17406. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17407. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17408. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17409. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17410. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17411. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17412. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17413. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17414. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17415. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17416. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17417. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17418. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17419. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17420. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17421. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17422. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17423. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17424. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17425. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17426. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17427. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17428. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17429. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17430. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17431. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17432. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17433. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17434. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17435. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17436. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17437. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17438. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17439. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17440. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17441. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17442. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17443. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17444. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17445. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17446. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17447. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17448. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17449. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17450. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17451. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17452. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17453. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17454. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17455. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17456. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17457. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17458. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17459. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17460. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17461. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17462. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17463. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17464. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17465. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17466. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17467. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17468. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17469. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17470. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17471. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17472. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17473. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17474. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17475. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17476. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17477. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17478. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17479. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17480. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17481. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17482. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17483. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17484. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17485. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17486. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17487. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17488. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17489. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17490. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17491. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17492. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17493. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17494. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17495. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17496. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17497. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17498. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17499. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17500. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17501. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17502. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17503. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17504. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17505. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17506. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17507. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17508. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17509. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17510. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17511. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17512. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17513. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17514. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17515. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17516. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17517. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17518. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17519. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17520. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17521. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17522. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17523. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17524. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17525. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17526. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17527. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17528. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17529. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17530. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17531. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17532. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17533. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17534. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17535. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17536. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17537. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17538. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17539. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17540. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17541. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17542. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17543. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17544. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17545. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17546. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17547. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17548. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17549. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17550. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17551. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17552. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17553. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17554. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17555. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17556. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17557. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17558. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17559. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17560. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17561. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17562. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17563. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17564. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17565. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17566. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17567. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17568. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17569. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17570. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17571. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17572. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17573. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17574. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17575. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17576. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17577. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17578. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17579. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17580. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17581. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17582. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17583. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17584. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17585. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17586. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17587. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17588. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17589. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17590. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17591. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17592. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17593. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17594. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17595. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17596. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17597. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17598. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17599. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17600. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17601. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17602. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17603. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17604. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17605. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17606. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17607. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17608. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17609. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17610. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17611. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17612. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17613. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17614. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17615. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17616. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17617. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17618. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17619. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17620. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17621. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17622. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17623. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17624. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17625. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17626. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17627. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17628. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17629. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17630. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17631. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17632. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17633. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17634. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17635. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17636. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17637. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17638. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17639. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17640. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17641. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17642. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17643. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17644. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17645. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17646. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17647. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17648. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17649. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17650. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17651. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17652. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17653. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17654. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17655. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17656. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17657. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17658. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17659. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17660. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17661. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17662. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17663. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17664. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17665. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17666. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17667. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17668. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17669. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17670. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17671. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17672. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17673. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17674. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17675. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17676. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17677. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17678. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17679. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17680. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17681. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17682. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17683. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17684. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17685. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17686. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17687. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17688. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17689. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17690. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17691. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17692. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17693. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17694. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17695. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17696. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17697. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17698. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17699. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17700. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17701. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17702. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17703. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17704. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17705. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17706. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17707. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17708. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17709. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17710. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17711. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17712. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17713. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17714. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17715. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17716. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17717. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17718. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17719. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17720. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17721. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17722. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17723. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17724. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17725. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17726. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17727. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17728. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17729. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17730. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17731. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17732. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17733. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17734. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17735. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17736. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17737. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17738. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17739. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17740. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17741. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17742. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17743. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17744. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17745. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17746. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17747. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17748. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17749. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17750. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17751. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17752. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17753. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17754. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17755. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17756. {"HDMI", NULL, "HDMI_DL_HL"},
  17757. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17758. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17759. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17760. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17761. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17762. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17763. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17764. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17765. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17766. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17767. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17768. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17769. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17770. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17771. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17772. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17773. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17774. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17775. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17776. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17777. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17778. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17779. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17780. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17781. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17782. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17783. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17784. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17785. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17786. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17787. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17788. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17789. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17790. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17791. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17792. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17793. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17794. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17795. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17796. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17797. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17798. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17799. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17800. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17801. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17802. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17803. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17804. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17805. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17806. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17807. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17808. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17809. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17810. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17811. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17812. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17813. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17814. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17815. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17816. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17817. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17818. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17819. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17820. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17821. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17822. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17823. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17824. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17825. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17826. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17827. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17828. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17829. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17830. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17831. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17832. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17833. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17834. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17835. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17836. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17837. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17838. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17839. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17840. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17841. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17842. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17843. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17844. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17845. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17846. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17847. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17848. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17849. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17850. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17851. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17852. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17853. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17854. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17855. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17856. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17857. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17858. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17859. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17860. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17861. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17862. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17863. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17864. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17865. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17866. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17867. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17868. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17869. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17870. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17871. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17872. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17873. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17874. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17875. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17876. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17877. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17878. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17879. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17880. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17881. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17882. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17883. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17884. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17885. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17886. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17887. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17888. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17889. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17890. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17891. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17892. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17893. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17894. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17895. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17896. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17897. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17898. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17899. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17900. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17901. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17902. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17903. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17904. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17905. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17906. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17907. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17908. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17909. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17910. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17911. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17912. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17913. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17914. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17915. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17916. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17917. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17918. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17919. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17920. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17921. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17922. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17923. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17924. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17925. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17926. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17927. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17928. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17929. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17930. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17931. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17932. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17933. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17934. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17935. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17936. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17937. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17938. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17939. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17940. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17941. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17942. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17943. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17944. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17945. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17946. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17947. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17948. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17949. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17950. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17951. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17952. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17953. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17954. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17955. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17956. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17957. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17958. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17959. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17960. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17961. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17962. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17963. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17964. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17965. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17966. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17967. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17968. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17969. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17970. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  17971. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  17972. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  17973. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17974. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17975. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17976. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17977. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17978. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17979. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17980. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17981. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17982. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17983. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17984. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17985. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17986. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17987. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17988. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17989. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17990. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17991. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17992. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17993. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17994. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17995. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17996. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17997. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17998. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17999. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18000. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18001. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18002. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18003. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18004. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18005. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  18006. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18007. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18008. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18009. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18010. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18011. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18012. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18013. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18014. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18015. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18016. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  18017. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18018. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18019. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18020. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18021. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18022. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18023. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18024. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18025. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18026. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18027. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  18028. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18029. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18030. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18031. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18032. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18033. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18034. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18035. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18036. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  18037. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18038. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18039. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18040. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18041. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18042. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18043. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18044. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18045. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18046. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18047. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18048. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18049. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18050. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18051. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18052. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18053. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18054. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18055. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18056. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18057. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18058. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18059. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18060. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18061. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18062. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18063. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18064. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18065. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18066. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18067. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18068. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18069. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18070. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18071. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18072. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18073. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18074. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18075. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18076. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18077. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18078. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18079. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18080. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18081. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18082. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18083. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18084. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18085. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18086. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18087. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18088. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18089. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18090. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18091. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18092. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18093. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18094. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18095. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18096. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18097. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18098. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18099. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18100. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18101. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18102. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18103. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18104. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18105. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18106. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18107. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18108. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18109. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18110. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18111. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18112. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18113. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18114. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18115. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18116. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18117. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18118. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18119. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18120. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18121. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18122. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18123. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18124. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18125. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18126. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18127. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18128. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18129. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18130. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18131. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18132. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18133. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18134. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18135. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18136. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18137. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18138. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18139. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18140. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18141. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18142. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18143. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18144. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18145. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18146. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18147. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18148. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18149. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18150. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18151. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18152. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18153. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18154. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18155. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18156. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18157. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18158. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18159. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18160. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18161. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18162. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18163. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18164. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18165. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18166. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18167. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18168. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18169. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18170. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18171. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18172. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18173. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18174. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18175. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18176. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18177. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18178. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18179. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18180. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18181. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18182. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18183. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18184. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18185. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18186. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18187. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18188. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18189. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18190. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18191. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18192. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18193. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18194. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18195. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18196. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18197. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18198. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18199. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18200. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18201. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18202. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18203. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18204. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18205. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18206. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18207. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18208. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18209. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18210. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18211. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18212. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18213. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18214. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18215. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18216. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18217. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18218. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18219. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18220. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18221. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18222. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18223. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18224. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18225. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18226. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18227. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18228. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18229. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18230. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18231. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18232. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18233. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18234. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18235. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18236. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18237. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18238. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18239. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18240. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18241. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18242. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18243. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18244. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18245. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18246. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18247. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18248. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18249. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18250. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18251. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18252. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18253. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18254. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18255. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18256. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18257. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18258. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18259. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18260. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18261. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18262. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18263. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18264. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18265. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18266. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18267. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18268. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18269. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18270. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18271. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18272. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18273. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18274. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18275. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18276. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18277. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18278. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18279. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18280. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18281. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18282. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18283. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18284. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18285. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18286. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18287. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18288. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18289. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18290. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18291. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18292. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18293. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18294. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18295. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18296. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18297. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18298. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18299. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18300. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18301. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18302. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18303. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18304. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18305. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18306. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18307. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18308. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18309. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18310. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18311. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18312. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18313. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18314. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18315. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18316. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18317. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18318. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18319. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18320. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18321. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18322. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18323. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18324. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18325. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18326. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18327. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18328. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18329. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18330. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18331. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18332. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18333. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18334. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18335. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18336. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18337. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18338. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18339. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18340. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18341. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18342. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18343. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18344. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18345. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18346. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18347. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18348. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18349. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18350. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18351. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18352. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18353. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18354. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18355. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18356. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18357. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18358. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18359. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18360. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18361. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18362. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18363. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18364. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18365. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18366. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18367. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18368. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18369. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18370. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18371. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18372. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18373. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18374. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18375. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18376. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18377. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18378. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18379. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18380. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18381. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18382. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18383. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18384. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18385. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18386. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18387. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18388. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18389. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18390. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18391. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18392. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18393. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18394. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18395. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18396. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18397. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18398. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18399. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18400. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18401. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18402. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18403. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18404. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18405. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18406. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18407. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18408. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18409. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18410. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18411. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18412. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18413. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18414. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18415. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18416. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18417. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18418. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18419. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18420. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18421. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18422. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18423. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18424. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18425. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18426. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18427. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18428. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18429. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18430. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18431. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18432. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18433. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18434. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18435. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18436. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18437. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18438. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18439. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18440. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18441. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18442. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18443. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18444. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18445. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18446. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18447. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18448. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18449. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18450. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18451. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18452. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18453. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18454. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18455. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18456. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18457. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18458. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18459. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18460. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18461. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18462. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18463. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18464. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18465. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18466. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18467. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18468. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18469. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18470. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18471. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18472. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18473. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18474. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18475. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18476. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18477. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18478. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18479. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18480. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18481. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18482. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18483. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18484. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18485. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18486. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18487. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18488. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18489. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18490. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18491. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18492. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18493. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18494. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18495. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18496. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18497. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18498. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18499. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18500. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18501. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18502. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18503. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18504. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18505. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18506. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18507. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18508. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18509. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18510. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18511. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18512. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18513. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18514. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18515. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18516. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18517. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18518. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18519. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18520. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18521. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18522. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18523. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18524. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18525. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18526. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18527. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18528. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18529. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18530. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18531. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18532. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18533. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18534. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18535. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18536. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18537. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18538. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18539. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18540. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18541. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18542. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18543. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18544. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18545. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18546. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18547. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18548. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18549. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18550. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18551. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18552. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18553. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18554. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18555. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18556. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18557. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18558. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18559. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18560. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18561. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18562. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18563. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18564. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18565. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18566. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18567. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18568. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18569. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18570. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18571. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18572. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18573. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18574. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18575. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18576. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18577. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18578. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18579. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18580. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18581. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18582. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18583. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18584. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18585. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18586. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18587. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18588. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18589. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18590. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18591. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18592. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18593. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18594. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18595. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18596. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18597. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18598. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18599. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18600. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18601. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18602. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18603. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18604. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18605. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18606. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18607. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18608. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18609. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18610. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18611. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18612. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18613. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18614. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18615. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18616. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18617. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18618. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18619. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18620. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18621. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18622. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18623. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18624. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18625. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18626. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18627. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18628. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18629. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18630. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18631. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18632. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18633. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18634. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18635. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18636. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18637. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18638. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18639. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18640. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18641. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18642. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18643. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18644. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18645. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18646. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18647. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18648. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18649. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18650. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18651. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18652. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18653. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18654. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18655. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18656. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18657. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18658. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18659. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18660. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18661. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18662. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18663. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18664. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18665. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18666. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18667. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18668. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18669. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18670. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18671. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18672. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18673. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18674. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18675. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18676. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18677. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18678. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18679. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18680. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18681. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18682. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18683. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18684. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18685. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18686. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18687. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18688. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18689. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18690. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18691. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18692. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18693. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18694. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18695. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18696. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18697. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18698. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18699. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18700. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18701. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18702. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18703. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18704. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18705. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18706. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18707. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18708. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18709. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18710. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18711. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18712. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18713. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18714. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18715. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18716. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18717. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18718. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18719. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18720. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18721. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18722. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18723. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18724. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18725. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18726. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18727. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18728. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18729. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18730. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18731. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18732. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18733. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18734. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18735. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18736. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18737. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18738. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18739. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18740. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18741. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18742. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18743. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18744. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18745. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18746. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18747. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18748. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18749. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18750. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18751. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18752. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18753. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18754. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18755. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18756. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18757. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18758. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18759. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18760. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18761. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18762. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18763. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18764. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18765. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18766. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18767. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18768. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18769. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18770. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18771. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18772. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18773. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18774. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18775. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18776. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18777. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18778. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18779. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18780. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18781. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18782. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18783. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18784. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18785. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18786. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18787. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18788. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18789. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18790. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18791. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18792. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18793. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18794. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18795. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18796. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18797. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18798. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18799. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18800. /* Backend Enablement */
  18801. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18802. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18803. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18804. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18805. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18806. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18807. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18808. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18809. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18810. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18811. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18812. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18813. {"BE_OUT", NULL, "HDMI"},
  18814. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18815. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18816. {"BE_OUT", NULL, "SPDIF_RX"},
  18817. {"BE_OUT", NULL, "MI2S_RX"},
  18818. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18819. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18820. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18821. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18822. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18823. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18824. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18825. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18826. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18827. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18828. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18829. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18830. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18831. {"BE_OUT", NULL, "INT_FM_RX"},
  18832. {"BE_OUT", NULL, "PCM_RX"},
  18833. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18834. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18835. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18836. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18837. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18838. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18839. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18840. {"BE_OUT", NULL, "INT_FM_RX"},
  18841. {"BE_OUT", NULL, "PCM_RX"},
  18842. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18843. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18844. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18845. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18846. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18847. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18848. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18849. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18850. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18851. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18852. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18853. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18854. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18855. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18856. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18857. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18858. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18859. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18860. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18861. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18862. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18863. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18864. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18865. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18866. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18867. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18868. {"PRI_I2S_TX", NULL, "BE_IN"},
  18869. {"MI2S_TX", NULL, "BE_IN"},
  18870. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18871. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18872. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18873. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18874. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18875. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18876. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18877. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18878. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18879. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18880. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18881. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18882. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18883. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18884. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18885. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18886. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18887. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18888. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18889. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18890. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18891. {"INT_FM_TX", NULL, "BE_IN"},
  18892. {"PCM_TX", NULL, "BE_IN"},
  18893. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18894. {"BE_OUT", NULL, "STUB_RX"},
  18895. {"STUB_TX", NULL, "BE_IN"},
  18896. {"STUB_1_TX", NULL, "BE_IN"},
  18897. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18898. {"AUX_PCM_TX", NULL, "BE_IN"},
  18899. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18900. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18901. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18902. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18903. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18904. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18905. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18906. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18907. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18908. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18909. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18910. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18911. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18912. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18913. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18914. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18915. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18916. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18917. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18918. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18919. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18920. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18921. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18922. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18923. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18924. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18925. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18926. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18927. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18928. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18929. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18930. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18931. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18932. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18933. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18934. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18935. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18936. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18937. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18938. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18939. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18940. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18941. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18942. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18943. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18944. };
  18945. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18946. struct snd_pcm_hw_params *params)
  18947. {
  18948. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18949. unsigned int be_id = rtd->dai_link->id;
  18950. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18951. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18952. return -EINVAL;
  18953. }
  18954. mutex_lock(&routing_lock);
  18955. msm_bedais[be_id].sample_rate = params_rate(params);
  18956. msm_bedais[be_id].channel = params_channels(params);
  18957. msm_bedais[be_id].format = params_format(params);
  18958. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18959. __func__, msm_bedais[be_id].sample_rate,
  18960. msm_bedais[be_id].format, be_id);
  18961. mutex_unlock(&routing_lock);
  18962. return 0;
  18963. }
  18964. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18965. {
  18966. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18967. unsigned int be_id = rtd->dai_link->id;
  18968. int i, session_type, path_type, topology;
  18969. struct msm_pcm_routing_bdai_data *bedai;
  18970. struct msm_pcm_routing_fdai_data *fdai;
  18971. pr_debug("%s: substream->pcm->id:%s\n",
  18972. __func__, substream->pcm->id);
  18973. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18974. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18975. return -EINVAL;
  18976. }
  18977. bedai = &msm_bedais[be_id];
  18978. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18979. 0 : 1);
  18980. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18981. path_type = ADM_PATH_PLAYBACK;
  18982. else
  18983. path_type = ADM_PATH_LIVE_REC;
  18984. mutex_lock(&routing_lock);
  18985. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18986. if (!is_mm_lsm_fe_id(i))
  18987. continue;
  18988. fdai = &fe_dai_map[i][session_type];
  18989. if (fdai->strm_id != INVALID_SESSION) {
  18990. int idx;
  18991. int port_id;
  18992. unsigned long copp =
  18993. session_copp_map[i][session_type][be_id];
  18994. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18995. if (test_bit(idx, &copp))
  18996. break;
  18997. fdai->be_srate = bedai->sample_rate;
  18998. port_id = bedai->port_id;
  18999. topology = adm_get_topology_for_port_copp_idx(port_id,
  19000. idx);
  19001. msm_routing_unload_topology(topology);
  19002. adm_close(bedai->port_id, fdai->perf_mode, idx);
  19003. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  19004. __func__, copp, i, session_type, be_id,
  19005. topology);
  19006. clear_bit(idx,
  19007. &session_copp_map[i][session_type][be_id]);
  19008. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19009. (bedai->passthr_mode[i] == LEGACY_PCM))
  19010. msm_pcm_routing_deinit_pp(bedai->port_id,
  19011. topology);
  19012. }
  19013. }
  19014. bedai->active = 0;
  19015. bedai->sample_rate = 0;
  19016. bedai->channel = 0;
  19017. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  19018. if (bedai->passthr_mode[i] != LISTEN)
  19019. bedai->passthr_mode[i] = LEGACY_PCM;
  19020. }
  19021. mutex_unlock(&routing_lock);
  19022. return 0;
  19023. }
  19024. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  19025. {
  19026. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19027. unsigned int be_id = rtd->dai_link->id;
  19028. int i, path_type, topology;
  19029. int session_type = INVALID_SESSION;
  19030. struct msm_pcm_routing_bdai_data *bedai;
  19031. u32 channels, sample_rate;
  19032. uint16_t bits_per_sample = 16, voc_path_type;
  19033. struct msm_pcm_routing_fdai_data *fdai;
  19034. u32 session_id;
  19035. struct media_format_info voc_be_media_format;
  19036. bool is_lsm;
  19037. pr_debug("%s: substream->pcm->id:%s\n",
  19038. __func__, substream->pcm->id);
  19039. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19040. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19041. return -EINVAL;
  19042. }
  19043. bedai = &msm_bedais[be_id];
  19044. mutex_lock(&routing_lock);
  19045. if (bedai->active == 1)
  19046. goto done; /* Ignore prepare if back-end already active */
  19047. /* AFE port is not active at this point. However, still
  19048. * go ahead setting active flag under the notion that
  19049. * QDSP6 is able to handle ADM starting before AFE port
  19050. * is started.
  19051. */
  19052. bedai->active = 1;
  19053. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19054. if (!(is_mm_lsm_fe_id(i) &&
  19055. route_check_fe_id_adm_support(i)))
  19056. continue;
  19057. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19058. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19059. path_type = ADM_PATH_COMPRESSED_RX;
  19060. else
  19061. path_type = ADM_PATH_PLAYBACK;
  19062. session_type = SESSION_TYPE_RX;
  19063. } else {
  19064. path_type = ADM_PATH_LIVE_REC;
  19065. session_type = SESSION_TYPE_TX;
  19066. }
  19067. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19068. (i <= MSM_FRONTEND_DAI_LSM8);
  19069. fdai = &fe_dai_map[i][session_type];
  19070. if (fdai->strm_id != INVALID_SESSION) {
  19071. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19072. if (session_type == SESSION_TYPE_TX &&
  19073. fdai->be_srate &&
  19074. (fdai->be_srate != bedai->sample_rate)) {
  19075. pr_debug("%s: flush strm %d diff BE rates\n",
  19076. __func__,
  19077. fdai->strm_id);
  19078. if (fdai->event_info.event_func)
  19079. fdai->event_info.event_func(
  19080. MSM_PCM_RT_EVT_BUF_RECFG,
  19081. fdai->event_info.priv_data);
  19082. fdai->be_srate = 0; /* might not need it */
  19083. }
  19084. bits_per_sample = msm_routing_get_bit_width(
  19085. bedai->format);
  19086. app_type =
  19087. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19088. if (app_type && is_lsm) {
  19089. app_type_idx =
  19090. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19091. sample_rate =
  19092. fe_dai_app_type_cfg[i][session_type][be_id]
  19093. .sample_rate;
  19094. bits_per_sample =
  19095. lsm_app_type_cfg[app_type_idx].bit_width;
  19096. } else if (app_type) {
  19097. app_type_idx =
  19098. msm_pcm_routing_get_app_type_idx(app_type);
  19099. sample_rate =
  19100. fe_dai_app_type_cfg[i][session_type]
  19101. [be_id].sample_rate;
  19102. bits_per_sample =
  19103. app_type_cfg[app_type_idx].bit_width;
  19104. } else
  19105. sample_rate = bedai->sample_rate;
  19106. /*
  19107. * check if ADM needs to be configured with different
  19108. * channel mapping than backend
  19109. */
  19110. if (!bedai->adm_override_ch)
  19111. channels = bedai->channel;
  19112. else
  19113. channels = bedai->adm_override_ch;
  19114. acdb_dev_id =
  19115. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19116. topology = msm_routing_get_adm_topology(i, session_type,
  19117. be_id);
  19118. copp_idx = adm_open(bedai->port_id, path_type,
  19119. sample_rate, channels, topology,
  19120. fdai->perf_mode, bits_per_sample,
  19121. app_type, acdb_dev_id);
  19122. if ((copp_idx < 0) ||
  19123. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19124. pr_err("%s: adm open failed\n", __func__);
  19125. mutex_unlock(&routing_lock);
  19126. return -EINVAL;
  19127. }
  19128. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19129. __func__, i, session_type, be_id);
  19130. set_bit(copp_idx,
  19131. &session_copp_map[i][session_type][be_id]);
  19132. if (msm_is_resample_needed(
  19133. sample_rate,
  19134. bedai->sample_rate))
  19135. adm_copp_mfc_cfg(
  19136. bedai->port_id, copp_idx,
  19137. bedai->sample_rate);
  19138. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19139. fdai->perf_mode,
  19140. bedai->passthr_mode[i]);
  19141. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19142. (bedai->passthr_mode[i] == LEGACY_PCM))
  19143. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19144. topology, channels);
  19145. }
  19146. }
  19147. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19148. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19149. if (session_id) {
  19150. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19151. session_id);
  19152. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19153. voc_path_type = RX_PATH;
  19154. else
  19155. voc_path_type = TX_PATH;
  19156. voc_set_route_flag(session_id, voc_path_type, 1);
  19157. memset(&voc_be_media_format, 0,
  19158. sizeof(struct media_format_info));
  19159. voc_be_media_format.port_id = bedai->port_id;
  19160. voc_be_media_format.num_channels = bedai->channel;
  19161. voc_be_media_format.sample_rate = bedai->sample_rate;
  19162. voc_be_media_format.bits_per_sample = bedai->format;
  19163. /* Defaulting this to 1 for voice call usecases */
  19164. voc_be_media_format.channel_mapping[0] = 1;
  19165. voc_set_device_config(session_id, voc_path_type,
  19166. &voc_be_media_format);
  19167. if (voc_get_route_flag(session_id, RX_PATH) &&
  19168. voc_get_route_flag(session_id, TX_PATH))
  19169. voc_enable_device(session_id);
  19170. }
  19171. }
  19172. /* Check if backend is an external ec ref port and set as needed */
  19173. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19174. memset(&voc_be_media_format, 0,
  19175. sizeof(struct media_format_info));
  19176. /* Get format info for ec ref port from msm_bedais[] */
  19177. voc_be_media_format.port_id = bedai->port_id;
  19178. voc_be_media_format.num_channels = bedai->channel;
  19179. voc_be_media_format.bits_per_sample = bedai->format;
  19180. voc_be_media_format.sample_rate = bedai->sample_rate;
  19181. /* Defaulting this to 1 for voice call usecases */
  19182. voc_be_media_format.channel_mapping[0] = 1;
  19183. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19184. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19185. __func__, voc_be_media_format.port_id,
  19186. voc_be_media_format.num_channels,
  19187. voc_be_media_format.bits_per_sample,
  19188. voc_be_media_format.sample_rate);
  19189. }
  19190. done:
  19191. mutex_unlock(&routing_lock);
  19192. return 0;
  19193. }
  19194. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19195. int fe_id)
  19196. {
  19197. int index, topo_id, be_idx;
  19198. unsigned long pp_config = 0;
  19199. bool mute_on;
  19200. int latency;
  19201. bool compr_passthr_mode = true;
  19202. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19203. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19204. pr_err("%s: Device pp params on invalid port %d\n",
  19205. __func__, port_id);
  19206. return -EINVAL;
  19207. }
  19208. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19209. if (port_id == msm_bedais[be_idx].port_id)
  19210. break;
  19211. }
  19212. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19213. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19214. return -EINVAL;
  19215. }
  19216. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19217. if (msm_bedais_pp_params[index].port_id == port_id)
  19218. break;
  19219. }
  19220. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19221. pr_err("%s: Invalid backend pp params index %d\n",
  19222. __func__, index);
  19223. return -EINVAL;
  19224. }
  19225. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19226. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19227. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19228. __func__, topo_id);
  19229. return -EINVAL;
  19230. }
  19231. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19232. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19233. compr_passthr_mode = false;
  19234. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19235. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19236. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19237. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19238. mute_on = msm_bedais_pp_params[index].mute_on;
  19239. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19240. adm_send_compressed_device_mute(port_id,
  19241. copp_idx,
  19242. mute_on);
  19243. }
  19244. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19245. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19246. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19247. &pp_config);
  19248. latency = msm_bedais_pp_params[index].latency;
  19249. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19250. adm_send_compressed_device_latency(port_id,
  19251. copp_idx,
  19252. latency);
  19253. }
  19254. return 0;
  19255. }
  19256. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19257. {
  19258. uint32_t topology = NULL_COPP_TOPOLOGY;
  19259. void *cal_info = NULL;
  19260. uint32_t size = 0;
  19261. /* Retrieve cal_info size from cal data*/
  19262. size = data_size - sizeof(struct audio_cal_type_basic);
  19263. cal_info = kzalloc(size, GFP_KERNEL);
  19264. if (!cal_info)
  19265. goto done;
  19266. memcpy(cal_info,
  19267. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19268. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19269. kfree(cal_info);
  19270. cal_info = NULL;
  19271. done:
  19272. pr_debug("%s: Using topology %d\n", __func__, topology);
  19273. return topology;
  19274. }
  19275. static void msm_routing_load_topology(size_t data_size, void *data)
  19276. {
  19277. uint32_t topology_id;
  19278. int ret = -EINVAL;
  19279. topology_id = msm_routing_get_topology(data_size, data);
  19280. if (topology_id != NULL_COPP_TOPOLOGY)
  19281. ret = q6core_load_unload_topo_modules(topology_id,
  19282. CORE_LOAD_TOPOLOGY);
  19283. if (ret < 0)
  19284. pr_debug("%s %d load topology failed\n",
  19285. __func__, topology_id);
  19286. }
  19287. static void msm_routing_unload_topology(uint32_t topology_id)
  19288. {
  19289. int ret = -EINVAL;
  19290. if (topology_id != NULL_COPP_TOPOLOGY)
  19291. ret = q6core_load_unload_topo_modules(topology_id,
  19292. CORE_UNLOAD_TOPOLOGY);
  19293. if (ret < 0)
  19294. pr_debug("%s %d unload topology failed\n",
  19295. __func__, topology_id);
  19296. }
  19297. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19298. struct snd_ctl_elem_value *ucontrol)
  19299. {
  19300. int pp_id = ucontrol->value.integer.value[0];
  19301. int port_id = 0;
  19302. int index, be_idx, i, topo_id, idx;
  19303. bool mute;
  19304. int latency;
  19305. bool compr_passthr_mode = true;
  19306. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19307. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19308. port_id = msm_bedais[be_idx].port_id;
  19309. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19310. break;
  19311. }
  19312. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19313. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19314. return -EINVAL;
  19315. }
  19316. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19317. if (msm_bedais_pp_params[index].port_id == port_id)
  19318. break;
  19319. }
  19320. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19321. pr_err("%s: Invalid pp params backend index %d\n",
  19322. __func__, index);
  19323. return -EINVAL;
  19324. }
  19325. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19326. MSM_FRONTEND_DAI_MM_SIZE) {
  19327. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19328. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19329. compr_passthr_mode = false;
  19330. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19331. unsigned long copp =
  19332. session_copp_map[i]
  19333. [SESSION_TYPE_RX][be_idx];
  19334. if (!test_bit(idx, &copp))
  19335. continue;
  19336. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19337. idx);
  19338. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19339. continue;
  19340. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19341. __func__, port_id, copp, msm_bedais[be_idx].active,
  19342. msm_bedais[be_idx].passthr_mode[i]);
  19343. switch (pp_id) {
  19344. case ADM_PP_PARAM_MUTE_ID:
  19345. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19346. mute = ucontrol->value.integer.value[1] ? true : false;
  19347. msm_bedais_pp_params[index].mute_on = mute;
  19348. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19349. &msm_bedais_pp_params[index].pp_params_config);
  19350. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19351. adm_send_compressed_device_mute(port_id,
  19352. idx, mute);
  19353. break;
  19354. case ADM_PP_PARAM_LATENCY_ID:
  19355. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19356. msm_bedais_pp_params[index].latency =
  19357. ucontrol->value.integer.value[1];
  19358. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19359. &msm_bedais_pp_params[index].pp_params_config);
  19360. latency = msm_bedais_pp_params[index].latency =
  19361. ucontrol->value.integer.value[1];
  19362. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19363. adm_send_compressed_device_latency(port_id,
  19364. idx, latency);
  19365. break;
  19366. default:
  19367. pr_info("%s, device pp param %d not supported\n",
  19368. __func__, pp_id);
  19369. break;
  19370. }
  19371. }
  19372. }
  19373. return 0;
  19374. }
  19375. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19376. struct snd_ctl_elem_value *ucontrol)
  19377. {
  19378. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19379. return 0;
  19380. }
  19381. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19382. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19383. 0, 3, msm_routing_get_device_pp_params_mixer,
  19384. msm_routing_put_device_pp_params_mixer),
  19385. };
  19386. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19387. struct snd_ctl_elem_value *ucontrol)
  19388. {
  19389. ucontrol->value.integer.value[0] =
  19390. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19391. pr_debug("%s: status %ld\n", __func__,
  19392. ucontrol->value.integer.value[0]);
  19393. return 0;
  19394. }
  19395. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19396. struct snd_ctl_elem_value *ucontrol)
  19397. {
  19398. int32_t status = 0;
  19399. status = core_set_license(ucontrol->value.integer.value[0],
  19400. APTX_CLASSIC_DEC_LICENSE_ID);
  19401. pr_debug("%s: status %d\n", __func__, status);
  19402. return status;
  19403. }
  19404. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19405. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19406. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19407. msm_aptx_dec_license_control_put),
  19408. };
  19409. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19410. struct snd_ctl_elem_info *uinfo)
  19411. {
  19412. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19413. uinfo->count = sizeof(be_dai_name_table);
  19414. return 0;
  19415. }
  19416. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19417. unsigned int __user *bytes,
  19418. unsigned int size)
  19419. {
  19420. int i;
  19421. int ret = 0;
  19422. if (size < sizeof(be_dai_name_table)) {
  19423. pr_err("%s: invalid size %d requested, returning\n",
  19424. __func__, size);
  19425. ret = -EINVAL;
  19426. goto done;
  19427. }
  19428. /*
  19429. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19430. * needed when adding new backends
  19431. */
  19432. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19433. be_dai_name_table[i].be_id = i;
  19434. strlcpy(be_dai_name_table[i].be_name,
  19435. msm_bedais[i].name,
  19436. LPASS_BE_NAME_MAX_LENGTH);
  19437. }
  19438. ret = copy_to_user(bytes, &be_dai_name_table,
  19439. sizeof(be_dai_name_table));
  19440. if (ret) {
  19441. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19442. ret = -EFAULT;
  19443. }
  19444. done:
  19445. return ret;
  19446. }
  19447. static const struct snd_kcontrol_new
  19448. msm_routing_be_dai_name_table_mixer_controls[] = {
  19449. {
  19450. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19451. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19452. .info = msm_routing_be_dai_name_table_info,
  19453. .name = "Backend DAI Name Table",
  19454. .tlv.c = snd_soc_bytes_tlv_callback,
  19455. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19456. .max = sizeof(be_dai_name_table),
  19457. .get = msm_routing_be_dai_name_table_tlv_get,
  19458. }
  19459. },
  19460. };
  19461. static int msm_routing_stereo_channel_reverse_control_get(
  19462. struct snd_kcontrol *kcontrol,
  19463. struct snd_ctl_elem_value *ucontrol)
  19464. {
  19465. ucontrol->value.integer.value[0] = swap_ch;
  19466. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19467. ucontrol->value.integer.value[0]);
  19468. return 0;
  19469. }
  19470. static int msm_routing_stereo_channel_reverse_control_put(
  19471. struct snd_kcontrol *kcontrol,
  19472. struct snd_ctl_elem_value *ucontrol)
  19473. {
  19474. int i, idx, be_index, port_id;
  19475. int ret = 0;
  19476. unsigned long copp;
  19477. pr_debug("%s Swap channel value:%ld\n", __func__,
  19478. ucontrol->value.integer.value[0]);
  19479. swap_ch = ucontrol->value.integer.value[0];
  19480. mutex_lock(&routing_lock);
  19481. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19482. port_id = msm_bedais[be_index].port_id;
  19483. if (!msm_bedais[be_index].active)
  19484. continue;
  19485. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19486. MSM_FRONTEND_DAI_MM_SIZE) {
  19487. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19488. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19489. if (!test_bit(idx, &copp))
  19490. continue;
  19491. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19492. __func__, port_id, idx);
  19493. ret = adm_swap_speaker_channels(
  19494. port_id, idx,
  19495. msm_bedais[be_index].sample_rate,
  19496. swap_ch);
  19497. if (ret) {
  19498. pr_err("%s:Swap_channel failed, err=%d\n",
  19499. __func__, ret);
  19500. goto done;
  19501. }
  19502. }
  19503. }
  19504. }
  19505. done:
  19506. mutex_unlock(&routing_lock);
  19507. return ret;
  19508. }
  19509. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19510. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19511. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19512. msm_routing_stereo_channel_reverse_control_put),
  19513. };
  19514. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19515. struct snd_ctl_elem_info *uinfo)
  19516. {
  19517. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19518. uinfo->count = 1;
  19519. return 0;
  19520. }
  19521. static int msm_routing_instance_id_support_put(
  19522. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19523. {
  19524. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19525. q6common_update_instance_id_support(supported);
  19526. return 0;
  19527. }
  19528. static int msm_routing_instance_id_support_get(
  19529. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19530. {
  19531. bool supported = false;
  19532. supported = q6common_is_instance_id_supported();
  19533. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19534. return 0;
  19535. }
  19536. static const struct snd_kcontrol_new
  19537. msm_routing_feature_support_mixer_controls[] = {
  19538. {
  19539. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19540. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19541. .info = msm_routing_instance_id_support_info,
  19542. .name = "Instance ID Support",
  19543. .put = msm_routing_instance_id_support_put,
  19544. .get = msm_routing_instance_id_support_get,
  19545. },
  19546. };
  19547. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19548. .hw_params = msm_pcm_routing_hw_params,
  19549. .close = msm_pcm_routing_close,
  19550. .prepare = msm_pcm_routing_prepare,
  19551. };
  19552. /* Not used but frame seems to require it */
  19553. static int msm_routing_probe(struct snd_soc_platform *platform)
  19554. {
  19555. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19556. ARRAY_SIZE(msm_qdsp6_widgets));
  19557. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19558. ARRAY_SIZE(intercon));
  19559. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19560. snd_soc_add_platform_controls(platform, lsm_controls,
  19561. ARRAY_SIZE(lsm_controls));
  19562. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19563. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19564. snd_soc_add_platform_controls(platform, aanc_noise_level,
  19565. ARRAY_SIZE(aanc_noise_level));
  19566. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19567. ARRAY_SIZE(msm_voc_session_controls));
  19568. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19569. ARRAY_SIZE(app_type_cfg_controls));
  19570. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19571. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19572. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19573. ARRAY_SIZE(module_cfg_controls));
  19574. snd_soc_add_platform_controls(platform,
  19575. stereo_to_custom_stereo_controls,
  19576. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19577. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19578. ARRAY_SIZE(ec_ref_param_controls));
  19579. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19580. ARRAY_SIZE(channel_mixer_controls));
  19581. msm_qti_pp_add_controls(platform);
  19582. msm_dts_srs_tm_add_controls(platform);
  19583. msm_dolby_dap_add_controls(platform);
  19584. snd_soc_add_platform_controls(platform,
  19585. use_ds1_or_ds2_controls,
  19586. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19587. snd_soc_add_platform_controls(platform,
  19588. device_pp_params_mixer_controls,
  19589. ARRAY_SIZE(device_pp_params_mixer_controls));
  19590. snd_soc_add_platform_controls(platform,
  19591. msm_routing_be_dai_name_table_mixer_controls,
  19592. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19593. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19594. ARRAY_SIZE(msm_source_tracking_controls));
  19595. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19596. ARRAY_SIZE(adm_channel_config_controls));
  19597. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19598. ARRAY_SIZE(aptx_dec_license_controls));
  19599. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19600. ARRAY_SIZE(stereo_channel_reverse_control));
  19601. snd_soc_add_platform_controls(
  19602. platform, msm_routing_feature_support_mixer_controls,
  19603. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19604. return 0;
  19605. }
  19606. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19607. {
  19608. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19609. }
  19610. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19611. {
  19612. msm_pcm_routing_hwdep_free(pcm);
  19613. }
  19614. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19615. .ops = &msm_routing_pcm_ops,
  19616. .probe = msm_routing_probe,
  19617. .pcm_new = msm_routing_pcm_new,
  19618. .pcm_free = msm_routing_pcm_free,
  19619. };
  19620. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19621. {
  19622. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19623. return snd_soc_register_platform(&pdev->dev,
  19624. &msm_soc_routing_platform);
  19625. }
  19626. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19627. {
  19628. snd_soc_unregister_platform(&pdev->dev);
  19629. return 0;
  19630. }
  19631. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19632. {.compatible = "qcom,msm-pcm-routing"},
  19633. {}
  19634. };
  19635. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19636. static struct platform_driver msm_routing_pcm_driver = {
  19637. .driver = {
  19638. .name = "msm-pcm-routing",
  19639. .owner = THIS_MODULE,
  19640. .of_match_table = msm_pcm_routing_dt_match,
  19641. },
  19642. .probe = msm_routing_pcm_probe,
  19643. .remove = msm_routing_pcm_remove,
  19644. };
  19645. int msm_routing_check_backend_enabled(int fedai_id)
  19646. {
  19647. int i;
  19648. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19649. /* bad ID assigned in machine driver */
  19650. pr_err("%s: bad MM ID\n", __func__);
  19651. return 0;
  19652. }
  19653. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19654. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19655. return msm_bedais[i].active;
  19656. }
  19657. return 0;
  19658. }
  19659. static int get_cal_type_index(int32_t cal_type)
  19660. {
  19661. int ret = -EINVAL;
  19662. switch (cal_type) {
  19663. case ADM_TOPOLOGY_CAL_TYPE:
  19664. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19665. break;
  19666. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19667. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19668. break;
  19669. default:
  19670. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19671. }
  19672. return ret;
  19673. }
  19674. static int msm_routing_set_cal(int32_t cal_type,
  19675. size_t data_size, void *data)
  19676. {
  19677. int ret = 0;
  19678. int cal_index;
  19679. pr_debug("%s\n", __func__);
  19680. cal_index = get_cal_type_index(cal_type);
  19681. if (cal_index < 0) {
  19682. pr_err("%s: Could not get cal index %d\n",
  19683. __func__, cal_index);
  19684. ret = -EINVAL;
  19685. goto done;
  19686. }
  19687. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19688. if (ret < 0) {
  19689. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19690. __func__, ret, cal_type);
  19691. ret = -EINVAL;
  19692. goto done;
  19693. }
  19694. /* Pre-load if it is ADM topology */
  19695. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19696. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19697. msm_routing_load_topology(data_size, data);
  19698. }
  19699. done:
  19700. return ret;
  19701. }
  19702. static void msm_routing_delete_cal_data(void)
  19703. {
  19704. pr_debug("%s\n", __func__);
  19705. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19706. }
  19707. static int msm_routing_init_cal_data(void)
  19708. {
  19709. int ret = 0;
  19710. struct cal_type_info cal_type_info[] = {
  19711. {{ADM_TOPOLOGY_CAL_TYPE,
  19712. {NULL, NULL, NULL,
  19713. msm_routing_set_cal, NULL, NULL} },
  19714. {NULL, NULL, cal_utils_match_buf_num} },
  19715. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19716. {NULL, NULL, NULL,
  19717. msm_routing_set_cal, NULL, NULL} },
  19718. {NULL, NULL, cal_utils_match_buf_num} },
  19719. };
  19720. pr_debug("%s\n", __func__);
  19721. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19722. &cal_type_info[0]);
  19723. if (ret < 0) {
  19724. pr_err("%s: could not create cal type!\n",
  19725. __func__);
  19726. ret = -EINVAL;
  19727. goto err;
  19728. }
  19729. return ret;
  19730. err:
  19731. msm_routing_delete_cal_data();
  19732. return ret;
  19733. }
  19734. int __init msm_soc_routing_platform_init(void)
  19735. {
  19736. mutex_init(&routing_lock);
  19737. if (msm_routing_init_cal_data())
  19738. pr_err("%s: could not init cal data!\n", __func__);
  19739. afe_set_routing_callback(
  19740. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19741. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19742. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19743. return platform_driver_register(&msm_routing_pcm_driver);
  19744. }
  19745. void msm_soc_routing_platform_exit(void)
  19746. {
  19747. msm_routing_delete_cal_data();
  19748. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19749. mutex_destroy(&routing_lock);
  19750. platform_driver_unregister(&msm_routing_pcm_driver);
  19751. }
  19752. MODULE_DESCRIPTION("MSM routing platform driver");
  19753. MODULE_LICENSE("GPL v2");