msm-pcm-routing-v2.c 809 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. #define WEIGHT_0_DB 0x4000
  80. /* all the FEs which can support channel mixer */
  81. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  103. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  104. #define LSM_FUNCTION_TEXT "LSM Function"
  105. static const char * const lsm_port_text[] = {
  106. "None",
  107. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  108. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  109. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  110. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  111. };
  112. struct msm_pcm_route_bdai_pp_params {
  113. u16 port_id; /* AFE port ID */
  114. unsigned long pp_params_config;
  115. bool mute_on;
  116. int latency;
  117. };
  118. static struct msm_pcm_route_bdai_pp_params
  119. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  120. {HDMI_RX, 0, 0, 0},
  121. {DISPLAY_PORT_RX, 0, 0, 0},
  122. };
  123. /*
  124. * The be_dai_name_table is passed to HAL so that it can specify the
  125. * BE ID for the BE it wants to enable based on the name. Thus there
  126. * is a matching table and structure in HAL that need to be updated
  127. * if any changes to these are made.
  128. */
  129. struct msm_pcm_route_bdai_name {
  130. unsigned int be_id;
  131. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  132. };
  133. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  134. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  135. int fe_id);
  136. static int msm_routing_get_bit_width(unsigned int format)
  137. {
  138. int bit_width;
  139. switch (format) {
  140. case SNDRV_PCM_FORMAT_S32_LE:
  141. bit_width = 32;
  142. break;
  143. case SNDRV_PCM_FORMAT_S24_LE:
  144. case SNDRV_PCM_FORMAT_S24_3LE:
  145. bit_width = 24;
  146. break;
  147. case SNDRV_PCM_FORMAT_S16_LE:
  148. default:
  149. bit_width = 16;
  150. }
  151. return bit_width;
  152. }
  153. static bool msm_is_resample_needed(int input_sr, int output_sr)
  154. {
  155. bool rc = false;
  156. if (input_sr != output_sr)
  157. rc = true;
  158. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  159. (rc ? "oh yes" : "not really"),
  160. input_sr, output_sr);
  161. return rc;
  162. }
  163. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  164. int channels)
  165. {
  166. int rc = 0;
  167. switch (topology) {
  168. case SRS_TRUMEDIA_TOPOLOGY_ID:
  169. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  170. msm_dts_srs_tm_init(port_id, copp_idx);
  171. break;
  172. case DS2_ADM_COPP_TOPOLOGY_ID:
  173. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  174. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  175. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  176. is_custom_stereo_on);
  177. if (rc < 0)
  178. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  179. __func__, topology, port_id,
  180. is_custom_stereo_on, rc);
  181. break;
  182. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  183. if (is_ds2_on) {
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  189. __func__, topology, port_id, rc);
  190. } else {
  191. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  192. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. }
  198. break;
  199. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  200. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  201. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  202. if (rc < 0)
  203. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  204. __func__, topology, port_id, copp_idx, rc);
  205. break;
  206. default:
  207. /* custom topology specific feature param handlers */
  208. break;
  209. }
  210. }
  211. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  212. {
  213. switch (topology) {
  214. case SRS_TRUMEDIA_TOPOLOGY_ID:
  215. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  216. msm_dts_srs_tm_deinit(port_id);
  217. break;
  218. case DS2_ADM_COPP_TOPOLOGY_ID:
  219. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  220. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  221. msm_ds2_dap_deinit(port_id);
  222. break;
  223. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  224. if (is_ds2_on) {
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  226. msm_ds2_dap_deinit(port_id);
  227. } else {
  228. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_dolby_dap_deinit(port_id);
  230. }
  231. break;
  232. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  233. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  234. msm_qti_pp_asphere_deinit(port_id);
  235. break;
  236. default:
  237. /* custom topology specific feature deinit handlers */
  238. break;
  239. }
  240. }
  241. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  242. int path_type, int perf_mode)
  243. {
  244. int itr = 0, rc = 0;
  245. if ((path_type == ADM_PATH_PLAYBACK) &&
  246. (perf_mode == LEGACY_PCM_MODE) &&
  247. is_custom_stereo_on) {
  248. for (itr = 0; itr < payload.num_copps; itr++) {
  249. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  250. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  251. continue;
  252. }
  253. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  254. payload.port_id[itr],
  255. payload.copp_idx[itr],
  256. payload.session_id,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE);
  261. if (rc < 0)
  262. pr_err("%s: err setting custom stereo\n",
  263. __func__);
  264. }
  265. }
  266. }
  267. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  268. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  269. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  270. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  271. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  272. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  273. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  274. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  275. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  276. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  277. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  278. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AFE_PCM_RX},
  280. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AFE_PCM_TX},
  282. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_AUXPCM_RX},
  284. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_AUXPCM_TX},
  286. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_VOICE_PLAYBACK_TX},
  288. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_VOICE2_PLAYBACK_TX},
  290. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  291. LPASS_BE_INCALL_RECORD_RX},
  292. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  293. LPASS_BE_INCALL_RECORD_TX},
  294. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  295. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  296. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  297. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  298. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  299. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  300. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  301. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  302. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  303. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  304. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  305. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  306. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  307. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  308. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  309. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  310. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  311. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  312. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_QUAT_MI2S_RX},
  318. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_QUAT_MI2S_TX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_SEC_MI2S_RX},
  322. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_SEC_MI2S_TX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_PRI_MI2S_RX},
  326. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_PRI_MI2S_TX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_TERT_MI2S_RX},
  330. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_TERT_MI2S_TX},
  332. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_AUDIO_I2S_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SEC_AUXPCM_RX},
  336. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_AUXPCM_TX},
  338. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_SPDIF_RX},
  340. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_SEC_MI2S_RX_SD1},
  342. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_QUIN_MI2S_RX},
  344. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_QUIN_MI2S_TX},
  346. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_SENARY_MI2S_TX},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_0},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_1},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_2},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_3},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_4},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_5},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_6},
  376. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_PRI_TDM_RX_7},
  378. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_PRI_TDM_TX_7},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_0},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_1},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_2},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_3},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_4},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_5},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_6},
  408. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_SEC_TDM_RX_7},
  410. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_SEC_TDM_TX_7},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_0},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_1},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_2},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_3},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_4},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_5},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_6},
  440. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_TERT_TDM_RX_7},
  442. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_TERT_TDM_TX_7},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_0},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_1},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_2},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_3},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_4},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_5},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_6},
  472. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUAT_TDM_RX_7},
  474. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUAT_TDM_TX_7},
  476. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_0},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_1},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_2},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_3},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_4},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_5},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_6},
  504. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_QUIN_TDM_RX_7},
  506. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_QUIN_TDM_TX_7},
  508. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_INT_BT_A2DP_RX},
  510. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_USB_AUDIO_RX},
  512. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_USB_AUDIO_TX},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_DISPLAY_PORT},
  516. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_DISPLAY_PORT1},
  518. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_TERT_AUXPCM_RX},
  520. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_TERT_AUXPCM_TX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUAT_AUXPCM_RX},
  524. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_QUAT_AUXPCM_TX},
  526. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_QUIN_AUXPCM_RX},
  528. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_QUIN_AUXPCM_TX},
  530. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT0_MI2S_RX},
  532. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT0_MI2S_TX},
  534. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT1_MI2S_RX},
  536. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT1_MI2S_TX},
  538. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT2_MI2S_RX},
  540. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT2_MI2S_TX},
  542. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT3_MI2S_RX},
  544. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT3_MI2S_TX},
  546. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT4_MI2S_RX},
  548. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT4_MI2S_TX},
  550. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT5_MI2S_RX},
  552. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  553. LPASS_BE_INT5_MI2S_TX},
  554. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  555. LPASS_BE_INT6_MI2S_RX},
  556. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  557. LPASS_BE_INT6_MI2S_TX},
  558. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  559. LPASS_BE_WSA_CDC_DMA_RX_0},
  560. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  561. LPASS_BE_WSA_CDC_DMA_TX_0},
  562. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  563. LPASS_BE_WSA_CDC_DMA_RX_1},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  565. LPASS_BE_WSA_CDC_DMA_TX_1},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  567. LPASS_BE_WSA_CDC_DMA_TX_2},
  568. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  569. LPASS_BE_VA_CDC_DMA_TX_0},
  570. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  571. LPASS_BE_VA_CDC_DMA_TX_1},
  572. };
  573. /* Track ASM playback & capture sessions of DAI
  574. * Track LSM listen sessions
  575. */
  576. static struct msm_pcm_routing_fdai_data
  577. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  578. /* MULTIMEDIA1 */
  579. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  580. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  581. /* MULTIMEDIA2 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA3 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA4 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA5 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA6 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA7*/
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA8 */
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA9 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA10 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA11 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA12 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA13 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA14 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA15 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA16 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA17 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA18 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA19 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA20 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA28 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA29 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* VOIP */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* AFE_RX */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_TX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* VOICE_STUB */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* DTMF_RX */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* QCHAT */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* VOLTE_STUB */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* LSM1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM7 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* VOICE2_STUB */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICEMMODE1 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE2 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. };
  699. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  700. [MSM_BACKEND_DAI_MAX];
  701. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  702. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  703. static struct msm_pcm_stream_app_type_cfg
  704. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  705. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  706. /* The caller of this should aqcuire routing lock */
  707. void msm_pcm_routing_get_bedai_info(int be_idx,
  708. struct msm_pcm_routing_bdai_data *be_dai)
  709. {
  710. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  711. memcpy(be_dai, &msm_bedais[be_idx],
  712. sizeof(struct msm_pcm_routing_bdai_data));
  713. }
  714. /* The caller of this should aqcuire routing lock */
  715. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  716. struct msm_pcm_routing_fdai_data *fe_dai)
  717. {
  718. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  719. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  720. sizeof(struct msm_pcm_routing_fdai_data));
  721. }
  722. void msm_pcm_routing_acquire_lock(void)
  723. {
  724. mutex_lock(&routing_lock);
  725. }
  726. void msm_pcm_routing_release_lock(void)
  727. {
  728. mutex_unlock(&routing_lock);
  729. }
  730. static int msm_pcm_routing_get_app_type_idx(int app_type)
  731. {
  732. int idx;
  733. pr_debug("%s: app_type: %d\n", __func__, app_type);
  734. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  735. if (app_type_cfg[idx].app_type == app_type)
  736. return idx;
  737. }
  738. pr_info("%s: App type not available, fallback to default\n", __func__);
  739. return 0;
  740. }
  741. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  742. {
  743. int idx;
  744. pr_debug("%s: app_type: %d\n", __func__, app_type);
  745. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  746. if (lsm_app_type_cfg[idx].app_type == app_type)
  747. return idx;
  748. }
  749. pr_debug("%s: App type not available, fallback to default\n", __func__);
  750. return 0;
  751. }
  752. static bool is_mm_lsm_fe_id(int fe_id)
  753. {
  754. bool rc = true;
  755. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  756. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  757. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  758. rc = false;
  759. }
  760. return rc;
  761. }
  762. /*
  763. * msm_pcm_routing_send_chmix_cfg:
  764. * send the channel mixer command to mix the input channels
  765. * into output channels.
  766. *
  767. * @fe_id: front end id
  768. * @ip_channel_cnt: input channel count
  769. * @op_channel_cnt: output channel count
  770. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  771. * @session_type: indicates session is of type TX or RX
  772. * @stream_type: indicates either Audio or Listen stream type
  773. */
  774. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  775. int op_channel_cnt, int *ch_wght_coeff,
  776. int session_type, int stream_type)
  777. {
  778. int rc = 0, idx = 0;
  779. int be_index = 0, port_id;
  780. unsigned int session_id = 0;
  781. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  782. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  783. stream_type);
  784. if (!is_mm_lsm_fe_id(fe_id)) {
  785. /* bad ID assigned in machine driver */
  786. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  787. return -EINVAL;
  788. }
  789. if (ch_wght_coeff == NULL) {
  790. pr_err("%s: Null channel weightage coefficients passed\n",
  791. __func__);
  792. return -EINVAL;
  793. }
  794. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  795. port_id = msm_bedais[be_index].port_id;
  796. if (!msm_bedais[be_index].active ||
  797. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  798. continue;
  799. session_id = fe_dai_map[fe_id][session_type].strm_id;
  800. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  801. unsigned long copp =
  802. session_copp_map[fe_id][session_type][be_index];
  803. if (!test_bit(idx, &copp))
  804. continue;
  805. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  806. session_id, ip_channel_cnt,
  807. op_channel_cnt, ch_wght_coeff,
  808. session_type, stream_type);
  809. if (rc < 0)
  810. pr_err("%s: err setting channel mix config\n",
  811. __func__);
  812. }
  813. }
  814. return 0;
  815. }
  816. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  817. int msm_pcm_routing_reg_stream_app_type_cfg(
  818. int fedai_id, int session_type, int be_id,
  819. struct msm_pcm_stream_app_type_cfg *cfg_data)
  820. {
  821. int ret = 0;
  822. if (cfg_data == NULL) {
  823. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  824. ret = -EINVAL;
  825. goto done;
  826. }
  827. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  828. __func__, fedai_id, session_type, be_id,
  829. cfg_data->app_type, cfg_data->acdb_dev_id,
  830. cfg_data->sample_rate);
  831. if (!is_mm_lsm_fe_id(fedai_id)) {
  832. pr_err("%s: Invalid machine driver ID %d\n",
  833. __func__, fedai_id);
  834. ret = -EINVAL;
  835. goto done;
  836. }
  837. if (session_type != SESSION_TYPE_RX &&
  838. session_type != SESSION_TYPE_TX) {
  839. pr_err("%s: Invalid session type %d\n",
  840. __func__, session_type);
  841. ret = -EINVAL;
  842. goto done;
  843. }
  844. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  845. pr_err("%s: Received out of bounds be_id %d\n",
  846. __func__, be_id);
  847. ret = -EINVAL;
  848. goto done;
  849. }
  850. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  851. /*
  852. * Store the BE ID of the configuration information set as the latest so
  853. * the get mixer control knows what to return.
  854. */
  855. last_be_id_configured[fedai_id][session_type] = be_id;
  856. done:
  857. return ret;
  858. }
  859. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  860. /**
  861. * msm_pcm_routing_get_stream_app_type_cfg
  862. *
  863. * Receives fedai_id, session_type, be_id, and populates app_type,
  864. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  865. * -EINVAL and does not alter passed values.
  866. *
  867. * fedai_id - Passed value, front end ID for which app type config is wanted
  868. * session_type - Passed value, session type for which app type config
  869. * is wanted
  870. * be_id - Returned value, back end device id the app type config data is for
  871. * cfg_data - Returned value, configuration data used by app type config
  872. */
  873. int msm_pcm_routing_get_stream_app_type_cfg(
  874. int fedai_id, int session_type, int *bedai_id,
  875. struct msm_pcm_stream_app_type_cfg *cfg_data)
  876. {
  877. int be_id;
  878. int ret = 0;
  879. if (bedai_id == NULL) {
  880. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. } else if (cfg_data == NULL) {
  884. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  885. ret = -EINVAL;
  886. goto done;
  887. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  888. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  889. ret = -EINVAL;
  890. goto done;
  891. } else if (session_type != SESSION_TYPE_RX &&
  892. session_type != SESSION_TYPE_TX) {
  893. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  894. ret = -EINVAL;
  895. goto done;
  896. }
  897. be_id = last_be_id_configured[fedai_id][session_type];
  898. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  899. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  900. ret = -EINVAL;
  901. goto done;
  902. }
  903. *bedai_id = be_id;
  904. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  905. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  906. __func__, fedai_id, session_type, *bedai_id,
  907. cfg_data->app_type, cfg_data->acdb_dev_id,
  908. cfg_data->sample_rate);
  909. done:
  910. return ret;
  911. }
  912. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  913. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  914. int cal_index)
  915. {
  916. struct list_head *ptr, *next;
  917. struct cal_block_data *cal_block = NULL;
  918. pr_debug("%s\n", __func__);
  919. list_for_each_safe(ptr, next,
  920. &cal_data[cal_index]->cal_blocks) {
  921. cal_block = list_entry(ptr,
  922. struct cal_block_data, list);
  923. if (cal_utils_is_cal_stale(cal_block))
  924. continue;
  925. if (((struct audio_cal_info_adm_top *)cal_block
  926. ->cal_info)->path == path) {
  927. return cal_block;
  928. }
  929. }
  930. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  931. return NULL;
  932. }
  933. static struct cal_block_data *msm_routing_find_topology(int path,
  934. int app_type,
  935. int acdb_id,
  936. int cal_index)
  937. {
  938. struct list_head *ptr, *next;
  939. struct cal_block_data *cal_block = NULL;
  940. struct audio_cal_info_adm_top *cal_info;
  941. pr_debug("%s\n", __func__);
  942. list_for_each_safe(ptr, next,
  943. &cal_data[cal_index]->cal_blocks) {
  944. cal_block = list_entry(ptr,
  945. struct cal_block_data, list);
  946. if (cal_utils_is_cal_stale(cal_block))
  947. continue;
  948. cal_info = (struct audio_cal_info_adm_top *)
  949. cal_block->cal_info;
  950. if ((cal_info->path == path) &&
  951. (cal_info->app_type == app_type) &&
  952. (cal_info->acdb_id == acdb_id)) {
  953. return cal_block;
  954. }
  955. }
  956. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  957. __func__, path, app_type, acdb_id);
  958. return msm_routing_find_topology_by_path(path, cal_index);
  959. }
  960. /*
  961. * Retrieving cal_block will mark cal_block as stale.
  962. * Hence it cannot be reused or resent unless the flag
  963. * is reset.
  964. */
  965. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  966. int be_id)
  967. {
  968. int topology = NULL_COPP_TOPOLOGY;
  969. struct cal_block_data *cal_block = NULL;
  970. int app_type = 0, acdb_dev_id = 0;
  971. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  972. __func__, fedai_id, session_type, be_id);
  973. if (cal_data == NULL)
  974. goto done;
  975. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  976. acdb_dev_id =
  977. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  978. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  979. cal_block = msm_routing_find_topology(session_type, app_type,
  980. acdb_dev_id,
  981. ADM_TOPOLOGY_CAL_TYPE_IDX);
  982. if (cal_block != NULL) {
  983. topology = ((struct audio_cal_info_adm_top *)
  984. cal_block->cal_info)->topology;
  985. cal_utils_mark_cal_used(cal_block);
  986. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  987. } else {
  988. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  989. pr_debug("%s: Check for LSM topology\n", __func__);
  990. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  991. cal_block = msm_routing_find_topology(session_type, app_type,
  992. acdb_dev_id,
  993. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  994. if (cal_block != NULL) {
  995. topology = ((struct audio_cal_info_adm_top *)
  996. cal_block->cal_info)->topology;
  997. cal_utils_mark_cal_used(cal_block);
  998. }
  999. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1000. }
  1001. done:
  1002. pr_debug("%s: Using topology %d\n", __func__, topology);
  1003. return topology;
  1004. }
  1005. static uint8_t is_be_dai_extproc(int be_dai)
  1006. {
  1007. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1008. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1009. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1010. return 1;
  1011. else
  1012. return 0;
  1013. }
  1014. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1015. int path_type, int perf_mode,
  1016. uint32_t passthr_mode)
  1017. {
  1018. int i, port_type, j, num_copps = 0;
  1019. struct route_payload payload;
  1020. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1021. path_type == ADM_PATH_COMPRESSED_RX) ?
  1022. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1023. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1024. if (!is_be_dai_extproc(i) &&
  1025. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1026. (msm_bedais[i].active) &&
  1027. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1028. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1029. unsigned long copp =
  1030. session_copp_map[fedai_id][sess_type][i];
  1031. if (test_bit(j, &copp)) {
  1032. payload.port_id[num_copps] =
  1033. msm_bedais[i].port_id;
  1034. payload.copp_idx[num_copps] = j;
  1035. payload.app_type[num_copps] =
  1036. fe_dai_app_type_cfg
  1037. [fedai_id][sess_type][i]
  1038. .app_type;
  1039. payload.acdb_dev_id[num_copps] =
  1040. fe_dai_app_type_cfg
  1041. [fedai_id][sess_type][i]
  1042. .acdb_dev_id;
  1043. payload.sample_rate[num_copps] =
  1044. fe_dai_app_type_cfg
  1045. [fedai_id][sess_type][i]
  1046. .sample_rate;
  1047. num_copps++;
  1048. }
  1049. }
  1050. }
  1051. }
  1052. if (num_copps) {
  1053. payload.num_copps = num_copps;
  1054. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1055. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1056. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1057. }
  1058. }
  1059. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1060. int stream_type)
  1061. {
  1062. int i, session_type, path_type, port_type;
  1063. u32 mode = 0;
  1064. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1065. /* bad ID assigned in machine driver */
  1066. pr_err("%s: bad MM ID\n", __func__);
  1067. return;
  1068. }
  1069. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1070. session_type = SESSION_TYPE_RX;
  1071. path_type = ADM_PATH_PLAYBACK;
  1072. port_type = MSM_AFE_PORT_TYPE_RX;
  1073. } else {
  1074. session_type = SESSION_TYPE_TX;
  1075. path_type = ADM_PATH_LIVE_REC;
  1076. port_type = MSM_AFE_PORT_TYPE_TX;
  1077. }
  1078. mutex_lock(&routing_lock);
  1079. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. mode = afe_get_port_type(msm_bedais[i].port_id);
  1086. adm_connect_afe_port(mode, dspst_id,
  1087. msm_bedais[i].port_id);
  1088. break;
  1089. }
  1090. }
  1091. mutex_unlock(&routing_lock);
  1092. }
  1093. static bool route_check_fe_id_adm_support(int fe_id)
  1094. {
  1095. bool rc = true;
  1096. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1097. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1098. /* fe id is listen while port is set to afe */
  1099. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1100. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1101. __func__, fe_id, lsm_port_index);
  1102. rc = false;
  1103. }
  1104. }
  1105. return rc;
  1106. }
  1107. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1108. int dspst_id, int stream_type,
  1109. uint32_t passthr_mode)
  1110. {
  1111. int i, j, session_type, path_type, port_type, topology;
  1112. int num_copps = 0;
  1113. struct route_payload payload;
  1114. u32 channels, sample_rate;
  1115. u16 bit_width = 16;
  1116. bool is_lsm;
  1117. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1118. __func__, fe_id, perf_mode, dspst_id,
  1119. stream_type, passthr_mode);
  1120. if (!is_mm_lsm_fe_id(fe_id)) {
  1121. /* bad ID assigned in machine driver */
  1122. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1123. return -EINVAL;
  1124. }
  1125. if (!route_check_fe_id_adm_support(fe_id)) {
  1126. /* ignore adm open if not supported for fe_id */
  1127. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1128. return 0;
  1129. }
  1130. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1131. session_type = SESSION_TYPE_RX;
  1132. if (passthr_mode != LEGACY_PCM)
  1133. path_type = ADM_PATH_COMPRESSED_RX;
  1134. else
  1135. path_type = ADM_PATH_PLAYBACK;
  1136. port_type = MSM_AFE_PORT_TYPE_RX;
  1137. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1138. session_type = SESSION_TYPE_TX;
  1139. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1140. path_type = ADM_PATH_COMPRESSED_TX;
  1141. else
  1142. path_type = ADM_PATH_LIVE_REC;
  1143. port_type = MSM_AFE_PORT_TYPE_TX;
  1144. } else {
  1145. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1146. return -EINVAL;
  1147. }
  1148. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1149. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1150. mutex_lock(&routing_lock);
  1151. payload.num_copps = 0; /* only RX needs to use payload */
  1152. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1153. /* re-enable EQ if active */
  1154. msm_qti_pp_send_eq_values(fe_id);
  1155. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1156. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1157. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1158. if (!is_be_dai_extproc(i) &&
  1159. (afe_get_port_type(msm_bedais[i].port_id) ==
  1160. port_type) &&
  1161. (msm_bedais[i].active) &&
  1162. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1163. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1164. /*
  1165. * check if ADM needs to be configured with different
  1166. * channel mapping than backend
  1167. */
  1168. if (!msm_bedais[i].adm_override_ch)
  1169. channels = msm_bedais[i].channel;
  1170. else
  1171. channels = msm_bedais[i].adm_override_ch;
  1172. bit_width = msm_routing_get_bit_width(
  1173. msm_bedais[i].format);
  1174. app_type =
  1175. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1176. if (app_type && is_lsm) {
  1177. app_type_idx =
  1178. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1179. sample_rate =
  1180. fe_dai_app_type_cfg[fe_id][session_type][i]
  1181. .sample_rate;
  1182. bit_width =
  1183. lsm_app_type_cfg[app_type_idx].bit_width;
  1184. } else if (app_type) {
  1185. app_type_idx =
  1186. msm_pcm_routing_get_app_type_idx(
  1187. app_type);
  1188. sample_rate =
  1189. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1190. bit_width =
  1191. app_type_cfg[app_type_idx].bit_width;
  1192. } else {
  1193. sample_rate = msm_bedais[i].sample_rate;
  1194. }
  1195. acdb_dev_id =
  1196. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1197. topology = msm_routing_get_adm_topology(fe_id,
  1198. session_type,
  1199. i);
  1200. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1201. || (passthr_mode ==
  1202. COMPRESSED_PASSTHROUGH_GEN))
  1203. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1204. pr_debug("%s: Before adm open topology %d\n", __func__,
  1205. topology);
  1206. copp_idx =
  1207. adm_open(msm_bedais[i].port_id,
  1208. path_type, sample_rate, channels,
  1209. topology, perf_mode, bit_width,
  1210. app_type, acdb_dev_id);
  1211. if ((copp_idx < 0) ||
  1212. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1213. pr_err("%s:adm open failed coppid:%d\n",
  1214. __func__, copp_idx);
  1215. mutex_unlock(&routing_lock);
  1216. return -EINVAL;
  1217. }
  1218. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1219. __func__, fe_id, session_type, i);
  1220. set_bit(copp_idx,
  1221. &session_copp_map[fe_id][session_type][i]);
  1222. if (msm_is_resample_needed(
  1223. sample_rate,
  1224. msm_bedais[i].sample_rate))
  1225. adm_copp_mfc_cfg(
  1226. msm_bedais[i].port_id, copp_idx,
  1227. msm_bedais[i].sample_rate);
  1228. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1229. unsigned long copp =
  1230. session_copp_map[fe_id][session_type][i];
  1231. if (test_bit(j, &copp)) {
  1232. payload.port_id[num_copps] =
  1233. msm_bedais[i].port_id;
  1234. payload.copp_idx[num_copps] = j;
  1235. payload.app_type[num_copps] =
  1236. fe_dai_app_type_cfg
  1237. [fe_id][session_type][i]
  1238. .app_type;
  1239. payload.acdb_dev_id[num_copps] =
  1240. fe_dai_app_type_cfg
  1241. [fe_id][session_type][i]
  1242. .acdb_dev_id;
  1243. payload.sample_rate[num_copps] =
  1244. fe_dai_app_type_cfg
  1245. [fe_id][session_type][i]
  1246. .sample_rate;
  1247. num_copps++;
  1248. }
  1249. }
  1250. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1251. && passthr_mode !=
  1252. COMPRESSED_PASSTHROUGH_GEN) {
  1253. msm_routing_send_device_pp_params(
  1254. msm_bedais[i].port_id,
  1255. copp_idx, fe_id);
  1256. }
  1257. }
  1258. }
  1259. if (num_copps) {
  1260. payload.num_copps = num_copps;
  1261. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1262. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1263. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1264. }
  1265. mutex_unlock(&routing_lock);
  1266. return 0;
  1267. }
  1268. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1269. {
  1270. u32 session_id;
  1271. switch (val) {
  1272. case MSM_FRONTEND_DAI_QCHAT:
  1273. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1274. break;
  1275. case MSM_FRONTEND_DAI_VOIP:
  1276. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1277. break;
  1278. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1279. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1280. break;
  1281. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1282. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1283. break;
  1284. default:
  1285. session_id = 0;
  1286. }
  1287. pr_debug("%s session_id 0x%x", __func__, session_id);
  1288. return session_id;
  1289. }
  1290. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1291. int dspst_id, int stream_type)
  1292. {
  1293. int copp_idx = 0;
  1294. int sess_type = 0;
  1295. int i = 0, j = 0, be_id;
  1296. int ret = 0;
  1297. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1298. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1299. return 0;
  1300. }
  1301. if (!(channel_mixer[fe_id].enable)) {
  1302. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1303. __func__, fe_id);
  1304. return 0;
  1305. }
  1306. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1307. sess_type = SESSION_TYPE_RX;
  1308. else
  1309. sess_type = SESSION_TYPE_TX;
  1310. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1311. ++i) {
  1312. be_id = channel_input[fe_id][i] - 1;
  1313. channel_mixer[fe_id].input_channels[i] =
  1314. msm_bedais[be_id].channel;
  1315. if ((msm_bedais[be_id].active) &&
  1316. test_bit(fe_id,
  1317. &msm_bedais[be_id].fe_sessions[0])) {
  1318. unsigned long copp =
  1319. session_copp_map[fe_id][sess_type][be_id];
  1320. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1321. if (test_bit(j, &copp)) {
  1322. copp_idx = j;
  1323. break;
  1324. }
  1325. }
  1326. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1327. __func__,
  1328. fe_id, be_id, msm_bedais[be_id].channel,
  1329. copp_idx);
  1330. ret = adm_programable_channel_mixer(
  1331. msm_bedais[be_id].port_id,
  1332. copp_idx, dspst_id, sess_type,
  1333. channel_mixer + fe_id, i);
  1334. }
  1335. }
  1336. return ret;
  1337. }
  1338. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1339. int dspst_id, int stream_type)
  1340. {
  1341. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1342. struct route_payload payload;
  1343. u32 channels, sample_rate;
  1344. uint16_t bits_per_sample = 16;
  1345. uint32_t passthr_mode = LEGACY_PCM;
  1346. int ret = 0;
  1347. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1348. /* bad ID assigned in machine driver */
  1349. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1350. return -EINVAL;
  1351. }
  1352. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1353. session_type = SESSION_TYPE_RX;
  1354. path_type = ADM_PATH_PLAYBACK;
  1355. port_type = MSM_AFE_PORT_TYPE_RX;
  1356. } else {
  1357. session_type = SESSION_TYPE_TX;
  1358. path_type = ADM_PATH_LIVE_REC;
  1359. port_type = MSM_AFE_PORT_TYPE_TX;
  1360. }
  1361. mutex_lock(&routing_lock);
  1362. payload.num_copps = 0; /* only RX needs to use payload */
  1363. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1364. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1365. /* re-enable EQ if active */
  1366. msm_qti_pp_send_eq_values(fedai_id);
  1367. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1368. if (!is_be_dai_extproc(i) &&
  1369. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1370. (msm_bedais[i].active) &&
  1371. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1372. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1373. /*
  1374. * check if ADM needs to be configured with different
  1375. * channel mapping than backend
  1376. */
  1377. if (!msm_bedais[i].adm_override_ch)
  1378. channels = msm_bedais[i].channel;
  1379. else
  1380. channels = msm_bedais[i].adm_override_ch;
  1381. msm_bedais[i].passthr_mode[fedai_id] =
  1382. LEGACY_PCM;
  1383. bits_per_sample = msm_routing_get_bit_width(
  1384. msm_bedais[i].format);
  1385. app_type =
  1386. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1387. if (app_type) {
  1388. app_type_idx =
  1389. msm_pcm_routing_get_app_type_idx(app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1392. .sample_rate;
  1393. bits_per_sample =
  1394. app_type_cfg[app_type_idx].bit_width;
  1395. } else
  1396. sample_rate = msm_bedais[i].sample_rate;
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1399. .acdb_dev_id;
  1400. topology = msm_routing_get_adm_topology(fedai_id,
  1401. session_type,
  1402. i);
  1403. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1404. sample_rate, channels, topology,
  1405. perf_mode, bits_per_sample,
  1406. app_type, acdb_dev_id);
  1407. if ((copp_idx < 0) ||
  1408. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1409. pr_err("%s: adm open failed copp_idx:%d\n",
  1410. __func__, copp_idx);
  1411. mutex_unlock(&routing_lock);
  1412. return -EINVAL;
  1413. }
  1414. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1415. __func__, fedai_id, session_type, i);
  1416. set_bit(copp_idx,
  1417. &session_copp_map[fedai_id][session_type][i]);
  1418. if (msm_is_resample_needed(
  1419. sample_rate,
  1420. msm_bedais[i].sample_rate))
  1421. adm_copp_mfc_cfg(
  1422. msm_bedais[i].port_id, copp_idx,
  1423. msm_bedais[i].sample_rate);
  1424. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1425. unsigned long copp =
  1426. session_copp_map[fedai_id][session_type][i];
  1427. if (test_bit(j, &copp)) {
  1428. payload.port_id[num_copps] =
  1429. msm_bedais[i].port_id;
  1430. payload.copp_idx[num_copps] = j;
  1431. payload.app_type[num_copps] =
  1432. fe_dai_app_type_cfg
  1433. [fedai_id][session_type]
  1434. [i].app_type;
  1435. payload.acdb_dev_id[num_copps] =
  1436. fe_dai_app_type_cfg
  1437. [fedai_id][session_type]
  1438. [i].acdb_dev_id;
  1439. payload.sample_rate[num_copps] =
  1440. fe_dai_app_type_cfg
  1441. [fedai_id][session_type]
  1442. [i].sample_rate;
  1443. num_copps++;
  1444. }
  1445. }
  1446. if ((perf_mode == LEGACY_PCM_MODE) &&
  1447. (msm_bedais[i].passthr_mode[fedai_id] ==
  1448. LEGACY_PCM))
  1449. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1450. copp_idx, topology,
  1451. channels);
  1452. }
  1453. }
  1454. if (num_copps) {
  1455. payload.num_copps = num_copps;
  1456. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1457. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1458. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1459. }
  1460. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1461. dspst_id, stream_type);
  1462. mutex_unlock(&routing_lock);
  1463. return ret;
  1464. }
  1465. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1466. int dspst_id, int stream_type,
  1467. struct msm_pcm_routing_evt event_info)
  1468. {
  1469. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1470. stream_type)) {
  1471. pr_err("%s: failed to reg phy stream\n", __func__);
  1472. return -EINVAL;
  1473. }
  1474. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1475. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1476. else
  1477. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1478. return 0;
  1479. }
  1480. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1481. {
  1482. int i, port_type, session_type, path_type, topology;
  1483. struct msm_pcm_routing_fdai_data *fdai;
  1484. if (!is_mm_lsm_fe_id(fedai_id)) {
  1485. /* bad ID assigned in machine driver */
  1486. pr_err("%s: bad MM ID\n", __func__);
  1487. return;
  1488. }
  1489. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1490. port_type = MSM_AFE_PORT_TYPE_RX;
  1491. session_type = SESSION_TYPE_RX;
  1492. path_type = ADM_PATH_PLAYBACK;
  1493. } else {
  1494. port_type = MSM_AFE_PORT_TYPE_TX;
  1495. session_type = SESSION_TYPE_TX;
  1496. path_type = ADM_PATH_LIVE_REC;
  1497. }
  1498. mutex_lock(&routing_lock);
  1499. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1500. if (!is_be_dai_extproc(i) &&
  1501. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1502. (msm_bedais[i].active) &&
  1503. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1504. int idx;
  1505. unsigned long copp =
  1506. session_copp_map[fedai_id][session_type][i];
  1507. fdai = &fe_dai_map[fedai_id][session_type];
  1508. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1509. if (test_bit(idx, &copp))
  1510. break;
  1511. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1512. pr_debug("%s: copp idx is invalid, exiting\n",
  1513. __func__);
  1514. continue;
  1515. }
  1516. topology = adm_get_topology_for_port_copp_idx(
  1517. msm_bedais[i].port_id, idx);
  1518. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1519. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1520. __func__, copp, fedai_id, session_type, i);
  1521. clear_bit(idx,
  1522. &session_copp_map[fedai_id][session_type][i]);
  1523. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1524. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1525. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1526. (msm_bedais[i].passthr_mode[fedai_id] ==
  1527. LEGACY_PCM))
  1528. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1529. topology);
  1530. }
  1531. }
  1532. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1533. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1534. mutex_unlock(&routing_lock);
  1535. }
  1536. /* Check if FE/BE route is set */
  1537. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1538. {
  1539. bool rc = false;
  1540. if (!is_mm_lsm_fe_id(fe_id)) {
  1541. /* recheck FE ID in the mixer control defined in this file */
  1542. pr_err("%s: bad MM ID\n", __func__);
  1543. return rc;
  1544. }
  1545. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1546. rc = true;
  1547. return rc;
  1548. }
  1549. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1550. {
  1551. int session_type, path_type, topology;
  1552. u32 channels, sample_rate;
  1553. uint16_t bits_per_sample = 16;
  1554. struct msm_pcm_routing_fdai_data *fdai;
  1555. uint32_t passthr_mode;
  1556. bool is_lsm;
  1557. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1558. if (!is_mm_lsm_fe_id(val)) {
  1559. /* recheck FE ID in the mixer control defined in this file */
  1560. pr_err("%s: bad MM ID\n", __func__);
  1561. return;
  1562. }
  1563. if (!route_check_fe_id_adm_support(val)) {
  1564. /* ignore adm open if not supported for fe_id */
  1565. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1566. return;
  1567. }
  1568. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1569. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1570. MSM_AFE_PORT_TYPE_RX) {
  1571. session_type = SESSION_TYPE_RX;
  1572. if (passthr_mode != LEGACY_PCM)
  1573. path_type = ADM_PATH_COMPRESSED_RX;
  1574. else
  1575. path_type = ADM_PATH_PLAYBACK;
  1576. } else {
  1577. session_type = SESSION_TYPE_TX;
  1578. if (passthr_mode != LEGACY_PCM)
  1579. path_type = ADM_PATH_COMPRESSED_TX;
  1580. else
  1581. path_type = ADM_PATH_LIVE_REC;
  1582. }
  1583. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1584. (val <= MSM_FRONTEND_DAI_LSM8);
  1585. mutex_lock(&routing_lock);
  1586. if (set) {
  1587. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1588. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1589. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1590. voc_start_playback(set, msm_bedais[reg].port_id);
  1591. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1592. fdai = &fe_dai_map[val][session_type];
  1593. if (msm_bedais[reg].active && fdai->strm_id !=
  1594. INVALID_SESSION) {
  1595. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1596. /*
  1597. * check if ADM needs to be configured with different
  1598. * channel mapping than backend
  1599. */
  1600. if (!msm_bedais[reg].adm_override_ch)
  1601. channels = msm_bedais[reg].channel;
  1602. else
  1603. channels = msm_bedais[reg].adm_override_ch;
  1604. if (session_type == SESSION_TYPE_TX &&
  1605. fdai->be_srate &&
  1606. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1607. pr_debug("%s: flush strm %d diff BE rates\n",
  1608. __func__, fdai->strm_id);
  1609. if (fdai->event_info.event_func)
  1610. fdai->event_info.event_func(
  1611. MSM_PCM_RT_EVT_BUF_RECFG,
  1612. fdai->event_info.priv_data);
  1613. fdai->be_srate = 0; /* might not need it */
  1614. }
  1615. bits_per_sample = msm_routing_get_bit_width(
  1616. msm_bedais[reg].format);
  1617. app_type =
  1618. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1619. if (app_type && is_lsm) {
  1620. app_type_idx =
  1621. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1622. sample_rate =
  1623. fe_dai_app_type_cfg[val][session_type][reg]
  1624. .sample_rate;
  1625. bits_per_sample =
  1626. lsm_app_type_cfg[app_type_idx].bit_width;
  1627. } else if (app_type) {
  1628. app_type_idx =
  1629. msm_pcm_routing_get_app_type_idx(app_type);
  1630. sample_rate =
  1631. fe_dai_app_type_cfg[val][session_type][reg]
  1632. .sample_rate;
  1633. bits_per_sample =
  1634. app_type_cfg[app_type_idx].bit_width;
  1635. } else
  1636. sample_rate = msm_bedais[reg].sample_rate;
  1637. topology = msm_routing_get_adm_topology(val,
  1638. session_type,
  1639. reg);
  1640. acdb_dev_id =
  1641. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1642. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1643. sample_rate, channels, topology,
  1644. fdai->perf_mode, bits_per_sample,
  1645. app_type, acdb_dev_id);
  1646. if ((copp_idx < 0) ||
  1647. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1648. pr_err("%s: adm open failed\n", __func__);
  1649. mutex_unlock(&routing_lock);
  1650. return;
  1651. }
  1652. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1653. __func__, val, session_type, reg);
  1654. set_bit(copp_idx,
  1655. &session_copp_map[val][session_type][reg]);
  1656. if (msm_is_resample_needed(
  1657. sample_rate,
  1658. msm_bedais[reg].sample_rate))
  1659. adm_copp_mfc_cfg(
  1660. msm_bedais[reg].port_id, copp_idx,
  1661. msm_bedais[reg].sample_rate);
  1662. if (session_type == SESSION_TYPE_RX &&
  1663. fdai->event_info.event_func)
  1664. fdai->event_info.event_func(
  1665. MSM_PCM_RT_EVT_DEVSWITCH,
  1666. fdai->event_info.priv_data);
  1667. msm_pcm_routing_build_matrix(val, session_type,
  1668. path_type,
  1669. fdai->perf_mode,
  1670. passthr_mode);
  1671. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1672. (passthr_mode == LEGACY_PCM))
  1673. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1674. copp_idx, topology,
  1675. channels);
  1676. }
  1677. } else {
  1678. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1679. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1680. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1681. voc_start_playback(set, msm_bedais[reg].port_id);
  1682. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1683. fdai = &fe_dai_map[val][session_type];
  1684. if (msm_bedais[reg].active && fdai->strm_id !=
  1685. INVALID_SESSION) {
  1686. int idx;
  1687. int port_id;
  1688. unsigned long copp =
  1689. session_copp_map[val][session_type][reg];
  1690. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1691. if (test_bit(idx, &copp))
  1692. break;
  1693. port_id = msm_bedais[reg].port_id;
  1694. topology = adm_get_topology_for_port_copp_idx(port_id,
  1695. idx);
  1696. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1697. idx);
  1698. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1699. __func__, copp, val, session_type, reg,
  1700. topology);
  1701. clear_bit(idx,
  1702. &session_copp_map[val][session_type][reg]);
  1703. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1704. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1705. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1706. (passthr_mode == LEGACY_PCM))
  1707. msm_pcm_routing_deinit_pp(
  1708. msm_bedais[reg].port_id,
  1709. topology);
  1710. msm_pcm_routing_build_matrix(val, session_type,
  1711. path_type,
  1712. fdai->perf_mode,
  1713. passthr_mode);
  1714. }
  1715. }
  1716. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1717. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1718. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1719. mutex_unlock(&routing_lock);
  1720. }
  1721. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1722. struct snd_ctl_elem_value *ucontrol)
  1723. {
  1724. struct soc_mixer_control *mc =
  1725. (struct soc_mixer_control *)kcontrol->private_value;
  1726. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1727. ucontrol->value.integer.value[0] = 1;
  1728. else
  1729. ucontrol->value.integer.value[0] = 0;
  1730. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1731. ucontrol->value.integer.value[0]);
  1732. return 0;
  1733. }
  1734. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1735. struct snd_ctl_elem_value *ucontrol)
  1736. {
  1737. struct snd_soc_dapm_widget *widget =
  1738. snd_soc_dapm_kcontrol_widget(kcontrol);
  1739. struct soc_mixer_control *mc =
  1740. (struct soc_mixer_control *)kcontrol->private_value;
  1741. struct snd_soc_dapm_update *update = NULL;
  1742. if (ucontrol->value.integer.value[0] &&
  1743. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1744. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1745. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1746. update);
  1747. } else if (!ucontrol->value.integer.value[0] &&
  1748. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1749. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1750. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1751. update);
  1752. }
  1753. return 1;
  1754. }
  1755. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1756. struct snd_ctl_elem_value *ucontrol)
  1757. {
  1758. struct soc_mixer_control *mc =
  1759. (struct soc_mixer_control *)kcontrol->private_value;
  1760. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1761. ucontrol->value.integer.value[0] = 1;
  1762. else
  1763. ucontrol->value.integer.value[0] = 0;
  1764. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1765. ucontrol->value.integer.value[0]);
  1766. return 0;
  1767. }
  1768. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1769. struct snd_ctl_elem_value *ucontrol)
  1770. {
  1771. struct snd_soc_dapm_widget *widget =
  1772. snd_soc_dapm_kcontrol_widget(kcontrol);
  1773. struct soc_mixer_control *mc =
  1774. (struct soc_mixer_control *)kcontrol->private_value;
  1775. struct snd_soc_dapm_update *update = NULL;
  1776. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1777. ucontrol->value.integer.value[0]);
  1778. if (ucontrol->value.integer.value[0]) {
  1779. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1780. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1781. snd_soc_dapm_mixer_update_power(widget->dapm,
  1782. kcontrol, 1, update);
  1783. } else if (!ucontrol->value.integer.value[0]) {
  1784. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1785. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1786. snd_soc_dapm_mixer_update_power(widget->dapm,
  1787. kcontrol, 0, update);
  1788. }
  1789. return 1;
  1790. }
  1791. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1792. {
  1793. u32 session_id = 0;
  1794. u16 path_type;
  1795. struct media_format_info voc_be_media_format;
  1796. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1797. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1798. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1799. __func__, val, session_id);
  1800. mutex_lock(&routing_lock);
  1801. if (set)
  1802. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1803. else
  1804. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1805. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1806. afe_get_port_type(msm_bedais[reg].port_id) ==
  1807. MSM_AFE_PORT_TYPE_RX) {
  1808. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1809. __func__, set, msm_bedais[reg].port_id);
  1810. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1811. }
  1812. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1813. MSM_AFE_PORT_TYPE_RX)
  1814. path_type = RX_PATH;
  1815. else
  1816. path_type = TX_PATH;
  1817. if (set) {
  1818. if (msm_bedais[reg].active) {
  1819. voc_set_route_flag(session_id, path_type, 1);
  1820. memset(&voc_be_media_format, 0,
  1821. sizeof(struct media_format_info));
  1822. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1823. voc_be_media_format.num_channels =
  1824. msm_bedais[reg].channel;
  1825. voc_be_media_format.sample_rate =
  1826. msm_bedais[reg].sample_rate;
  1827. voc_be_media_format.bits_per_sample =
  1828. msm_bedais[reg].format;
  1829. /* Defaulting this to 1 for voice call usecases */
  1830. voc_be_media_format.channel_mapping[0] = 1;
  1831. voc_set_device_config(session_id, path_type,
  1832. &voc_be_media_format);
  1833. if (voc_get_route_flag(session_id, TX_PATH) &&
  1834. voc_get_route_flag(session_id, RX_PATH))
  1835. voc_enable_device(session_id);
  1836. } else {
  1837. pr_debug("%s BE is not active\n", __func__);
  1838. }
  1839. } else {
  1840. voc_set_route_flag(session_id, path_type, 0);
  1841. voc_disable_device(session_id);
  1842. }
  1843. mutex_unlock(&routing_lock);
  1844. }
  1845. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1846. struct snd_ctl_elem_value *ucontrol)
  1847. {
  1848. struct soc_mixer_control *mc =
  1849. (struct soc_mixer_control *)kcontrol->private_value;
  1850. mutex_lock(&routing_lock);
  1851. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1852. ucontrol->value.integer.value[0] = 1;
  1853. else
  1854. ucontrol->value.integer.value[0] = 0;
  1855. mutex_unlock(&routing_lock);
  1856. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1857. ucontrol->value.integer.value[0]);
  1858. return 0;
  1859. }
  1860. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1861. struct snd_ctl_elem_value *ucontrol)
  1862. {
  1863. struct snd_soc_dapm_widget *widget =
  1864. snd_soc_dapm_kcontrol_widget(kcontrol);
  1865. struct soc_mixer_control *mc =
  1866. (struct soc_mixer_control *)kcontrol->private_value;
  1867. struct snd_soc_dapm_update *update = NULL;
  1868. if (ucontrol->value.integer.value[0]) {
  1869. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1870. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1871. update);
  1872. } else {
  1873. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1874. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1875. update);
  1876. }
  1877. return 1;
  1878. }
  1879. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1880. struct snd_ctl_elem_value *ucontrol)
  1881. {
  1882. struct soc_mixer_control *mc =
  1883. (struct soc_mixer_control *)kcontrol->private_value;
  1884. mutex_lock(&routing_lock);
  1885. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1886. ucontrol->value.integer.value[0] = 1;
  1887. else
  1888. ucontrol->value.integer.value[0] = 0;
  1889. mutex_unlock(&routing_lock);
  1890. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1891. ucontrol->value.integer.value[0]);
  1892. return 0;
  1893. }
  1894. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1895. struct snd_ctl_elem_value *ucontrol)
  1896. {
  1897. struct snd_soc_dapm_widget *widget =
  1898. snd_soc_dapm_kcontrol_widget(kcontrol);
  1899. struct soc_mixer_control *mc =
  1900. (struct soc_mixer_control *)kcontrol->private_value;
  1901. struct snd_soc_dapm_update *update = NULL;
  1902. if (ucontrol->value.integer.value[0]) {
  1903. mutex_lock(&routing_lock);
  1904. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1905. mutex_unlock(&routing_lock);
  1906. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1907. update);
  1908. } else {
  1909. mutex_lock(&routing_lock);
  1910. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1911. mutex_unlock(&routing_lock);
  1912. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1913. update);
  1914. }
  1915. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1916. ucontrol->value.integer.value[0]);
  1917. return 1;
  1918. }
  1919. /*
  1920. * Return the mapping between port ID and backend ID to enable the AFE callback
  1921. * to determine the acdb_dev_id from the port id
  1922. */
  1923. int msm_pcm_get_be_id_from_port_id(int port_id)
  1924. {
  1925. int i;
  1926. int be_id = -EINVAL;
  1927. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1928. if (msm_bedais[i].port_id == port_id) {
  1929. be_id = i;
  1930. break;
  1931. }
  1932. }
  1933. return be_id;
  1934. }
  1935. /*
  1936. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1937. * correct AFE calibration information by comparing the header information.
  1938. */
  1939. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1940. {
  1941. int acdb_id = -EINVAL;
  1942. int i = 0;
  1943. int session;
  1944. int port_type = afe_get_port_type(port_id);
  1945. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1946. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1947. __func__, port_id, be_id, port_type);
  1948. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1949. session = SESSION_TYPE_TX;
  1950. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1951. session = SESSION_TYPE_RX;
  1952. } else {
  1953. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1954. acdb_id = -EINVAL;
  1955. goto exit;
  1956. }
  1957. if (be_id < 0) {
  1958. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1959. goto exit;
  1960. }
  1961. mutex_lock(&routing_lock);
  1962. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1963. MSM_FRONTEND_DAI_MAX);
  1964. if (i < MSM_FRONTEND_DAI_MAX)
  1965. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1966. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1967. __func__, i, session, be_id, acdb_id);
  1968. mutex_unlock(&routing_lock);
  1969. exit:
  1970. return acdb_id;
  1971. }
  1972. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1973. struct snd_ctl_elem_value *ucontrol)
  1974. {
  1975. ucontrol->value.integer.value[0] = fm_switch_enable;
  1976. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1977. ucontrol->value.integer.value[0]);
  1978. return 0;
  1979. }
  1980. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1981. struct snd_ctl_elem_value *ucontrol)
  1982. {
  1983. struct snd_soc_dapm_widget *widget =
  1984. snd_soc_dapm_kcontrol_widget(kcontrol);
  1985. struct snd_soc_dapm_update *update = NULL;
  1986. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1987. ucontrol->value.integer.value[0]);
  1988. if (ucontrol->value.integer.value[0])
  1989. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1990. update);
  1991. else
  1992. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1993. update);
  1994. fm_switch_enable = ucontrol->value.integer.value[0];
  1995. return 1;
  1996. }
  1997. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1998. struct snd_ctl_elem_value *ucontrol)
  1999. {
  2000. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2001. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2002. ucontrol->value.integer.value[0]);
  2003. return 0;
  2004. }
  2005. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2006. struct snd_ctl_elem_value *ucontrol)
  2007. {
  2008. struct snd_soc_dapm_widget *widget =
  2009. snd_soc_dapm_kcontrol_widget(kcontrol);
  2010. struct snd_soc_dapm_update *update = NULL;
  2011. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2012. ucontrol->value.integer.value[0]);
  2013. if (ucontrol->value.integer.value[0])
  2014. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2015. 1, update);
  2016. else
  2017. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2018. 0, update);
  2019. hfp_switch_enable = ucontrol->value.integer.value[0];
  2020. return 1;
  2021. }
  2022. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2023. struct snd_ctl_elem_value *ucontrol)
  2024. {
  2025. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2026. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2027. ucontrol->value.integer.value[0]);
  2028. return 0;
  2029. }
  2030. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2031. struct snd_ctl_elem_value *ucontrol)
  2032. {
  2033. struct snd_soc_dapm_widget *widget =
  2034. snd_soc_dapm_kcontrol_widget(kcontrol);
  2035. struct snd_soc_dapm_update *update = NULL;
  2036. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2037. ucontrol->value.integer.value[0]);
  2038. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2039. if (a2dp_switch_enable)
  2040. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2041. 1, update);
  2042. else
  2043. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2044. 0, update);
  2045. return 1;
  2046. }
  2047. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2048. struct snd_ctl_elem_value *ucontrol)
  2049. {
  2050. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2051. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2052. ucontrol->value.integer.value[0]);
  2053. return 0;
  2054. }
  2055. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. struct snd_soc_dapm_widget *widget =
  2059. snd_soc_dapm_kcontrol_widget(kcontrol);
  2060. struct snd_soc_dapm_update *update = NULL;
  2061. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2062. ucontrol->value.integer.value[0]);
  2063. if (ucontrol->value.integer.value[0])
  2064. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2065. update);
  2066. else
  2067. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2068. update);
  2069. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2070. return 1;
  2071. }
  2072. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2073. struct snd_ctl_elem_value *ucontrol)
  2074. {
  2075. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2076. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2077. ucontrol->value.integer.value[0]);
  2078. return 0;
  2079. }
  2080. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2081. struct snd_ctl_elem_value *ucontrol)
  2082. {
  2083. struct snd_soc_dapm_widget *widget =
  2084. snd_soc_dapm_kcontrol_widget(kcontrol);
  2085. struct snd_soc_dapm_update *update = NULL;
  2086. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2087. ucontrol->value.integer.value[0]);
  2088. if (ucontrol->value.integer.value[0])
  2089. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2090. update);
  2091. else
  2092. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2093. update);
  2094. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2095. return 1;
  2096. }
  2097. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2098. struct snd_ctl_elem_value *ucontrol)
  2099. {
  2100. ucontrol->value.integer.value[0] = usb_switch_enable;
  2101. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2102. ucontrol->value.integer.value[0]);
  2103. return 0;
  2104. }
  2105. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. struct snd_soc_dapm_widget *widget =
  2109. snd_soc_dapm_kcontrol_widget(kcontrol);
  2110. struct snd_soc_dapm_update *update = NULL;
  2111. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2112. ucontrol->value.integer.value[0]);
  2113. if (ucontrol->value.integer.value[0])
  2114. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2115. 1, update);
  2116. else
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2118. 0, update);
  2119. usb_switch_enable = ucontrol->value.integer.value[0];
  2120. return 1;
  2121. }
  2122. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2123. struct snd_ctl_elem_value *ucontrol)
  2124. {
  2125. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2126. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2127. ucontrol->value.integer.value[0]);
  2128. return 0;
  2129. }
  2130. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. struct snd_soc_dapm_widget *widget =
  2134. snd_soc_dapm_kcontrol_widget(kcontrol);
  2135. struct snd_soc_dapm_update *update = NULL;
  2136. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2137. ucontrol->value.integer.value[0]);
  2138. if (ucontrol->value.integer.value[0])
  2139. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2140. update);
  2141. else
  2142. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2143. update);
  2144. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2145. return 1;
  2146. }
  2147. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2151. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2152. ucontrol->value.integer.value[0]);
  2153. return 0;
  2154. }
  2155. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2156. struct snd_ctl_elem_value *ucontrol)
  2157. {
  2158. struct snd_soc_dapm_widget *widget =
  2159. snd_soc_dapm_kcontrol_widget(kcontrol);
  2160. struct snd_soc_dapm_update *update = NULL;
  2161. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2162. ucontrol->value.integer.value[0]);
  2163. if (ucontrol->value.integer.value[0])
  2164. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2165. update);
  2166. else
  2167. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2168. update);
  2169. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2170. return 1;
  2171. }
  2172. static int msm_routing_get_tert_mi2s_switch_mixer(
  2173. struct snd_kcontrol *kcontrol,
  2174. struct snd_ctl_elem_value *ucontrol)
  2175. {
  2176. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2177. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2178. ucontrol->value.integer.value[0]);
  2179. return 0;
  2180. }
  2181. static int msm_routing_put_tert_mi2s_switch_mixer(
  2182. struct snd_kcontrol *kcontrol,
  2183. struct snd_ctl_elem_value *ucontrol)
  2184. {
  2185. struct snd_soc_dapm_widget *widget =
  2186. snd_soc_dapm_kcontrol_widget(kcontrol);
  2187. struct snd_soc_dapm_update *update = NULL;
  2188. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2189. ucontrol->value.integer.value[0]);
  2190. if (ucontrol->value.integer.value[0])
  2191. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2192. update);
  2193. else
  2194. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2195. update);
  2196. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2197. return 1;
  2198. }
  2199. static int msm_routing_get_quat_mi2s_switch_mixer(
  2200. struct snd_kcontrol *kcontrol,
  2201. struct snd_ctl_elem_value *ucontrol)
  2202. {
  2203. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2204. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2205. ucontrol->value.integer.value[0]);
  2206. return 0;
  2207. }
  2208. static int msm_routing_put_quat_mi2s_switch_mixer(
  2209. struct snd_kcontrol *kcontrol,
  2210. struct snd_ctl_elem_value *ucontrol)
  2211. {
  2212. struct snd_soc_dapm_widget *widget =
  2213. snd_soc_dapm_kcontrol_widget(kcontrol);
  2214. struct snd_soc_dapm_update *update = NULL;
  2215. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2216. ucontrol->value.integer.value[0]);
  2217. if (ucontrol->value.integer.value[0])
  2218. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2219. update);
  2220. else
  2221. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2222. update);
  2223. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2224. return 1;
  2225. }
  2226. static int msm_routing_get_quin_mi2s_switch_mixer(
  2227. struct snd_kcontrol *kcontrol,
  2228. struct snd_ctl_elem_value *ucontrol)
  2229. {
  2230. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2231. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2232. ucontrol->value.integer.value[0]);
  2233. return 0;
  2234. }
  2235. static int msm_routing_put_quin_mi2s_switch_mixer(
  2236. struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. struct snd_soc_dapm_widget *widget =
  2240. snd_soc_dapm_kcontrol_widget(kcontrol);
  2241. struct snd_soc_dapm_update *update = NULL;
  2242. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2243. ucontrol->value.integer.value[0]);
  2244. if (ucontrol->value.integer.value[0])
  2245. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2246. update);
  2247. else
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2249. update);
  2250. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2251. return 1;
  2252. }
  2253. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2254. struct snd_ctl_elem_value *ucontrol)
  2255. {
  2256. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2257. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2258. ucontrol->value.integer.value[0]);
  2259. return 0;
  2260. }
  2261. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2262. struct snd_ctl_elem_value *ucontrol)
  2263. {
  2264. struct snd_soc_dapm_widget *widget =
  2265. snd_soc_dapm_kcontrol_widget(kcontrol);
  2266. struct snd_soc_dapm_update *update = NULL;
  2267. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2268. ucontrol->value.integer.value[0]);
  2269. if (ucontrol->value.integer.value[0])
  2270. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2271. update);
  2272. else
  2273. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2274. update);
  2275. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2276. return 1;
  2277. }
  2278. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2279. struct snd_ctl_elem_value *ucontrol)
  2280. {
  2281. ucontrol->value.integer.value[0] = lsm_port_index;
  2282. return 0;
  2283. }
  2284. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2288. int mux = ucontrol->value.enumerated.item[0];
  2289. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2290. if (mux >= e->items) {
  2291. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2292. return -EINVAL;
  2293. }
  2294. pr_debug("%s: LSM enable %ld\n", __func__,
  2295. ucontrol->value.integer.value[0]);
  2296. switch (ucontrol->value.integer.value[0]) {
  2297. case 1:
  2298. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2299. break;
  2300. case 2:
  2301. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2302. break;
  2303. case 3:
  2304. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2305. break;
  2306. case 4:
  2307. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2308. break;
  2309. case 5:
  2310. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2311. break;
  2312. case 6:
  2313. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2314. break;
  2315. case 7:
  2316. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2317. break;
  2318. case 8:
  2319. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2320. break;
  2321. case 9:
  2322. lsm_port = ADM_LSM_PORT_ID;
  2323. break;
  2324. case 10:
  2325. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2326. break;
  2327. case 11:
  2328. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2329. break;
  2330. case 12:
  2331. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2332. break;
  2333. default:
  2334. pr_err("Default lsm port");
  2335. break;
  2336. }
  2337. set_lsm_port(lsm_port);
  2338. lsm_port_index = ucontrol->value.integer.value[0];
  2339. return 0;
  2340. }
  2341. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2342. struct snd_ctl_elem_value *ucontrol)
  2343. {
  2344. int i;
  2345. u16 port_id;
  2346. enum afe_mad_type mad_type;
  2347. pr_debug("%s: enter\n", __func__);
  2348. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2349. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2350. strlen(lsm_port_text[i])))
  2351. break;
  2352. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2353. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2354. return -EINVAL;
  2355. }
  2356. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2357. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2358. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2359. strlen(lsm_port_text[7])))
  2360. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2361. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2362. strlen(lsm_port_text[8])))
  2363. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2364. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2365. strlen(lsm_port_text[10])))
  2366. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2367. mad_type = afe_port_get_mad_type(port_id);
  2368. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2369. mad_type);
  2370. switch (mad_type) {
  2371. case MAD_HW_NONE:
  2372. ucontrol->value.integer.value[0] = MADNONE;
  2373. break;
  2374. case MAD_HW_AUDIO:
  2375. ucontrol->value.integer.value[0] = MADAUDIO;
  2376. break;
  2377. case MAD_HW_BEACON:
  2378. ucontrol->value.integer.value[0] = MADBEACON;
  2379. break;
  2380. case MAD_HW_ULTRASOUND:
  2381. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2382. break;
  2383. case MAD_SW_AUDIO:
  2384. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2385. break;
  2386. default:
  2387. WARN(1, "Unknown\n");
  2388. return -EINVAL;
  2389. }
  2390. return 0;
  2391. }
  2392. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2393. struct snd_ctl_elem_value *ucontrol)
  2394. {
  2395. int i;
  2396. u16 port_id;
  2397. enum afe_mad_type mad_type;
  2398. pr_debug("%s: enter\n", __func__);
  2399. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2400. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2401. strlen(lsm_port_text[i])))
  2402. break;
  2403. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2404. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2405. return -EINVAL;
  2406. }
  2407. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2408. switch (ucontrol->value.integer.value[0]) {
  2409. case MADNONE:
  2410. mad_type = MAD_HW_NONE;
  2411. break;
  2412. case MADAUDIO:
  2413. mad_type = MAD_HW_AUDIO;
  2414. break;
  2415. case MADBEACON:
  2416. mad_type = MAD_HW_BEACON;
  2417. break;
  2418. case MADULTRASOUND:
  2419. mad_type = MAD_HW_ULTRASOUND;
  2420. break;
  2421. case MADSWAUDIO:
  2422. mad_type = MAD_SW_AUDIO;
  2423. break;
  2424. default:
  2425. WARN(1, "Unknown\n");
  2426. return -EINVAL;
  2427. }
  2428. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2429. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2430. strlen(lsm_port_text[7])))
  2431. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2432. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2433. strlen(lsm_port_text[8])))
  2434. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2435. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2436. strlen(lsm_port_text[10])))
  2437. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2438. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2439. mad_type);
  2440. return afe_port_set_mad_type(port_id, mad_type);
  2441. }
  2442. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2443. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2444. adm_override_chs_text);
  2445. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2446. {
  2447. int backend_id;
  2448. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2449. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2450. } else {
  2451. pr_err("%s: unsupported backend id: %s",
  2452. __func__, kcontrol->id.name);
  2453. return -EINVAL;
  2454. }
  2455. return backend_id;
  2456. }
  2457. static int msm_routing_adm_channel_config_get(
  2458. struct snd_kcontrol *kcontrol,
  2459. struct snd_ctl_elem_value *ucontrol)
  2460. {
  2461. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2462. if (backend_id >= 0) {
  2463. mutex_lock(&routing_lock);
  2464. ucontrol->value.integer.value[0] =
  2465. msm_bedais[backend_id].adm_override_ch;
  2466. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2467. ucontrol->value.integer.value[0], backend_id);
  2468. mutex_unlock(&routing_lock);
  2469. }
  2470. return 0;
  2471. }
  2472. static int msm_routing_adm_channel_config_put(
  2473. struct snd_kcontrol *kcontrol,
  2474. struct snd_ctl_elem_value *ucontrol)
  2475. {
  2476. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2477. if (backend_id >= 0) {
  2478. mutex_lock(&routing_lock);
  2479. msm_bedais[backend_id].adm_override_ch =
  2480. ucontrol->value.integer.value[0];
  2481. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2482. __func__, backend_id,
  2483. msm_bedais[backend_id].adm_override_ch);
  2484. mutex_unlock(&routing_lock);
  2485. }
  2486. return 0;
  2487. }
  2488. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2489. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2490. msm_routing_adm_channel_config_get,
  2491. msm_routing_adm_channel_config_put),
  2492. };
  2493. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2494. struct snd_ctl_elem_value *ucontrol)
  2495. {
  2496. mutex_lock(&routing_lock);
  2497. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2498. mutex_unlock(&routing_lock);
  2499. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2500. ucontrol->value.integer.value[0]);
  2501. return 0;
  2502. };
  2503. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2504. struct snd_ctl_elem_value *ucontrol)
  2505. {
  2506. struct aanc_data aanc_info;
  2507. mutex_lock(&routing_lock);
  2508. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2509. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2510. ucontrol->value.integer.value[0]);
  2511. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2512. if (ucontrol->value.integer.value[0] == 0) {
  2513. aanc_info.aanc_active = false;
  2514. aanc_info.aanc_tx_port = 0;
  2515. aanc_info.aanc_rx_port = 0;
  2516. } else {
  2517. aanc_info.aanc_active = true;
  2518. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2519. aanc_info.aanc_tx_port =
  2520. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2521. }
  2522. afe_set_aanc_info(&aanc_info);
  2523. mutex_unlock(&routing_lock);
  2524. return 0;
  2525. };
  2526. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. int idx = 0, shift = 0;
  2530. struct soc_mixer_control *mc =
  2531. (struct soc_mixer_control *)kcontrol->private_value;
  2532. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2533. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2534. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2535. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2536. return -EINVAL;
  2537. }
  2538. if (test_bit(shift,
  2539. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2540. ucontrol->value.integer.value[0] = 1;
  2541. else
  2542. ucontrol->value.integer.value[0] = 0;
  2543. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2544. ucontrol->value.integer.value[0]);
  2545. return 0;
  2546. }
  2547. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2548. struct snd_ctl_elem_value *ucontrol)
  2549. {
  2550. int idx = 0, shift = 0;
  2551. struct soc_mixer_control *mc =
  2552. (struct soc_mixer_control *)kcontrol->private_value;
  2553. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2554. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2555. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2556. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2557. return -EINVAL;
  2558. }
  2559. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2560. __func__, mc->shift, mc->rshift,
  2561. ucontrol->value.integer.value[0], idx, shift);
  2562. if (ucontrol->value.integer.value[0]) {
  2563. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2564. msm_bedais[mc->rshift].port_id);
  2565. set_bit(shift,
  2566. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2567. } else {
  2568. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2569. msm_bedais[mc->rshift].port_id);
  2570. clear_bit(shift,
  2571. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2572. }
  2573. return 1;
  2574. }
  2575. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2576. struct snd_ctl_elem_value *ucontrol)
  2577. {
  2578. u16 fe_id = 0;
  2579. fe_id = ((struct soc_mixer_control *)
  2580. kcontrol->private_value)->shift;
  2581. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2582. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2583. return -EINVAL;
  2584. }
  2585. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2586. return 0;
  2587. }
  2588. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2589. struct snd_ctl_elem_value *ucontrol)
  2590. {
  2591. u16 fe_id = 0;
  2592. fe_id = ((struct soc_mixer_control *)
  2593. kcontrol->private_value)->shift;
  2594. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2595. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2596. return -EINVAL;
  2597. }
  2598. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2599. return 1;
  2600. }
  2601. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. u16 fe_id = 0;
  2605. fe_id = ((struct soc_multi_mixer_control *)
  2606. kcontrol->private_value)->shift;
  2607. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2608. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2609. return -EINVAL;
  2610. }
  2611. ucontrol->value.integer.value[0] =
  2612. channel_mixer[fe_id].output_channel;
  2613. return 0;
  2614. }
  2615. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2616. struct snd_ctl_elem_value *ucontrol)
  2617. {
  2618. u16 fe_id = 0;
  2619. fe_id = ((struct soc_multi_mixer_control *)
  2620. kcontrol->private_value)->shift;
  2621. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2622. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2623. return -EINVAL;
  2624. }
  2625. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2626. fe_id,
  2627. (unsigned int)(ucontrol->value.integer.value[0]));
  2628. channel_mixer[fe_id].output_channel =
  2629. (unsigned int)(ucontrol->value.integer.value[0]);
  2630. return 1;
  2631. }
  2632. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2633. /* If new backend is added, need update this array */
  2634. static const char *const be_name[] = {
  2635. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2636. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2637. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2638. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2639. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2640. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2641. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2642. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2643. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2644. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2645. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2646. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2647. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2648. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2649. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2650. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2651. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2652. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2653. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2654. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2655. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2656. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2657. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2658. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2659. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2660. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2661. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2662. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2663. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2664. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2665. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2666. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2667. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2668. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2669. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2670. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2671. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2672. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2673. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2674. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2675. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2676. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2677. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2678. };
  2679. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2680. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2681. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2682. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2683. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2684. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2685. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2686. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2687. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2688. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2689. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2690. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2691. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2692. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2693. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2694. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2695. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2696. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2697. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2698. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2699. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2700. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2701. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2702. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2703. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2704. unsigned int channels,
  2705. unsigned int items, const char *const names[])
  2706. {
  2707. if (uinfo->value.enumerated.item >= items)
  2708. uinfo->value.enumerated.item = items - 1;
  2709. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2710. sizeof(uinfo->value.enumerated.name),
  2711. "ALSA: too long item name '%s'\n",
  2712. names[uinfo->value.enumerated.item]);
  2713. strlcpy(uinfo->value.enumerated.name,
  2714. names[uinfo->value.enumerated.item],
  2715. sizeof(uinfo->value.enumerated.name));
  2716. return 0;
  2717. }
  2718. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2719. struct snd_ctl_elem_info *uinfo)
  2720. {
  2721. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2722. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2723. uinfo->count = 1;
  2724. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2725. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2726. return 0;
  2727. }
  2728. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2729. struct snd_ctl_elem_value *ucontrol)
  2730. {
  2731. u16 fe_id = 0;
  2732. fe_id = ((struct soc_enum *)
  2733. kcontrol->private_value)->shift_l;
  2734. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2735. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2736. return -EINVAL;
  2737. }
  2738. pr_debug("%s: FE %d %s\n", __func__,
  2739. fe_id,
  2740. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2741. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2742. return 0;
  2743. }
  2744. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2745. struct snd_ctl_elem_value *ucontrol)
  2746. {
  2747. u16 fe_id = 0;
  2748. fe_id = ((struct soc_enum *)
  2749. kcontrol->private_value)->shift_l;
  2750. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2751. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2752. return -EINVAL;
  2753. }
  2754. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2755. pr_debug("%s: %s FE %d\n", __func__,
  2756. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2757. fe_id);
  2758. return 0;
  2759. }
  2760. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2761. struct snd_ctl_elem_info *uinfo)
  2762. {
  2763. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2764. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2765. uinfo->count = 1;
  2766. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2767. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2768. return 0;
  2769. }
  2770. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2771. struct snd_ctl_elem_value *ucontrol)
  2772. {
  2773. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2774. u16 fe_id = 0, in_ch = 0;
  2775. fe_id = e->shift_l;
  2776. in_ch = e->shift_r;
  2777. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2778. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2779. return -EINVAL;
  2780. }
  2781. if (in_ch >= ADM_MAX_CHANNELS) {
  2782. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2783. return -EINVAL;
  2784. }
  2785. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2786. return 1;
  2787. }
  2788. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2789. struct snd_ctl_elem_value *ucontrol)
  2790. {
  2791. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2792. u16 fe_id = 0, in_ch = 0;
  2793. fe_id = e->shift_l;
  2794. in_ch = e->shift_r;
  2795. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2796. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2797. return -EINVAL;
  2798. }
  2799. if (in_ch >= ADM_MAX_CHANNELS) {
  2800. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2801. return -EINVAL;
  2802. }
  2803. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2804. return 1;
  2805. }
  2806. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2807. struct snd_ctl_elem_info *uinfo)
  2808. {
  2809. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2810. uinfo->count = ADM_MAX_CHANNELS;
  2811. uinfo->value.integer.min = 0;
  2812. uinfo->value.integer.max = WEIGHT_0_DB;
  2813. return 0;
  2814. }
  2815. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2816. struct snd_ctl_elem_value *ucontrol)
  2817. {
  2818. u16 fe_id = 0, out_ch = 0;
  2819. int i, weight;
  2820. fe_id = ((struct soc_multi_mixer_control *)
  2821. kcontrol->private_value)->shift;
  2822. out_ch = ((struct soc_multi_mixer_control *)
  2823. kcontrol->private_value)->rshift;
  2824. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2825. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2826. return -EINVAL;
  2827. }
  2828. if (out_ch >= ADM_MAX_CHANNELS) {
  2829. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2830. return -EINVAL;
  2831. }
  2832. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2833. __func__, fe_id,
  2834. ucontrol->value.integer.value[0],
  2835. ucontrol->value.integer.value[1],
  2836. ucontrol->value.integer.value[2],
  2837. ucontrol->value.integer.value[3],
  2838. ucontrol->value.integer.value[4],
  2839. ucontrol->value.integer.value[5],
  2840. ucontrol->value.integer.value[6],
  2841. ucontrol->value.integer.value[7]);
  2842. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2843. weight = ucontrol->value.integer.value[i];
  2844. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2845. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2846. __func__, fe_id, out_ch, i,
  2847. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2848. }
  2849. return 0;
  2850. }
  2851. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2852. struct snd_ctl_elem_value *ucontrol)
  2853. {
  2854. u16 fe_id = 0, out_ch = 0;
  2855. int i;
  2856. fe_id = ((struct soc_multi_mixer_control *)
  2857. kcontrol->private_value)->shift;
  2858. out_ch = ((struct soc_multi_mixer_control *)
  2859. kcontrol->private_value)->rshift;
  2860. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2861. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2862. return -EINVAL;
  2863. }
  2864. if (out_ch >= ADM_MAX_CHANNELS) {
  2865. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2866. return -EINVAL;
  2867. }
  2868. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2869. ucontrol->value.integer.value[i] =
  2870. channel_mixer[fe_id].channel_weight[out_ch][i];
  2871. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2872. __func__, fe_id,
  2873. ucontrol->value.integer.value[0],
  2874. ucontrol->value.integer.value[1],
  2875. ucontrol->value.integer.value[2],
  2876. ucontrol->value.integer.value[3],
  2877. ucontrol->value.integer.value[4],
  2878. ucontrol->value.integer.value[5],
  2879. ucontrol->value.integer.value[6],
  2880. ucontrol->value.integer.value[7]);
  2881. return 0;
  2882. }
  2883. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2884. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2885. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2886. msm_pcm_get_channel_rule_index,
  2887. msm_pcm_put_channel_rule_index),
  2888. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2889. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2890. msm_pcm_get_channel_rule_index,
  2891. msm_pcm_put_channel_rule_index),
  2892. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2893. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2894. msm_pcm_get_channel_rule_index,
  2895. msm_pcm_put_channel_rule_index),
  2896. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2897. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2898. msm_pcm_get_channel_rule_index,
  2899. msm_pcm_put_channel_rule_index),
  2900. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2901. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2902. msm_pcm_get_channel_rule_index,
  2903. msm_pcm_put_channel_rule_index),
  2904. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2905. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2906. msm_pcm_get_channel_rule_index,
  2907. msm_pcm_put_channel_rule_index),
  2908. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2909. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2910. msm_pcm_get_out_chs,
  2911. msm_pcm_put_out_chs),
  2912. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2913. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2914. msm_pcm_get_out_chs,
  2915. msm_pcm_put_out_chs),
  2916. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2917. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2918. msm_pcm_get_out_chs,
  2919. msm_pcm_put_out_chs),
  2920. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2921. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2922. msm_pcm_get_out_chs,
  2923. msm_pcm_put_out_chs),
  2924. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2925. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2926. msm_pcm_get_out_chs,
  2927. msm_pcm_put_out_chs),
  2928. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2929. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2930. msm_pcm_get_out_chs,
  2931. msm_pcm_put_out_chs),
  2932. {
  2933. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2935. .name = "MultiMedia1 Channel Mixer",
  2936. .info = msm_pcm_channel_mixer_info,
  2937. .get = msm_pcm_channel_mixer_get,
  2938. .put = msm_pcm_channel_mixer_put,
  2939. .private_value = (unsigned long)&(mm1_channel_mux)
  2940. },
  2941. {
  2942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2944. .name = "MultiMedia2 Channel Mixer",
  2945. .info = msm_pcm_channel_mixer_info,
  2946. .get = msm_pcm_channel_mixer_get,
  2947. .put = msm_pcm_channel_mixer_put,
  2948. .private_value = (unsigned long)&(mm2_channel_mux)
  2949. },
  2950. {
  2951. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2952. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2953. .name = "MultiMedia3 Channel Mixer",
  2954. .info = msm_pcm_channel_mixer_info,
  2955. .get = msm_pcm_channel_mixer_get,
  2956. .put = msm_pcm_channel_mixer_put,
  2957. .private_value = (unsigned long)&(mm3_channel_mux)
  2958. },
  2959. {
  2960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2961. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2962. .name = "MultiMedia4 Channel Mixer",
  2963. .info = msm_pcm_channel_mixer_info,
  2964. .get = msm_pcm_channel_mixer_get,
  2965. .put = msm_pcm_channel_mixer_put,
  2966. .private_value = (unsigned long)&(mm4_channel_mux)
  2967. },
  2968. {
  2969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2971. .name = "MultiMedia1 Output Channel1",
  2972. .info = msm_pcm_channel_weight_info,
  2973. .get = msm_pcm_channel_weight_get,
  2974. .put = msm_pcm_channel_weight_put,
  2975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2977. },
  2978. {
  2979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2981. .name = "MultiMedia1 Output Channel2",
  2982. .info = msm_pcm_channel_weight_info,
  2983. .get = msm_pcm_channel_weight_get,
  2984. .put = msm_pcm_channel_weight_put,
  2985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2987. },
  2988. {
  2989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2991. .name = "MultiMedia1 Output Channel3",
  2992. .info = msm_pcm_channel_weight_info,
  2993. .get = msm_pcm_channel_weight_get,
  2994. .put = msm_pcm_channel_weight_put,
  2995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2997. },
  2998. {
  2999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3001. .name = "MultiMedia1 Output Channel4",
  3002. .info = msm_pcm_channel_weight_info,
  3003. .get = msm_pcm_channel_weight_get,
  3004. .put = msm_pcm_channel_weight_put,
  3005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3007. },
  3008. {
  3009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3011. .name = "MultiMedia1 Output Channel5",
  3012. .info = msm_pcm_channel_weight_info,
  3013. .get = msm_pcm_channel_weight_get,
  3014. .put = msm_pcm_channel_weight_put,
  3015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3017. },
  3018. {
  3019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3021. .name = "MultiMedia1 Output Channel6",
  3022. .info = msm_pcm_channel_weight_info,
  3023. .get = msm_pcm_channel_weight_get,
  3024. .put = msm_pcm_channel_weight_put,
  3025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3027. },
  3028. {
  3029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3031. .name = "MultiMedia1 Output Channel7",
  3032. .info = msm_pcm_channel_weight_info,
  3033. .get = msm_pcm_channel_weight_get,
  3034. .put = msm_pcm_channel_weight_put,
  3035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3037. },
  3038. {
  3039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3041. .name = "MultiMedia1 Output Channel8",
  3042. .info = msm_pcm_channel_weight_info,
  3043. .get = msm_pcm_channel_weight_get,
  3044. .put = msm_pcm_channel_weight_put,
  3045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3047. },
  3048. {
  3049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3051. .name = "MultiMedia2 Output Channel1",
  3052. .info = msm_pcm_channel_weight_info,
  3053. .get = msm_pcm_channel_weight_get,
  3054. .put = msm_pcm_channel_weight_put,
  3055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3056. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3057. },
  3058. {
  3059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3061. .name = "MultiMedia2 Output Channel2",
  3062. .info = msm_pcm_channel_weight_info,
  3063. .get = msm_pcm_channel_weight_get,
  3064. .put = msm_pcm_channel_weight_put,
  3065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3066. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3067. },
  3068. {
  3069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3071. .name = "MultiMedia2 Output Channel3",
  3072. .info = msm_pcm_channel_weight_info,
  3073. .get = msm_pcm_channel_weight_get,
  3074. .put = msm_pcm_channel_weight_put,
  3075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3076. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3077. },
  3078. {
  3079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3081. .name = "MultiMedia3 Output Channel1",
  3082. .info = msm_pcm_channel_weight_info,
  3083. .get = msm_pcm_channel_weight_get,
  3084. .put = msm_pcm_channel_weight_put,
  3085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3086. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3087. },
  3088. {
  3089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3091. .name = "MultiMedia3 Output Channel2",
  3092. .info = msm_pcm_channel_weight_info,
  3093. .get = msm_pcm_channel_weight_get,
  3094. .put = msm_pcm_channel_weight_put,
  3095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3096. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3097. },
  3098. {
  3099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3101. .name = "MultiMedia1 Channel1",
  3102. .info = msm_pcm_channel_input_be_info,
  3103. .get = msm_pcm_channel_input_be_get,
  3104. .put = msm_pcm_channel_input_be_put,
  3105. .private_value = (unsigned long)&(mm1_ch1_enum)
  3106. },
  3107. {
  3108. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3109. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3110. .name = "MultiMedia1 Channel2",
  3111. .info = msm_pcm_channel_input_be_info,
  3112. .get = msm_pcm_channel_input_be_get,
  3113. .put = msm_pcm_channel_input_be_put,
  3114. .private_value = (unsigned long)&(mm1_ch2_enum)
  3115. },
  3116. {
  3117. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3119. .name = "MultiMedia1 Channel3",
  3120. .info = msm_pcm_channel_input_be_info,
  3121. .get = msm_pcm_channel_input_be_get,
  3122. .put = msm_pcm_channel_input_be_put,
  3123. .private_value = (unsigned long)&(mm1_ch3_enum)
  3124. },
  3125. {
  3126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3128. .name = "MultiMedia1 Channel4",
  3129. .info = msm_pcm_channel_input_be_info,
  3130. .get = msm_pcm_channel_input_be_get,
  3131. .put = msm_pcm_channel_input_be_put,
  3132. .private_value = (unsigned long)&(mm1_ch4_enum)
  3133. },
  3134. {
  3135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3137. .name = "MultiMedia1 Channel5",
  3138. .info = msm_pcm_channel_input_be_info,
  3139. .get = msm_pcm_channel_input_be_get,
  3140. .put = msm_pcm_channel_input_be_put,
  3141. .private_value = (unsigned long)&(mm1_ch5_enum)
  3142. },
  3143. {
  3144. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3145. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3146. .name = "MultiMedia1 Channel6",
  3147. .info = msm_pcm_channel_input_be_info,
  3148. .get = msm_pcm_channel_input_be_get,
  3149. .put = msm_pcm_channel_input_be_put,
  3150. .private_value = (unsigned long)&(mm1_ch6_enum)
  3151. },
  3152. {
  3153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3155. .name = "MultiMedia1 Channel7",
  3156. .info = msm_pcm_channel_input_be_info,
  3157. .get = msm_pcm_channel_input_be_get,
  3158. .put = msm_pcm_channel_input_be_put,
  3159. .private_value = (unsigned long)&(mm1_ch7_enum)
  3160. },
  3161. {
  3162. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3163. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3164. .name = "MultiMedia1 Channel8",
  3165. .info = msm_pcm_channel_input_be_info,
  3166. .get = msm_pcm_channel_input_be_get,
  3167. .put = msm_pcm_channel_input_be_put,
  3168. .private_value = (unsigned long)&(mm1_ch8_enum)
  3169. },
  3170. };
  3171. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3172. struct snd_ctl_elem_value *ucontrol)
  3173. {
  3174. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3175. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3176. ucontrol->value.integer.value[0]);
  3177. return 0;
  3178. }
  3179. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3180. struct snd_ctl_elem_value *ucontrol)
  3181. {
  3182. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3183. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3184. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3185. return 0;
  3186. }
  3187. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3188. "Four", "Five", "Six", "Seven", "Eight"};
  3189. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3190. struct snd_ctl_elem_value *ucontrol)
  3191. {
  3192. switch (msm_ec_ref_bit_format) {
  3193. case SNDRV_PCM_FORMAT_S24_LE:
  3194. ucontrol->value.integer.value[0] = 2;
  3195. break;
  3196. case SNDRV_PCM_FORMAT_S16_LE:
  3197. ucontrol->value.integer.value[0] = 1;
  3198. break;
  3199. default:
  3200. ucontrol->value.integer.value[0] = 0;
  3201. break;
  3202. }
  3203. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3204. __func__, ucontrol->value.integer.value[0]);
  3205. return 0;
  3206. }
  3207. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. u16 bit_width = 0;
  3211. switch (ucontrol->value.integer.value[0]) {
  3212. case 2:
  3213. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3214. break;
  3215. case 1:
  3216. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3217. break;
  3218. default:
  3219. msm_ec_ref_bit_format = 0;
  3220. break;
  3221. }
  3222. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3223. bit_width = 16;
  3224. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3225. bit_width = 24;
  3226. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3227. __func__, msm_ec_ref_bit_format);
  3228. adm_ec_ref_rx_bit_width(bit_width);
  3229. return 0;
  3230. }
  3231. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3232. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3233. struct snd_ctl_elem_value *ucontrol)
  3234. {
  3235. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3236. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3237. __func__, ucontrol->value.integer.value[0]);
  3238. return 0;
  3239. }
  3240. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. switch (ucontrol->value.integer.value[0]) {
  3244. case 0:
  3245. msm_ec_ref_sampling_rate = 0;
  3246. break;
  3247. case 1:
  3248. msm_ec_ref_sampling_rate = 8000;
  3249. break;
  3250. case 2:
  3251. msm_ec_ref_sampling_rate = 16000;
  3252. break;
  3253. case 3:
  3254. msm_ec_ref_sampling_rate = 32000;
  3255. break;
  3256. case 4:
  3257. msm_ec_ref_sampling_rate = 44100;
  3258. break;
  3259. case 5:
  3260. msm_ec_ref_sampling_rate = 48000;
  3261. break;
  3262. case 6:
  3263. msm_ec_ref_sampling_rate = 96000;
  3264. break;
  3265. case 7:
  3266. msm_ec_ref_sampling_rate = 192000;
  3267. break;
  3268. case 8:
  3269. msm_ec_ref_sampling_rate = 384000;
  3270. break;
  3271. default:
  3272. msm_ec_ref_sampling_rate = 48000;
  3273. break;
  3274. }
  3275. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3276. __func__, msm_ec_ref_sampling_rate);
  3277. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3278. return 0;
  3279. }
  3280. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3281. "32000", "44100", "48000", "96000", "192000", "384000"};
  3282. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3283. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3284. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3285. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3286. };
  3287. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3288. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3289. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3290. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3291. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3292. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3293. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3294. };
  3295. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3296. struct snd_ctl_elem_value *ucontrol)
  3297. {
  3298. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3299. mutex_lock(&routing_lock);
  3300. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3301. mutex_unlock(&routing_lock);
  3302. return 0;
  3303. }
  3304. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3305. struct snd_ctl_elem_value *ucontrol)
  3306. {
  3307. int ec_ref_port_id;
  3308. struct snd_soc_dapm_widget *widget =
  3309. snd_soc_dapm_kcontrol_widget(kcontrol);
  3310. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3311. struct snd_soc_dapm_update *update = NULL;
  3312. mutex_lock(&routing_lock);
  3313. switch (ucontrol->value.integer.value[0]) {
  3314. case 0:
  3315. msm_route_ec_ref_rx = 0;
  3316. ec_ref_port_id = AFE_PORT_INVALID;
  3317. break;
  3318. case 1:
  3319. msm_route_ec_ref_rx = 1;
  3320. ec_ref_port_id = SLIMBUS_0_RX;
  3321. break;
  3322. case 2:
  3323. msm_route_ec_ref_rx = 2;
  3324. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3325. break;
  3326. case 3:
  3327. msm_route_ec_ref_rx = 3;
  3328. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3329. break;
  3330. case 4:
  3331. msm_route_ec_ref_rx = 4;
  3332. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3333. break;
  3334. case 5:
  3335. msm_route_ec_ref_rx = 5;
  3336. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3337. break;
  3338. case 6:
  3339. msm_route_ec_ref_rx = 6;
  3340. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3341. break;
  3342. case 7:
  3343. msm_route_ec_ref_rx = 7;
  3344. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3345. break;
  3346. case 9:
  3347. msm_route_ec_ref_rx = 9;
  3348. ec_ref_port_id = SLIMBUS_5_RX;
  3349. break;
  3350. case 10:
  3351. msm_route_ec_ref_rx = 10;
  3352. ec_ref_port_id = SLIMBUS_1_TX;
  3353. break;
  3354. case 11:
  3355. msm_route_ec_ref_rx = 11;
  3356. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3357. break;
  3358. case 12:
  3359. msm_route_ec_ref_rx = 12;
  3360. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3361. break;
  3362. case 13:
  3363. msm_route_ec_ref_rx = 13;
  3364. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3365. break;
  3366. case 14:
  3367. msm_route_ec_ref_rx = 14;
  3368. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3369. break;
  3370. case 15:
  3371. msm_route_ec_ref_rx = 15;
  3372. ec_ref_port_id = SLIMBUS_6_RX;
  3373. break;
  3374. case 16:
  3375. msm_route_ec_ref_rx = 16;
  3376. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3377. break;
  3378. case 17:
  3379. msm_route_ec_ref_rx = 17;
  3380. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3381. break;
  3382. case 18:
  3383. msm_route_ec_ref_rx = 18;
  3384. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3385. break;
  3386. case 19:
  3387. msm_route_ec_ref_rx = 19;
  3388. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3389. break;
  3390. case 20:
  3391. msm_route_ec_ref_rx = 20;
  3392. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3393. break;
  3394. case 21:
  3395. msm_route_ec_ref_rx = 21;
  3396. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3397. break;
  3398. case 22:
  3399. msm_route_ec_ref_rx = 22;
  3400. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3401. break;
  3402. case 23:
  3403. msm_route_ec_ref_rx = 23;
  3404. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3405. break;
  3406. case 24:
  3407. msm_route_ec_ref_rx = 24;
  3408. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3409. break;
  3410. case 25:
  3411. msm_route_ec_ref_rx = 25;
  3412. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3413. break;
  3414. case 26:
  3415. msm_route_ec_ref_rx = 26;
  3416. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3417. break;
  3418. case 27:
  3419. msm_route_ec_ref_rx = 27;
  3420. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3421. break;
  3422. case 28:
  3423. msm_route_ec_ref_rx = 28;
  3424. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3425. break;
  3426. default:
  3427. msm_route_ec_ref_rx = 0; /* NONE */
  3428. pr_err("%s EC ref rx %ld not valid\n",
  3429. __func__, ucontrol->value.integer.value[0]);
  3430. ec_ref_port_id = AFE_PORT_INVALID;
  3431. break;
  3432. }
  3433. adm_ec_ref_rx_id(ec_ref_port_id);
  3434. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3435. __func__, msm_route_ec_ref_rx);
  3436. mutex_unlock(&routing_lock);
  3437. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3438. msm_route_ec_ref_rx, e, update);
  3439. return 0;
  3440. }
  3441. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3442. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3443. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3444. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3445. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3446. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3447. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3448. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3449. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2"
  3450. };
  3451. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3452. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3453. };
  3454. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3455. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3456. msm_route_ec_ref_rx_enum[0],
  3457. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3458. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3459. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3460. msm_route_ec_ref_rx_enum[0],
  3461. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3462. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3463. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3464. msm_route_ec_ref_rx_enum[0],
  3465. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3466. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3467. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3468. msm_route_ec_ref_rx_enum[0],
  3469. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3470. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3471. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3472. msm_route_ec_ref_rx_enum[0],
  3473. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3474. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3475. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3476. msm_route_ec_ref_rx_enum[0],
  3477. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3478. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3479. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3480. msm_route_ec_ref_rx_enum[0],
  3481. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3482. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3483. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3484. msm_route_ec_ref_rx_enum[0],
  3485. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3486. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3487. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3488. msm_route_ec_ref_rx_enum[0],
  3489. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3490. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3491. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3492. msm_route_ec_ref_rx_enum[0],
  3493. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3494. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3495. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3496. msm_route_ec_ref_rx_enum[0],
  3497. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3498. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3499. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3500. msm_route_ec_ref_rx_enum[0],
  3501. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3502. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3503. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3504. msm_route_ec_ref_rx_enum[0],
  3505. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3506. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3507. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3508. msm_route_ec_ref_rx_enum[0],
  3509. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3510. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3511. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3512. msm_route_ec_ref_rx_enum[0],
  3513. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3514. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3515. struct snd_ctl_elem_value *ucontrol)
  3516. {
  3517. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3518. mutex_lock(&routing_lock);
  3519. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3520. mutex_unlock(&routing_lock);
  3521. return 0;
  3522. }
  3523. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3524. struct snd_ctl_elem_value *ucontrol)
  3525. {
  3526. struct snd_soc_dapm_widget *widget =
  3527. snd_soc_dapm_kcontrol_widget(kcontrol);
  3528. int mux = ucontrol->value.enumerated.item[0];
  3529. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3530. int ret = 1;
  3531. bool state = true;
  3532. uint16_t ext_ec_ref_port_id;
  3533. struct snd_soc_dapm_update *update = NULL;
  3534. if (mux >= e->items) {
  3535. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3536. return -EINVAL;
  3537. }
  3538. mutex_lock(&routing_lock);
  3539. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3540. switch (msm_route_ext_ec_ref) {
  3541. case EXT_EC_REF_PRI_MI2S_TX:
  3542. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3543. break;
  3544. case EXT_EC_REF_SEC_MI2S_TX:
  3545. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3546. break;
  3547. case EXT_EC_REF_TERT_MI2S_TX:
  3548. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3549. break;
  3550. case EXT_EC_REF_QUAT_MI2S_TX:
  3551. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3552. break;
  3553. case EXT_EC_REF_QUIN_MI2S_TX:
  3554. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3555. break;
  3556. case EXT_EC_REF_SLIM_1_TX:
  3557. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3558. break;
  3559. case EXT_EC_REF_NONE:
  3560. default:
  3561. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3562. state = false;
  3563. break;
  3564. }
  3565. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3566. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3567. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3568. mutex_unlock(&routing_lock);
  3569. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3570. update);
  3571. } else {
  3572. ret = -EINVAL;
  3573. mutex_unlock(&routing_lock);
  3574. }
  3575. return ret;
  3576. }
  3577. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3578. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3579. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3580. "SLIM_1_TX"};
  3581. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3582. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3583. };
  3584. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3585. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3586. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3587. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3589. MSM_BACKEND_DAI_PRI_I2S_RX,
  3590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3591. msm_routing_put_audio_mixer),
  3592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3593. MSM_BACKEND_DAI_PRI_I2S_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3597. MSM_BACKEND_DAI_PRI_I2S_RX,
  3598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3599. msm_routing_put_audio_mixer),
  3600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3601. MSM_BACKEND_DAI_PRI_I2S_RX,
  3602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3603. msm_routing_put_audio_mixer),
  3604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3605. MSM_BACKEND_DAI_PRI_I2S_RX,
  3606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3607. msm_routing_put_audio_mixer),
  3608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3609. MSM_BACKEND_DAI_PRI_I2S_RX,
  3610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3611. msm_routing_put_audio_mixer),
  3612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3613. MSM_BACKEND_DAI_PRI_I2S_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3617. MSM_BACKEND_DAI_PRI_I2S_RX,
  3618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3619. msm_routing_put_audio_mixer),
  3620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3621. MSM_BACKEND_DAI_PRI_I2S_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3625. MSM_BACKEND_DAI_PRI_I2S_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3629. MSM_BACKEND_DAI_PRI_I2S_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_PRI_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_PRI_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_PRI_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_PRI_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_PRI_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_PRI_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3657. MSM_BACKEND_DAI_PRI_I2S_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3661. MSM_BACKEND_DAI_PRI_I2S_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3665. MSM_BACKEND_DAI_PRI_I2S_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3669. MSM_BACKEND_DAI_PRI_I2S_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. };
  3673. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3674. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3675. MSM_BACKEND_DAI_SEC_I2S_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3679. MSM_BACKEND_DAI_SEC_I2S_RX,
  3680. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3681. msm_routing_put_audio_mixer),
  3682. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3683. MSM_BACKEND_DAI_SEC_I2S_RX,
  3684. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3685. msm_routing_put_audio_mixer),
  3686. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3687. MSM_BACKEND_DAI_SEC_I2S_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3691. MSM_BACKEND_DAI_SEC_I2S_RX,
  3692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3693. msm_routing_put_audio_mixer),
  3694. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3695. MSM_BACKEND_DAI_SEC_I2S_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3699. MSM_BACKEND_DAI_SEC_I2S_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3703. MSM_BACKEND_DAI_SEC_I2S_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_SEC_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_SEC_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_SEC_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SEC_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SEC_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SEC_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SEC_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SEC_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SEC_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_SEC_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_SEC_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_SEC_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_SEC_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. };
  3759. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3760. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3761. MSM_BACKEND_DAI_SPDIF_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3765. MSM_BACKEND_DAI_SPDIF_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3769. MSM_BACKEND_DAI_SPDIF_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3773. MSM_BACKEND_DAI_SPDIF_RX,
  3774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3775. msm_routing_put_audio_mixer),
  3776. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3777. MSM_BACKEND_DAI_SPDIF_RX,
  3778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3779. msm_routing_put_audio_mixer),
  3780. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_SPDIF_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_SPDIF_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_SPDIF_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SPDIF_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SPDIF_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SPDIF_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SPDIF_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SPDIF_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SPDIF_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SPDIF_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SPDIF_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SPDIF_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SPDIF_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SPDIF_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SPDIF_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SPDIF_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. };
  3845. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3847. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3849. msm_routing_put_audio_mixer),
  3850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3851. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3855. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3859. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3861. msm_routing_put_audio_mixer),
  3862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3863. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. };
  3911. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3913. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3915. msm_routing_put_audio_mixer),
  3916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3917. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3921. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3923. msm_routing_put_audio_mixer),
  3924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3925. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3929. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3933. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3935. msm_routing_put_audio_mixer),
  3936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3937. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3939. msm_routing_put_audio_mixer),
  3940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3941. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. };
  3997. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3999. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4003. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4007. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4011. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4015. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4019. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4023. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. };
  4083. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4084. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4085. MSM_BACKEND_DAI_MI2S_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4089. MSM_BACKEND_DAI_MI2S_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4093. MSM_BACKEND_DAI_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4097. MSM_BACKEND_DAI_MI2S_RX,
  4098. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4099. msm_routing_put_audio_mixer),
  4100. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4101. MSM_BACKEND_DAI_MI2S_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_MI2S_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_MI2S_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. };
  4169. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. };
  4255. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4256. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. };
  4341. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4342. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4347. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. };
  4419. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. };
  4425. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4426. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. };
  4511. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4512. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4533. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4537. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4541. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. };
  4597. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4598. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. };
  4663. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4664. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4673. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4677. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4681. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4685. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. };
  4729. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4730. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_HDMI_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_HDMI_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_HDMI_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_HDMI_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4747. MSM_BACKEND_DAI_HDMI_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4751. MSM_BACKEND_DAI_HDMI_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4755. MSM_BACKEND_DAI_HDMI_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4759. MSM_BACKEND_DAI_HDMI_RX,
  4760. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4761. msm_routing_put_audio_mixer),
  4762. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_HDMI_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_HDMI_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_HDMI_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_HDMI_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_HDMI_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_HDMI_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_HDMI_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_HDMI_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_HDMI_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_HDMI_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_HDMI_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_HDMI_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_HDMI_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. };
  4815. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4816. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4837. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4841. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4845. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. };
  4881. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4882. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. };
  4947. /* incall music delivery mixer */
  4948. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. };
  4966. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. };
  4984. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. };
  5002. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5008. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. };
  5068. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5069. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5070. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5074. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5078. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5082. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5084. msm_routing_put_audio_mixer),
  5085. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5086. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5090. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5094. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5098. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. };
  5134. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5135. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5136. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5140. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5144. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5148. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5152. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5156. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5164. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. };
  5200. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5201. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5202. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5206. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5210. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5212. msm_routing_put_audio_mixer),
  5213. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5214. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5218. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5222. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5226. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5227. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5228. msm_routing_put_audio_mixer),
  5229. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5230. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5232. msm_routing_put_audio_mixer),
  5233. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5234. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. };
  5266. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5267. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5268. MSM_BACKEND_DAI_USB_RX,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5272. MSM_BACKEND_DAI_USB_RX,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5276. MSM_BACKEND_DAI_USB_RX,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5280. MSM_BACKEND_DAI_USB_RX,
  5281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5282. msm_routing_put_audio_mixer),
  5283. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5284. MSM_BACKEND_DAI_USB_RX,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_USB_RX,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_USB_RX,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_USB_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_USB_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_USB_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_USB_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_USB_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_USB_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_USB_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_USB_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_USB_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. };
  5332. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5333. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5334. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. };
  5418. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5419. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. };
  5484. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5486. MSM_BACKEND_DAI_INT_FM_RX,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5490. MSM_BACKEND_DAI_INT_FM_RX,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5494. MSM_BACKEND_DAI_INT_FM_RX,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5498. MSM_BACKEND_DAI_INT_FM_RX,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5502. MSM_BACKEND_DAI_INT_FM_RX,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_INT_FM_RX,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_INT_FM_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_INT_FM_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_INT_FM_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_INT_FM_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_INT_FM_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_FM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_FM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_FM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_FM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_FM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_FM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_INT_FM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_INT_FM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_INT_FM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_INT_FM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. };
  5570. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5571. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_AFE_PCM_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_AFE_PCM_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_AFE_PCM_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_AFE_PCM_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_AFE_PCM_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_AFE_PCM_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_AFE_PCM_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_AFE_PCM_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_AFE_PCM_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_AFE_PCM_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_AFE_PCM_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_AFE_PCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_AFE_PCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_AFE_PCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_AFE_PCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_AFE_PCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_AFE_PCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_AFE_PCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_AFE_PCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_AFE_PCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_AFE_PCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. };
  5656. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_AUXPCM_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_AUXPCM_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_AUXPCM_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_AUXPCM_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_AUXPCM_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_AUXPCM_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_AUXPCM_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_AUXPCM_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_AUXPCM_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_AUXPCM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_AUXPCM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_AUXPCM_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_AUXPCM_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_AUXPCM_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_AUXPCM_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. };
  5742. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5743. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. };
  5828. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5829. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. };
  5894. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. };
  5960. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. };
  6026. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6027. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. };
  6092. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. };
  6158. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. };
  6224. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6225. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. };
  6290. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6291. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. };
  6422. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. };
  6488. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6489. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. };
  6554. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6555. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. };
  6620. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6621. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. };
  6686. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6687. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. };
  6752. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. };
  6818. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6819. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. };
  6884. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6885. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. };
  6950. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. };
  7016. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. };
  7082. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7083. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. };
  7218. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7219. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. };
  7288. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. };
  7358. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7359. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. };
  7428. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7429. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. };
  7498. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. };
  7564. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. };
  7634. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7635. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. };
  7704. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. };
  7774. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7775. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_PRI_I2S_TX,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_MI2S_TX,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_AUXPCM_TX,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_INT_FM_TX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_AFE_PCM_TX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_USB_TX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. };
  7976. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  7977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_INT_FM_TX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_MI2S_TX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_USB_TX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. };
  8134. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_INT_FM_TX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_MI2S_TX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_AFE_PCM_TX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_AUXPCM_TX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. };
  8292. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8293. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_TX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_AFE_PCM_TX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_USB_TX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. };
  8446. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8447. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_INT_FM_TX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_MI2S_TX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_TX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AUXPCM_TX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_USB_TX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. };
  8624. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8625. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_INT_FM_TX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_AUXPCM_TX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_USB_TX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. };
  8782. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8783. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_INT_FM_TX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_AFE_PCM_TX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_USB_TX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. };
  8944. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8945. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_INT_FM_TX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_AFE_PCM_TX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_USB_TX,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_MI2S_TX,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_AUXPCM_TX,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. };
  9106. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_INT_FM_TX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_AFE_PCM_TX,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. };
  9208. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9209. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_INT_FM_TX,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_AFE_PCM_TX,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_USB_TX,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_MI2S_TX,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_AUXPCM_TX,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. };
  9334. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9335. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_INT_FM_TX,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_AFE_PCM_TX,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. };
  9396. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9397. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_INT_FM_TX,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_AFE_PCM_TX,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. };
  9458. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9459. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_INT_FM_TX,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_AFE_PCM_TX,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. };
  9520. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9521. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. };
  9642. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_INT_FM_TX,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_AFE_PCM_TX,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. };
  9704. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9705. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_INT_FM_TX,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_AFE_PCM_TX,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. };
  9766. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9767. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_PRI_I2S_RX,
  9769. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9770. msm_routing_put_voice_mixer),
  9771. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_PRI_I2S_RX,
  9773. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9774. msm_routing_put_voice_mixer),
  9775. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_PRI_I2S_RX,
  9777. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9778. msm_routing_put_voice_mixer),
  9779. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_PRI_I2S_RX,
  9781. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9782. msm_routing_put_voice_mixer),
  9783. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_PRI_I2S_RX,
  9785. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9786. msm_routing_put_voice_mixer),
  9787. };
  9788. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9789. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_SEC_I2S_RX,
  9791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9792. msm_routing_put_voice_mixer),
  9793. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_SEC_I2S_RX,
  9795. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9796. msm_routing_put_voice_mixer),
  9797. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_SEC_I2S_RX,
  9799. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9800. msm_routing_put_voice_mixer),
  9801. };
  9802. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9803. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9805. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9806. msm_routing_put_voice_mixer),
  9807. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9809. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9810. msm_routing_put_voice_mixer),
  9811. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9814. msm_routing_put_voice_mixer),
  9815. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9818. msm_routing_put_voice_mixer),
  9819. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9821. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9822. msm_routing_put_voice_mixer),
  9823. };
  9824. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9825. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9828. msm_routing_put_voice_mixer),
  9829. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9831. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9832. msm_routing_put_voice_mixer),
  9833. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9835. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9836. msm_routing_put_voice_mixer),
  9837. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9839. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9840. msm_routing_put_voice_mixer),
  9841. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9843. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9844. msm_routing_put_voice_mixer),
  9845. };
  9846. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9847. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9849. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9850. msm_routing_put_voice_mixer),
  9851. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9853. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9854. msm_routing_put_voice_mixer),
  9855. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9858. msm_routing_put_voice_mixer),
  9859. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9862. msm_routing_put_voice_mixer),
  9863. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9865. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9866. msm_routing_put_voice_mixer),
  9867. };
  9868. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9869. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_USB_RX,
  9871. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9872. msm_routing_put_voice_mixer),
  9873. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_USB_RX,
  9875. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9876. msm_routing_put_voice_mixer),
  9877. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_USB_RX,
  9879. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9880. msm_routing_put_voice_mixer),
  9881. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_USB_RX,
  9883. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9884. msm_routing_put_voice_mixer),
  9885. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_USB_RX,
  9887. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9888. msm_routing_put_voice_mixer),
  9889. };
  9890. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9891. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9893. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9894. msm_routing_put_voice_mixer),
  9895. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9897. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9898. msm_routing_put_voice_mixer),
  9899. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9902. msm_routing_put_voice_mixer),
  9903. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9905. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9906. msm_routing_put_voice_mixer),
  9907. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9909. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9910. msm_routing_put_voice_mixer),
  9911. };
  9912. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9913. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9915. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9916. msm_routing_put_voice_mixer),
  9917. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9920. msm_routing_put_voice_mixer),
  9921. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9923. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9924. msm_routing_put_voice_mixer),
  9925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9928. msm_routing_put_voice_mixer),
  9929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9932. msm_routing_put_voice_mixer),
  9933. };
  9934. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9935. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9938. msm_routing_put_voice_mixer),
  9939. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9941. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9942. msm_routing_put_voice_mixer),
  9943. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9945. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9946. msm_routing_put_voice_mixer),
  9947. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9949. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9950. msm_routing_put_voice_mixer),
  9951. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9953. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9954. msm_routing_put_voice_mixer),
  9955. };
  9956. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9957. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_MI2S_RX,
  9959. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9960. msm_routing_put_voice_mixer),
  9961. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_MI2S_RX,
  9963. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9964. msm_routing_put_voice_mixer),
  9965. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_MI2S_RX,
  9967. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9968. msm_routing_put_voice_mixer),
  9969. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_MI2S_RX,
  9971. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9972. msm_routing_put_voice_mixer),
  9973. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_MI2S_RX,
  9975. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9976. msm_routing_put_voice_mixer),
  9977. };
  9978. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  9979. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9981. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9982. msm_routing_put_voice_mixer),
  9983. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9985. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9986. msm_routing_put_voice_mixer),
  9987. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9989. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9990. msm_routing_put_voice_mixer),
  9991. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9993. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9994. msm_routing_put_voice_mixer),
  9995. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_PRI_MI2S_RX,
  9997. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9998. msm_routing_put_voice_mixer),
  9999. };
  10000. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10001. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10003. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10004. msm_routing_put_voice_mixer),
  10005. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10007. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10008. msm_routing_put_voice_mixer),
  10009. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10011. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10012. msm_routing_put_voice_mixer),
  10013. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10015. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10016. msm_routing_put_voice_mixer),
  10017. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10019. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10020. msm_routing_put_voice_mixer),
  10021. };
  10022. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10023. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10025. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10026. msm_routing_put_voice_mixer),
  10027. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10029. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10030. msm_routing_put_voice_mixer),
  10031. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10033. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10034. msm_routing_put_voice_mixer),
  10035. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10037. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10038. msm_routing_put_voice_mixer),
  10039. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10041. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10042. msm_routing_put_voice_mixer),
  10043. };
  10044. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10045. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10047. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10048. msm_routing_put_voice_mixer),
  10049. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10051. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10052. msm_routing_put_voice_mixer),
  10053. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10055. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10056. msm_routing_put_voice_mixer),
  10057. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10059. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10060. msm_routing_put_voice_mixer),
  10061. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10063. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10064. msm_routing_put_voice_mixer),
  10065. };
  10066. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10067. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10070. msm_routing_put_voice_mixer),
  10071. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10073. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10074. msm_routing_put_voice_mixer),
  10075. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10077. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10078. msm_routing_put_voice_mixer),
  10079. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10081. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10082. msm_routing_put_voice_mixer),
  10083. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10085. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10086. msm_routing_put_voice_mixer),
  10087. };
  10088. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10089. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10091. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10092. msm_routing_put_voice_mixer),
  10093. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10095. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10096. msm_routing_put_voice_mixer),
  10097. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10099. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10100. msm_routing_put_voice_mixer),
  10101. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10103. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10104. msm_routing_put_voice_mixer),
  10105. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10107. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10108. msm_routing_put_voice_mixer),
  10109. };
  10110. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10111. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_AFE_PCM_RX,
  10113. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10114. msm_routing_put_voice_mixer),
  10115. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_AFE_PCM_RX,
  10117. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10118. msm_routing_put_voice_mixer),
  10119. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_AFE_PCM_RX,
  10121. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10122. msm_routing_put_voice_mixer),
  10123. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_AFE_PCM_RX,
  10125. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10126. msm_routing_put_voice_mixer),
  10127. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_AFE_PCM_RX,
  10129. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10130. msm_routing_put_voice_mixer),
  10131. };
  10132. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10133. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_AUXPCM_RX,
  10135. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10136. msm_routing_put_voice_mixer),
  10137. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_AUXPCM_RX,
  10139. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10140. msm_routing_put_voice_mixer),
  10141. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_AUXPCM_RX,
  10143. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10144. msm_routing_put_voice_mixer),
  10145. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_AUXPCM_RX,
  10147. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10148. msm_routing_put_voice_mixer),
  10149. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_AUXPCM_RX,
  10151. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10152. msm_routing_put_voice_mixer),
  10153. };
  10154. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10155. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10157. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10158. msm_routing_put_voice_mixer),
  10159. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10161. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10162. msm_routing_put_voice_mixer),
  10163. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10165. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10166. msm_routing_put_voice_mixer),
  10167. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10169. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10170. msm_routing_put_voice_mixer),
  10171. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10173. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10174. msm_routing_put_voice_mixer),
  10175. };
  10176. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10177. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10179. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10180. msm_routing_put_voice_mixer),
  10181. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10183. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10184. msm_routing_put_voice_mixer),
  10185. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10187. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10188. msm_routing_put_voice_mixer),
  10189. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10191. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10192. msm_routing_put_voice_mixer),
  10193. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10195. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10196. msm_routing_put_voice_mixer),
  10197. };
  10198. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10199. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10202. msm_routing_put_voice_mixer),
  10203. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10205. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10206. msm_routing_put_voice_mixer),
  10207. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10210. msm_routing_put_voice_mixer),
  10211. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10213. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10214. msm_routing_put_voice_mixer),
  10215. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10217. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10218. msm_routing_put_voice_mixer),
  10219. };
  10220. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10221. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10223. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10224. msm_routing_put_voice_mixer),
  10225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10228. msm_routing_put_voice_mixer),
  10229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10232. msm_routing_put_voice_mixer),
  10233. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10235. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10236. msm_routing_put_voice_mixer),
  10237. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10239. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10240. msm_routing_put_voice_mixer),
  10241. };
  10242. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10243. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_HDMI_RX,
  10245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10246. msm_routing_put_voice_mixer),
  10247. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_HDMI_RX,
  10249. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10250. msm_routing_put_voice_mixer),
  10251. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_HDMI_RX,
  10253. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10254. msm_routing_put_voice_mixer),
  10255. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_HDMI_RX,
  10257. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10258. msm_routing_put_voice_mixer),
  10259. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_HDMI_RX,
  10261. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10262. msm_routing_put_voice_mixer),
  10263. };
  10264. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10265. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10267. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10268. msm_routing_put_voice_mixer),
  10269. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10271. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10272. msm_routing_put_voice_mixer),
  10273. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10275. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10276. msm_routing_put_voice_mixer),
  10277. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10279. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10280. msm_routing_put_voice_mixer),
  10281. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10283. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10284. msm_routing_put_voice_mixer),
  10285. };
  10286. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10287. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10289. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10290. msm_routing_put_voice_mixer),
  10291. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10293. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10294. msm_routing_put_voice_mixer),
  10295. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10297. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10298. msm_routing_put_voice_mixer),
  10299. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10301. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10302. msm_routing_put_voice_mixer),
  10303. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10305. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10306. msm_routing_put_voice_mixer),
  10307. };
  10308. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10309. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10311. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10312. msm_routing_put_voice_mixer),
  10313. };
  10314. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10318. msm_routing_put_voice_mixer),
  10319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10322. msm_routing_put_voice_mixer),
  10323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10326. msm_routing_put_voice_mixer),
  10327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10330. msm_routing_put_voice_mixer),
  10331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10334. msm_routing_put_voice_mixer),
  10335. };
  10336. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10340. msm_routing_put_voice_mixer),
  10341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10344. msm_routing_put_voice_mixer),
  10345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10348. msm_routing_put_voice_mixer),
  10349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10352. msm_routing_put_voice_mixer),
  10353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10356. msm_routing_put_voice_mixer),
  10357. };
  10358. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10359. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_EXTPROC_RX,
  10361. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10362. msm_routing_put_voice_mixer),
  10363. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_EXTPROC_RX,
  10365. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10366. msm_routing_put_voice_mixer),
  10367. };
  10368. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10372. msm_routing_put_voice_mixer),
  10373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10376. msm_routing_put_voice_mixer),
  10377. };
  10378. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10379. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10381. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10382. msm_routing_put_voice_mixer),
  10383. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10385. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10386. msm_routing_put_voice_mixer),
  10387. };
  10388. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10389. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_PRI_I2S_TX,
  10391. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10392. msm_routing_put_voice_mixer),
  10393. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_MI2S_TX,
  10395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10396. msm_routing_put_voice_mixer),
  10397. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10399. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10400. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10402. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10403. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10405. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10406. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10407. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10408. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10409. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10411. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10412. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10414. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10415. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10417. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10418. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10419. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10420. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10421. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10423. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10424. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10426. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10427. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10429. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10430. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10432. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10433. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10435. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10436. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_USB_TX,
  10438. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10439. msm_routing_put_voice_mixer),
  10440. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10442. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10445. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10448. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10449. };
  10450. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10451. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_PRI_I2S_TX,
  10453. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10454. msm_routing_put_voice_mixer),
  10455. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_MI2S_TX,
  10457. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10458. msm_routing_put_voice_mixer),
  10459. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10461. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10462. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10464. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10465. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10467. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10468. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10470. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10471. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10473. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10474. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10476. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10477. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10479. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10480. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10482. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10483. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10485. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10486. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10488. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10489. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10491. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10492. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10494. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10495. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10497. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10498. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10503. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10504. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10506. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10507. };
  10508. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10509. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_PRI_I2S_TX,
  10511. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10512. msm_routing_put_voice_mixer),
  10513. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_MI2S_TX,
  10515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10516. msm_routing_put_voice_mixer),
  10517. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10519. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10520. msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10523. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10524. msm_routing_put_voice_mixer),
  10525. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_AFE_PCM_TX,
  10527. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10528. msm_routing_put_voice_mixer),
  10529. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_AUXPCM_TX,
  10531. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10532. msm_routing_put_voice_mixer),
  10533. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10535. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10536. msm_routing_put_voice_mixer),
  10537. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10539. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10540. msm_routing_put_voice_mixer),
  10541. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10543. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10544. msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10555. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10556. msm_routing_put_voice_mixer),
  10557. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10560. msm_routing_put_voice_mixer),
  10561. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10564. msm_routing_put_voice_mixer),
  10565. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10567. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10568. msm_routing_put_voice_mixer),
  10569. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_USB_TX,
  10571. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10572. msm_routing_put_voice_mixer),
  10573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10575. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10576. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10578. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10581. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_EXTPROC_TX,
  10583. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10584. msm_routing_put_voice_stub_mixer),
  10585. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10587. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10588. msm_routing_put_voice_stub_mixer),
  10589. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10591. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10592. msm_routing_put_voice_stub_mixer),
  10593. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10595. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10596. msm_routing_put_voice_stub_mixer),
  10597. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_MI2S_TX,
  10599. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10600. msm_routing_put_voice_stub_mixer),
  10601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10603. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10604. msm_routing_put_voice_stub_mixer),
  10605. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10607. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10608. msm_routing_put_voice_stub_mixer),
  10609. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10611. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10612. msm_routing_put_voice_stub_mixer),
  10613. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10615. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10616. msm_routing_put_voice_stub_mixer),
  10617. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_AUXPCM_TX,
  10619. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10620. msm_routing_put_voice_stub_mixer),
  10621. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10623. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10624. msm_routing_put_voice_stub_mixer),
  10625. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10627. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10628. msm_routing_put_voice_stub_mixer),
  10629. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10631. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10632. msm_routing_put_voice_stub_mixer),
  10633. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10635. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10636. msm_routing_put_voice_stub_mixer),
  10637. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10639. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10640. msm_routing_put_voice_stub_mixer),
  10641. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10643. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10644. msm_routing_put_voice_stub_mixer),
  10645. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_AFE_PCM_TX,
  10647. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10648. msm_routing_put_voice_stub_mixer),
  10649. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10651. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10652. msm_routing_put_voice_stub_mixer),
  10653. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10655. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10656. msm_routing_put_voice_stub_mixer),
  10657. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10659. 1, 0, msm_routing_get_voice_stub_mixer,
  10660. msm_routing_put_voice_stub_mixer),
  10661. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10663. 1, 0, msm_routing_get_voice_stub_mixer,
  10664. msm_routing_put_voice_stub_mixer),
  10665. };
  10666. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10667. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_EXTPROC_TX,
  10669. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10670. msm_routing_put_voice_stub_mixer),
  10671. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10673. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10674. msm_routing_put_voice_stub_mixer),
  10675. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10677. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10678. msm_routing_put_voice_stub_mixer),
  10679. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_AUXPCM_TX,
  10681. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10682. msm_routing_put_voice_stub_mixer),
  10683. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10685. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10686. msm_routing_put_voice_stub_mixer),
  10687. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10689. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10690. msm_routing_put_voice_stub_mixer),
  10691. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10693. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10694. msm_routing_put_voice_stub_mixer),
  10695. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10697. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10698. msm_routing_put_voice_stub_mixer),
  10699. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10701. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10702. msm_routing_put_voice_stub_mixer),
  10703. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10705. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10706. msm_routing_put_voice_stub_mixer),
  10707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_AFE_PCM_TX,
  10709. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10710. msm_routing_put_voice_stub_mixer),
  10711. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10713. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10714. msm_routing_put_voice_stub_mixer),
  10715. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10717. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10718. msm_routing_put_voice_stub_mixer),
  10719. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10721. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10722. msm_routing_put_voice_stub_mixer),
  10723. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10725. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10726. msm_routing_put_voice_stub_mixer),
  10727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10729. 1, 0, msm_routing_get_voice_stub_mixer,
  10730. msm_routing_put_voice_stub_mixer),
  10731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10733. 1, 0, msm_routing_get_voice_stub_mixer,
  10734. msm_routing_put_voice_stub_mixer),
  10735. };
  10736. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10737. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_EXTPROC_TX,
  10739. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10740. msm_routing_put_voice_stub_mixer),
  10741. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10743. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10744. msm_routing_put_voice_stub_mixer),
  10745. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10747. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10748. msm_routing_put_voice_stub_mixer),
  10749. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_AUXPCM_TX,
  10751. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10752. msm_routing_put_voice_stub_mixer),
  10753. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10755. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10756. msm_routing_put_voice_stub_mixer),
  10757. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10759. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10760. msm_routing_put_voice_stub_mixer),
  10761. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10763. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10764. msm_routing_put_voice_stub_mixer),
  10765. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10767. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10768. msm_routing_put_voice_stub_mixer),
  10769. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10771. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10772. msm_routing_put_voice_stub_mixer),
  10773. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10775. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10776. msm_routing_put_voice_stub_mixer),
  10777. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_AFE_PCM_TX,
  10779. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10780. msm_routing_put_voice_stub_mixer),
  10781. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10783. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10784. msm_routing_put_voice_stub_mixer),
  10785. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10788. msm_routing_put_voice_stub_mixer),
  10789. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10791. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10792. msm_routing_put_voice_stub_mixer),
  10793. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10796. msm_routing_put_voice_stub_mixer),
  10797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10799. 1, 0, msm_routing_get_voice_stub_mixer,
  10800. msm_routing_put_voice_stub_mixer),
  10801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10803. 1, 0, msm_routing_get_voice_stub_mixer,
  10804. msm_routing_put_voice_stub_mixer),
  10805. };
  10806. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10807. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_PRI_I2S_TX,
  10809. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10810. msm_routing_put_voice_mixer),
  10811. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10814. msm_routing_put_voice_mixer),
  10815. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10817. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10818. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10819. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_AFE_PCM_TX,
  10821. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10822. msm_routing_put_voice_mixer),
  10823. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_AUXPCM_TX,
  10825. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10826. msm_routing_put_voice_mixer),
  10827. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10829. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10830. msm_routing_put_voice_mixer),
  10831. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10834. msm_routing_put_voice_mixer),
  10835. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10837. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10838. msm_routing_put_voice_mixer),
  10839. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10841. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10842. msm_routing_put_voice_mixer),
  10843. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_MI2S_TX,
  10845. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10846. msm_routing_put_voice_mixer),
  10847. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10850. msm_routing_put_voice_mixer),
  10851. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10854. msm_routing_put_voice_mixer),
  10855. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10858. msm_routing_put_voice_mixer),
  10859. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10862. msm_routing_put_voice_mixer),
  10863. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10866. msm_routing_put_voice_mixer),
  10867. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_USB_TX,
  10869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10870. msm_routing_put_voice_mixer),
  10871. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10873. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10876. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10877. };
  10878. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10879. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10881. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10882. msm_routing_put_port_mixer),
  10883. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10885. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10886. msm_routing_put_port_mixer),
  10887. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10889. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10890. msm_routing_put_port_mixer),
  10891. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10893. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10894. msm_routing_put_port_mixer),
  10895. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10897. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10898. msm_routing_put_port_mixer),
  10899. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10901. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10902. msm_routing_put_port_mixer),
  10903. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10905. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10906. msm_routing_put_port_mixer),
  10907. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10909. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10910. msm_routing_put_port_mixer),
  10911. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10913. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10914. msm_routing_put_port_mixer),
  10915. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10917. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10918. msm_routing_put_port_mixer),
  10919. };
  10920. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10921. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10923. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10924. msm_routing_put_port_mixer),
  10925. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10927. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10928. msm_routing_put_port_mixer),
  10929. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10932. msm_routing_put_port_mixer),
  10933. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10936. msm_routing_put_port_mixer),
  10937. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10939. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10940. msm_routing_put_port_mixer),
  10941. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10943. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10944. msm_routing_put_port_mixer),
  10945. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10947. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10948. msm_routing_put_port_mixer),
  10949. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10951. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10952. msm_routing_put_port_mixer),
  10953. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10955. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10956. msm_routing_put_port_mixer),
  10957. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10959. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10960. msm_routing_put_port_mixer),
  10961. };
  10962. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10963. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10965. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10966. msm_routing_put_port_mixer),
  10967. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10969. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10970. msm_routing_put_port_mixer),
  10971. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10973. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  10974. msm_routing_put_port_mixer),
  10975. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10977. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10978. msm_routing_put_port_mixer),
  10979. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10981. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10982. msm_routing_put_port_mixer),
  10983. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10985. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10986. msm_routing_put_port_mixer),
  10987. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10989. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10990. msm_routing_put_port_mixer),
  10991. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10993. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10994. msm_routing_put_port_mixer),
  10995. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10997. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  10998. msm_routing_put_port_mixer),
  10999. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11001. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11002. msm_routing_put_port_mixer),
  11003. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11005. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11006. msm_routing_put_port_mixer),
  11007. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11009. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11010. msm_routing_put_port_mixer),
  11011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11014. msm_routing_put_port_mixer),
  11015. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11017. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11018. msm_routing_put_port_mixer),
  11019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11022. msm_routing_put_port_mixer),
  11023. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11025. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11026. msm_routing_put_port_mixer),
  11027. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11029. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11030. msm_routing_put_port_mixer),
  11031. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11033. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11034. msm_routing_put_port_mixer),
  11035. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11037. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11038. msm_routing_put_port_mixer),
  11039. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11041. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11042. msm_routing_put_port_mixer),
  11043. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11045. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11046. msm_routing_put_port_mixer),
  11047. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11049. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11050. msm_routing_put_port_mixer),
  11051. };
  11052. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11053. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_AUXPCM_RX,
  11055. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11056. msm_routing_put_port_mixer),
  11057. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_AUXPCM_RX,
  11059. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11060. msm_routing_put_port_mixer),
  11061. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_AUXPCM_RX,
  11063. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11064. msm_routing_put_port_mixer),
  11065. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_AUXPCM_RX,
  11067. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11068. msm_routing_put_port_mixer),
  11069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_AUXPCM_RX,
  11071. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11072. msm_routing_put_port_mixer),
  11073. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_AUXPCM_RX,
  11075. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11076. msm_routing_put_port_mixer),
  11077. };
  11078. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11079. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11081. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11082. msm_routing_put_port_mixer),
  11083. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11085. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11086. msm_routing_put_port_mixer),
  11087. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11089. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11090. msm_routing_put_port_mixer),
  11091. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11093. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11094. msm_routing_put_port_mixer),
  11095. };
  11096. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11097. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11099. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11100. msm_routing_put_port_mixer),
  11101. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11103. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11104. msm_routing_put_port_mixer),
  11105. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11107. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11108. msm_routing_put_port_mixer),
  11109. };
  11110. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11111. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11113. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11114. msm_routing_put_port_mixer),
  11115. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11117. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11118. msm_routing_put_port_mixer),
  11119. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11121. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11122. msm_routing_put_port_mixer),
  11123. };
  11124. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11125. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11127. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11128. msm_routing_put_port_mixer),
  11129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11131. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11132. msm_routing_put_port_mixer),
  11133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. };
  11138. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11141. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11142. msm_routing_put_port_mixer),
  11143. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11145. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11146. msm_routing_put_port_mixer),
  11147. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11149. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11153. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11154. msm_routing_put_port_mixer),
  11155. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11157. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11158. msm_routing_put_port_mixer),
  11159. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11161. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11162. msm_routing_put_port_mixer),
  11163. };
  11164. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11165. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11167. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11168. msm_routing_put_port_mixer),
  11169. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11171. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11172. msm_routing_put_port_mixer),
  11173. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11175. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11176. msm_routing_put_port_mixer),
  11177. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11179. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11180. msm_routing_put_port_mixer),
  11181. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11183. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11184. msm_routing_put_port_mixer),
  11185. };
  11186. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11189. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11190. msm_routing_put_port_mixer),
  11191. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11193. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11194. msm_routing_put_port_mixer),
  11195. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11197. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11198. msm_routing_put_port_mixer),
  11199. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11201. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11202. msm_routing_put_port_mixer),
  11203. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11205. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11206. msm_routing_put_port_mixer),
  11207. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11209. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11210. msm_routing_put_port_mixer),
  11211. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11213. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11214. msm_routing_put_port_mixer),
  11215. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11217. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11218. msm_routing_put_port_mixer),
  11219. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11221. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11222. msm_routing_put_port_mixer),
  11223. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11225. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11226. msm_routing_put_port_mixer),
  11227. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11229. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11230. msm_routing_put_port_mixer),
  11231. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11233. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11234. msm_routing_put_port_mixer),
  11235. };
  11236. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11237. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11239. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11240. msm_routing_put_port_mixer),
  11241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11243. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11244. msm_routing_put_port_mixer),
  11245. };
  11246. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11247. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_AFE_PCM_RX,
  11249. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11250. msm_routing_put_port_mixer),
  11251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_AFE_PCM_RX,
  11253. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11254. msm_routing_put_port_mixer),
  11255. };
  11256. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11257. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_HDMI_RX,
  11259. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11260. msm_routing_put_port_mixer),
  11261. };
  11262. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11263. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11265. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11266. msm_routing_put_port_mixer),
  11267. };
  11268. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11269. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11271. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11272. msm_routing_put_port_mixer),
  11273. };
  11274. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11275. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SEC_I2S_RX,
  11277. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11278. msm_routing_put_port_mixer),
  11279. };
  11280. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11281. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_MI2S_RX,
  11283. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11284. msm_routing_put_port_mixer),
  11285. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_MI2S_RX,
  11287. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11288. msm_routing_put_port_mixer),
  11289. };
  11290. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11291. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11293. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11294. msm_routing_put_port_mixer),
  11295. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11297. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11298. msm_routing_put_port_mixer),
  11299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11302. msm_routing_put_port_mixer),
  11303. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11305. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11306. msm_routing_put_port_mixer),
  11307. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11309. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11310. msm_routing_put_port_mixer),
  11311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11313. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11314. msm_routing_put_port_mixer),
  11315. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11317. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11318. msm_routing_put_port_mixer),
  11319. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11321. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11322. msm_routing_put_port_mixer),
  11323. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11325. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11326. msm_routing_put_port_mixer),
  11327. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11329. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. };
  11332. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11333. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_USB_RX,
  11335. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11336. msm_routing_put_port_mixer),
  11337. };
  11338. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11339. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11341. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11342. msm_routing_put_port_mixer),
  11343. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11345. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11346. msm_routing_put_port_mixer),
  11347. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11349. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11353. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11354. msm_routing_put_port_mixer),
  11355. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11357. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11358. msm_routing_put_port_mixer),
  11359. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11361. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11362. msm_routing_put_port_mixer),
  11363. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11365. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11366. msm_routing_put_port_mixer),
  11367. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11369. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11370. msm_routing_put_port_mixer),
  11371. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11373. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11374. msm_routing_put_port_mixer),
  11375. };
  11376. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11377. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11379. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11380. msm_routing_put_port_mixer),
  11381. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11384. msm_routing_put_port_mixer),
  11385. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11387. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11388. msm_routing_put_port_mixer),
  11389. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11392. msm_routing_put_port_mixer),
  11393. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11395. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11396. msm_routing_put_port_mixer),
  11397. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11399. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11400. msm_routing_put_port_mixer),
  11401. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11403. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11404. msm_routing_put_port_mixer),
  11405. };
  11406. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11407. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11409. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11410. msm_routing_get_port_mixer,
  11411. msm_routing_put_port_mixer),
  11412. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11414. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11415. msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11419. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11420. msm_routing_get_port_mixer,
  11421. msm_routing_put_port_mixer),
  11422. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11424. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11425. msm_routing_get_port_mixer,
  11426. msm_routing_put_port_mixer),
  11427. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11429. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11430. msm_routing_get_port_mixer,
  11431. msm_routing_put_port_mixer),
  11432. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11434. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11435. msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11439. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11440. msm_routing_get_port_mixer,
  11441. msm_routing_put_port_mixer),
  11442. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11444. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11445. msm_routing_get_port_mixer,
  11446. msm_routing_put_port_mixer),
  11447. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11449. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11450. msm_routing_get_port_mixer,
  11451. msm_routing_put_port_mixer),
  11452. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11454. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11455. msm_routing_get_port_mixer,
  11456. msm_routing_put_port_mixer),
  11457. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11459. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11460. msm_routing_get_port_mixer,
  11461. msm_routing_put_port_mixer),
  11462. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11464. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11465. msm_routing_get_port_mixer,
  11466. msm_routing_put_port_mixer),
  11467. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11469. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11470. msm_routing_get_port_mixer,
  11471. msm_routing_put_port_mixer),
  11472. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11474. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11475. msm_routing_get_port_mixer,
  11476. msm_routing_put_port_mixer),
  11477. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11479. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11480. msm_routing_get_port_mixer,
  11481. msm_routing_put_port_mixer),
  11482. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11484. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11485. msm_routing_get_port_mixer,
  11486. msm_routing_put_port_mixer),
  11487. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11489. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11490. msm_routing_get_port_mixer,
  11491. msm_routing_put_port_mixer),
  11492. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11494. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11495. msm_routing_get_port_mixer,
  11496. msm_routing_put_port_mixer),
  11497. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11499. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11500. msm_routing_get_port_mixer,
  11501. msm_routing_put_port_mixer),
  11502. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11504. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11505. msm_routing_get_port_mixer,
  11506. msm_routing_put_port_mixer),
  11507. };
  11508. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11511. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11512. msm_routing_get_port_mixer,
  11513. msm_routing_put_port_mixer),
  11514. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11517. msm_routing_get_port_mixer,
  11518. msm_routing_put_port_mixer),
  11519. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11521. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11522. msm_routing_get_port_mixer,
  11523. msm_routing_put_port_mixer),
  11524. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11526. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11527. msm_routing_get_port_mixer,
  11528. msm_routing_put_port_mixer),
  11529. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11531. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11532. msm_routing_get_port_mixer,
  11533. msm_routing_put_port_mixer),
  11534. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11536. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11537. msm_routing_get_port_mixer,
  11538. msm_routing_put_port_mixer),
  11539. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11541. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11542. msm_routing_get_port_mixer,
  11543. msm_routing_put_port_mixer),
  11544. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11546. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11547. msm_routing_get_port_mixer,
  11548. msm_routing_put_port_mixer),
  11549. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11551. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11552. msm_routing_get_port_mixer,
  11553. msm_routing_put_port_mixer),
  11554. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11556. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11557. msm_routing_get_port_mixer,
  11558. msm_routing_put_port_mixer),
  11559. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11561. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11562. msm_routing_get_port_mixer,
  11563. msm_routing_put_port_mixer),
  11564. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11566. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11567. msm_routing_get_port_mixer,
  11568. msm_routing_put_port_mixer),
  11569. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11571. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11572. msm_routing_get_port_mixer,
  11573. msm_routing_put_port_mixer),
  11574. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11576. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11577. msm_routing_get_port_mixer,
  11578. msm_routing_put_port_mixer),
  11579. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11581. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11582. msm_routing_get_port_mixer,
  11583. msm_routing_put_port_mixer),
  11584. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11586. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11587. msm_routing_get_port_mixer,
  11588. msm_routing_put_port_mixer),
  11589. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11591. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11592. msm_routing_get_port_mixer,
  11593. msm_routing_put_port_mixer),
  11594. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11596. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11597. msm_routing_get_port_mixer,
  11598. msm_routing_put_port_mixer),
  11599. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11601. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11602. msm_routing_get_port_mixer,
  11603. msm_routing_put_port_mixer),
  11604. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11606. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11607. msm_routing_get_port_mixer,
  11608. msm_routing_put_port_mixer),
  11609. };
  11610. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11611. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11613. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11614. msm_routing_get_port_mixer,
  11615. msm_routing_put_port_mixer),
  11616. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11618. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11619. msm_routing_get_port_mixer,
  11620. msm_routing_put_port_mixer),
  11621. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11623. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11624. msm_routing_get_port_mixer,
  11625. msm_routing_put_port_mixer),
  11626. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11628. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11629. msm_routing_get_port_mixer,
  11630. msm_routing_put_port_mixer),
  11631. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11633. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11634. msm_routing_get_port_mixer,
  11635. msm_routing_put_port_mixer),
  11636. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11638. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11639. msm_routing_get_port_mixer,
  11640. msm_routing_put_port_mixer),
  11641. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11643. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11644. msm_routing_get_port_mixer,
  11645. msm_routing_put_port_mixer),
  11646. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11648. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11649. msm_routing_get_port_mixer,
  11650. msm_routing_put_port_mixer),
  11651. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11653. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11654. msm_routing_get_port_mixer,
  11655. msm_routing_put_port_mixer),
  11656. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11658. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11659. msm_routing_get_port_mixer,
  11660. msm_routing_put_port_mixer),
  11661. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11663. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11664. msm_routing_get_port_mixer,
  11665. msm_routing_put_port_mixer),
  11666. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11668. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11669. msm_routing_get_port_mixer,
  11670. msm_routing_put_port_mixer),
  11671. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11673. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11674. msm_routing_get_port_mixer,
  11675. msm_routing_put_port_mixer),
  11676. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11677. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11678. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11679. msm_routing_get_port_mixer,
  11680. msm_routing_put_port_mixer),
  11681. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11683. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11684. msm_routing_get_port_mixer,
  11685. msm_routing_put_port_mixer),
  11686. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11688. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11689. msm_routing_get_port_mixer,
  11690. msm_routing_put_port_mixer),
  11691. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11693. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11694. msm_routing_get_port_mixer,
  11695. msm_routing_put_port_mixer),
  11696. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11698. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11699. msm_routing_get_port_mixer,
  11700. msm_routing_put_port_mixer),
  11701. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11703. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11704. msm_routing_get_port_mixer,
  11705. msm_routing_put_port_mixer),
  11706. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11708. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11709. msm_routing_get_port_mixer,
  11710. msm_routing_put_port_mixer),
  11711. };
  11712. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11713. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11715. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11716. msm_routing_get_port_mixer,
  11717. msm_routing_put_port_mixer),
  11718. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11720. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11721. msm_routing_get_port_mixer,
  11722. msm_routing_put_port_mixer),
  11723. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11725. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11726. msm_routing_get_port_mixer,
  11727. msm_routing_put_port_mixer),
  11728. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11730. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11731. msm_routing_get_port_mixer,
  11732. msm_routing_put_port_mixer),
  11733. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11735. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11736. msm_routing_get_port_mixer,
  11737. msm_routing_put_port_mixer),
  11738. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11740. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11741. msm_routing_get_port_mixer,
  11742. msm_routing_put_port_mixer),
  11743. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11745. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11746. msm_routing_get_port_mixer,
  11747. msm_routing_put_port_mixer),
  11748. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11750. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11751. msm_routing_get_port_mixer,
  11752. msm_routing_put_port_mixer),
  11753. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11755. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11756. msm_routing_get_port_mixer,
  11757. msm_routing_put_port_mixer),
  11758. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11760. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11761. msm_routing_get_port_mixer,
  11762. msm_routing_put_port_mixer),
  11763. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11765. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11766. msm_routing_get_port_mixer,
  11767. msm_routing_put_port_mixer),
  11768. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11770. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11771. msm_routing_get_port_mixer,
  11772. msm_routing_put_port_mixer),
  11773. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11775. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11776. msm_routing_get_port_mixer,
  11777. msm_routing_put_port_mixer),
  11778. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11780. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11781. msm_routing_get_port_mixer,
  11782. msm_routing_put_port_mixer),
  11783. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11785. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11786. msm_routing_get_port_mixer,
  11787. msm_routing_put_port_mixer),
  11788. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11790. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11791. msm_routing_get_port_mixer,
  11792. msm_routing_put_port_mixer),
  11793. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11795. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11796. msm_routing_get_port_mixer,
  11797. msm_routing_put_port_mixer),
  11798. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11800. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11801. msm_routing_get_port_mixer,
  11802. msm_routing_put_port_mixer),
  11803. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11805. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11806. msm_routing_get_port_mixer,
  11807. msm_routing_put_port_mixer),
  11808. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11810. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11811. msm_routing_get_port_mixer,
  11812. msm_routing_put_port_mixer),
  11813. };
  11814. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11815. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11817. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11818. msm_routing_get_port_mixer,
  11819. msm_routing_put_port_mixer),
  11820. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11822. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11823. msm_routing_get_port_mixer,
  11824. msm_routing_put_port_mixer),
  11825. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11828. msm_routing_get_port_mixer,
  11829. msm_routing_put_port_mixer),
  11830. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11832. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11833. msm_routing_get_port_mixer,
  11834. msm_routing_put_port_mixer),
  11835. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11837. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11838. msm_routing_get_port_mixer,
  11839. msm_routing_put_port_mixer),
  11840. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11842. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11843. msm_routing_get_port_mixer,
  11844. msm_routing_put_port_mixer),
  11845. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11847. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11848. msm_routing_get_port_mixer,
  11849. msm_routing_put_port_mixer),
  11850. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11852. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11853. msm_routing_get_port_mixer,
  11854. msm_routing_put_port_mixer),
  11855. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11857. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11858. msm_routing_get_port_mixer,
  11859. msm_routing_put_port_mixer),
  11860. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11862. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11863. msm_routing_get_port_mixer,
  11864. msm_routing_put_port_mixer),
  11865. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11867. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11868. msm_routing_get_port_mixer,
  11869. msm_routing_put_port_mixer),
  11870. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11871. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11872. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11873. msm_routing_get_port_mixer,
  11874. msm_routing_put_port_mixer),
  11875. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11877. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11878. msm_routing_get_port_mixer,
  11879. msm_routing_put_port_mixer),
  11880. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11882. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11883. msm_routing_get_port_mixer,
  11884. msm_routing_put_port_mixer),
  11885. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11887. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11888. msm_routing_get_port_mixer,
  11889. msm_routing_put_port_mixer),
  11890. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11892. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11893. msm_routing_get_port_mixer,
  11894. msm_routing_put_port_mixer),
  11895. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11897. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11898. msm_routing_get_port_mixer,
  11899. msm_routing_put_port_mixer),
  11900. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11902. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11903. msm_routing_get_port_mixer,
  11904. msm_routing_put_port_mixer),
  11905. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11907. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11908. msm_routing_get_port_mixer,
  11909. msm_routing_put_port_mixer),
  11910. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11911. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11912. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11913. msm_routing_get_port_mixer,
  11914. msm_routing_put_port_mixer),
  11915. };
  11916. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11917. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11919. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11920. msm_routing_get_port_mixer,
  11921. msm_routing_put_port_mixer),
  11922. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11924. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11925. msm_routing_get_port_mixer,
  11926. msm_routing_put_port_mixer),
  11927. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11930. msm_routing_get_port_mixer,
  11931. msm_routing_put_port_mixer),
  11932. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11934. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11935. msm_routing_get_port_mixer,
  11936. msm_routing_put_port_mixer),
  11937. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11939. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11940. msm_routing_get_port_mixer,
  11941. msm_routing_put_port_mixer),
  11942. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11944. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11945. msm_routing_get_port_mixer,
  11946. msm_routing_put_port_mixer),
  11947. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11949. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11950. msm_routing_get_port_mixer,
  11951. msm_routing_put_port_mixer),
  11952. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11954. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11955. msm_routing_get_port_mixer,
  11956. msm_routing_put_port_mixer),
  11957. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11959. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11960. msm_routing_get_port_mixer,
  11961. msm_routing_put_port_mixer),
  11962. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11964. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11965. msm_routing_get_port_mixer,
  11966. msm_routing_put_port_mixer),
  11967. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11969. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11970. msm_routing_get_port_mixer,
  11971. msm_routing_put_port_mixer),
  11972. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11974. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11975. msm_routing_get_port_mixer,
  11976. msm_routing_put_port_mixer),
  11977. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11979. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11980. msm_routing_get_port_mixer,
  11981. msm_routing_put_port_mixer),
  11982. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11984. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11985. msm_routing_get_port_mixer,
  11986. msm_routing_put_port_mixer),
  11987. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11989. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11990. msm_routing_get_port_mixer,
  11991. msm_routing_put_port_mixer),
  11992. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11994. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11995. msm_routing_get_port_mixer,
  11996. msm_routing_put_port_mixer),
  11997. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11999. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12000. msm_routing_get_port_mixer,
  12001. msm_routing_put_port_mixer),
  12002. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12004. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12005. msm_routing_get_port_mixer,
  12006. msm_routing_put_port_mixer),
  12007. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12009. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12010. msm_routing_get_port_mixer,
  12011. msm_routing_put_port_mixer),
  12012. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12014. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12015. msm_routing_get_port_mixer,
  12016. msm_routing_put_port_mixer),
  12017. };
  12018. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12019. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12021. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12022. msm_routing_get_port_mixer,
  12023. msm_routing_put_port_mixer),
  12024. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12026. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12027. msm_routing_get_port_mixer,
  12028. msm_routing_put_port_mixer),
  12029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12032. msm_routing_get_port_mixer,
  12033. msm_routing_put_port_mixer),
  12034. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12036. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12037. msm_routing_get_port_mixer,
  12038. msm_routing_put_port_mixer),
  12039. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12041. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12042. msm_routing_get_port_mixer,
  12043. msm_routing_put_port_mixer),
  12044. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12046. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12047. msm_routing_get_port_mixer,
  12048. msm_routing_put_port_mixer),
  12049. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12051. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12052. msm_routing_get_port_mixer,
  12053. msm_routing_put_port_mixer),
  12054. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12056. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12057. msm_routing_get_port_mixer,
  12058. msm_routing_put_port_mixer),
  12059. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12061. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12062. msm_routing_get_port_mixer,
  12063. msm_routing_put_port_mixer),
  12064. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12066. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12067. msm_routing_get_port_mixer,
  12068. msm_routing_put_port_mixer),
  12069. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12071. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12072. msm_routing_get_port_mixer,
  12073. msm_routing_put_port_mixer),
  12074. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12076. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12077. msm_routing_get_port_mixer,
  12078. msm_routing_put_port_mixer),
  12079. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12081. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12082. msm_routing_get_port_mixer,
  12083. msm_routing_put_port_mixer),
  12084. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12086. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12087. msm_routing_get_port_mixer,
  12088. msm_routing_put_port_mixer),
  12089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12091. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12092. msm_routing_get_port_mixer,
  12093. msm_routing_put_port_mixer),
  12094. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12096. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12097. msm_routing_get_port_mixer,
  12098. msm_routing_put_port_mixer),
  12099. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12101. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12102. msm_routing_get_port_mixer,
  12103. msm_routing_put_port_mixer),
  12104. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12106. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12107. msm_routing_get_port_mixer,
  12108. msm_routing_put_port_mixer),
  12109. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12111. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12112. msm_routing_get_port_mixer,
  12113. msm_routing_put_port_mixer),
  12114. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12116. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12117. msm_routing_get_port_mixer,
  12118. msm_routing_put_port_mixer),
  12119. };
  12120. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12121. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12123. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12124. msm_routing_get_port_mixer,
  12125. msm_routing_put_port_mixer),
  12126. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12128. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12129. msm_routing_get_port_mixer,
  12130. msm_routing_put_port_mixer),
  12131. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12133. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12134. msm_routing_get_port_mixer,
  12135. msm_routing_put_port_mixer),
  12136. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12138. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12139. msm_routing_get_port_mixer,
  12140. msm_routing_put_port_mixer),
  12141. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12143. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12144. msm_routing_get_port_mixer,
  12145. msm_routing_put_port_mixer),
  12146. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12148. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12149. msm_routing_get_port_mixer,
  12150. msm_routing_put_port_mixer),
  12151. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12153. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12154. msm_routing_get_port_mixer,
  12155. msm_routing_put_port_mixer),
  12156. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12158. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12159. msm_routing_get_port_mixer,
  12160. msm_routing_put_port_mixer),
  12161. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12163. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12164. msm_routing_get_port_mixer,
  12165. msm_routing_put_port_mixer),
  12166. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12168. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12169. msm_routing_get_port_mixer,
  12170. msm_routing_put_port_mixer),
  12171. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12173. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12174. msm_routing_get_port_mixer,
  12175. msm_routing_put_port_mixer),
  12176. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12178. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12179. msm_routing_get_port_mixer,
  12180. msm_routing_put_port_mixer),
  12181. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12183. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12184. msm_routing_get_port_mixer,
  12185. msm_routing_put_port_mixer),
  12186. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12188. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12189. msm_routing_get_port_mixer,
  12190. msm_routing_put_port_mixer),
  12191. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12193. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12194. msm_routing_get_port_mixer,
  12195. msm_routing_put_port_mixer),
  12196. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12198. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12199. msm_routing_get_port_mixer,
  12200. msm_routing_put_port_mixer),
  12201. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12203. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12204. msm_routing_get_port_mixer,
  12205. msm_routing_put_port_mixer),
  12206. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12208. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12209. msm_routing_get_port_mixer,
  12210. msm_routing_put_port_mixer),
  12211. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12213. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12214. msm_routing_get_port_mixer,
  12215. msm_routing_put_port_mixer),
  12216. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12218. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12219. msm_routing_get_port_mixer,
  12220. msm_routing_put_port_mixer),
  12221. };
  12222. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12223. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12225. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12226. msm_routing_get_port_mixer,
  12227. msm_routing_put_port_mixer),
  12228. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12230. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12231. msm_routing_get_port_mixer,
  12232. msm_routing_put_port_mixer),
  12233. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12235. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12236. msm_routing_get_port_mixer,
  12237. msm_routing_put_port_mixer),
  12238. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12240. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12241. msm_routing_get_port_mixer,
  12242. msm_routing_put_port_mixer),
  12243. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12245. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12246. msm_routing_get_port_mixer,
  12247. msm_routing_put_port_mixer),
  12248. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12250. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12251. msm_routing_get_port_mixer,
  12252. msm_routing_put_port_mixer),
  12253. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12255. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12256. msm_routing_get_port_mixer,
  12257. msm_routing_put_port_mixer),
  12258. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12260. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12261. msm_routing_get_port_mixer,
  12262. msm_routing_put_port_mixer),
  12263. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12265. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12266. msm_routing_get_port_mixer,
  12267. msm_routing_put_port_mixer),
  12268. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12270. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12271. msm_routing_get_port_mixer,
  12272. msm_routing_put_port_mixer),
  12273. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12275. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12276. msm_routing_get_port_mixer,
  12277. msm_routing_put_port_mixer),
  12278. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12280. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12281. msm_routing_get_port_mixer,
  12282. msm_routing_put_port_mixer),
  12283. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12285. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12286. msm_routing_get_port_mixer,
  12287. msm_routing_put_port_mixer),
  12288. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12290. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12291. msm_routing_get_port_mixer,
  12292. msm_routing_put_port_mixer),
  12293. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12295. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12296. msm_routing_get_port_mixer,
  12297. msm_routing_put_port_mixer),
  12298. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12300. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12301. msm_routing_get_port_mixer,
  12302. msm_routing_put_port_mixer),
  12303. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12305. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12306. msm_routing_get_port_mixer,
  12307. msm_routing_put_port_mixer),
  12308. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12310. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12311. msm_routing_get_port_mixer,
  12312. msm_routing_put_port_mixer),
  12313. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12315. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12316. msm_routing_get_port_mixer,
  12317. msm_routing_put_port_mixer),
  12318. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12320. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12321. msm_routing_get_port_mixer,
  12322. msm_routing_put_port_mixer),
  12323. };
  12324. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12325. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12327. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12328. msm_routing_get_port_mixer,
  12329. msm_routing_put_port_mixer),
  12330. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12332. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12333. msm_routing_get_port_mixer,
  12334. msm_routing_put_port_mixer),
  12335. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12337. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12338. msm_routing_get_port_mixer,
  12339. msm_routing_put_port_mixer),
  12340. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12342. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12343. msm_routing_get_port_mixer,
  12344. msm_routing_put_port_mixer),
  12345. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12347. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12348. msm_routing_get_port_mixer,
  12349. msm_routing_put_port_mixer),
  12350. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12352. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12353. msm_routing_get_port_mixer,
  12354. msm_routing_put_port_mixer),
  12355. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12357. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12358. msm_routing_get_port_mixer,
  12359. msm_routing_put_port_mixer),
  12360. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12362. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12363. msm_routing_get_port_mixer,
  12364. msm_routing_put_port_mixer),
  12365. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12367. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12368. msm_routing_get_port_mixer,
  12369. msm_routing_put_port_mixer),
  12370. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12371. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12372. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12373. msm_routing_get_port_mixer,
  12374. msm_routing_put_port_mixer),
  12375. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12377. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12378. msm_routing_get_port_mixer,
  12379. msm_routing_put_port_mixer),
  12380. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12382. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12383. msm_routing_get_port_mixer,
  12384. msm_routing_put_port_mixer),
  12385. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12387. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12388. msm_routing_get_port_mixer,
  12389. msm_routing_put_port_mixer),
  12390. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12392. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12393. msm_routing_get_port_mixer,
  12394. msm_routing_put_port_mixer),
  12395. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12397. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12398. msm_routing_get_port_mixer,
  12399. msm_routing_put_port_mixer),
  12400. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12402. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12403. msm_routing_get_port_mixer,
  12404. msm_routing_put_port_mixer),
  12405. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12407. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12408. msm_routing_get_port_mixer,
  12409. msm_routing_put_port_mixer),
  12410. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12412. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12413. msm_routing_get_port_mixer,
  12414. msm_routing_put_port_mixer),
  12415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12417. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12418. msm_routing_get_port_mixer,
  12419. msm_routing_put_port_mixer),
  12420. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12422. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12423. msm_routing_get_port_mixer,
  12424. msm_routing_put_port_mixer),
  12425. };
  12426. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12427. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12429. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12430. msm_routing_get_port_mixer,
  12431. msm_routing_put_port_mixer),
  12432. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12435. msm_routing_get_port_mixer,
  12436. msm_routing_put_port_mixer),
  12437. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12439. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12440. msm_routing_get_port_mixer,
  12441. msm_routing_put_port_mixer),
  12442. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12444. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12445. msm_routing_get_port_mixer,
  12446. msm_routing_put_port_mixer),
  12447. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12449. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12450. msm_routing_get_port_mixer,
  12451. msm_routing_put_port_mixer),
  12452. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12454. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12455. msm_routing_get_port_mixer,
  12456. msm_routing_put_port_mixer),
  12457. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12459. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12460. msm_routing_get_port_mixer,
  12461. msm_routing_put_port_mixer),
  12462. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12464. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12465. msm_routing_get_port_mixer,
  12466. msm_routing_put_port_mixer),
  12467. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12469. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12470. msm_routing_get_port_mixer,
  12471. msm_routing_put_port_mixer),
  12472. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12474. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12475. msm_routing_get_port_mixer,
  12476. msm_routing_put_port_mixer),
  12477. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12479. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12480. msm_routing_get_port_mixer,
  12481. msm_routing_put_port_mixer),
  12482. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12484. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12485. msm_routing_get_port_mixer,
  12486. msm_routing_put_port_mixer),
  12487. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12489. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12490. msm_routing_get_port_mixer,
  12491. msm_routing_put_port_mixer),
  12492. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12494. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12495. msm_routing_get_port_mixer,
  12496. msm_routing_put_port_mixer),
  12497. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12499. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12500. msm_routing_get_port_mixer,
  12501. msm_routing_put_port_mixer),
  12502. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12504. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12505. msm_routing_get_port_mixer,
  12506. msm_routing_put_port_mixer),
  12507. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12509. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12510. msm_routing_get_port_mixer,
  12511. msm_routing_put_port_mixer),
  12512. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12514. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12515. msm_routing_get_port_mixer,
  12516. msm_routing_put_port_mixer),
  12517. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12519. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12520. msm_routing_get_port_mixer,
  12521. msm_routing_put_port_mixer),
  12522. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12524. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12525. msm_routing_get_port_mixer,
  12526. msm_routing_put_port_mixer),
  12527. };
  12528. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12529. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12531. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12532. msm_routing_get_port_mixer,
  12533. msm_routing_put_port_mixer),
  12534. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12536. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12537. msm_routing_get_port_mixer,
  12538. msm_routing_put_port_mixer),
  12539. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12541. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12542. msm_routing_get_port_mixer,
  12543. msm_routing_put_port_mixer),
  12544. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12546. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12547. msm_routing_get_port_mixer,
  12548. msm_routing_put_port_mixer),
  12549. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12551. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12552. msm_routing_get_port_mixer,
  12553. msm_routing_put_port_mixer),
  12554. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12556. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12557. msm_routing_get_port_mixer,
  12558. msm_routing_put_port_mixer),
  12559. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12561. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12562. msm_routing_get_port_mixer,
  12563. msm_routing_put_port_mixer),
  12564. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12565. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12566. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12567. msm_routing_get_port_mixer,
  12568. msm_routing_put_port_mixer),
  12569. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12571. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12572. msm_routing_get_port_mixer,
  12573. msm_routing_put_port_mixer),
  12574. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12576. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12577. msm_routing_get_port_mixer,
  12578. msm_routing_put_port_mixer),
  12579. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12581. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12582. msm_routing_get_port_mixer,
  12583. msm_routing_put_port_mixer),
  12584. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12585. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12586. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12587. msm_routing_get_port_mixer,
  12588. msm_routing_put_port_mixer),
  12589. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12591. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12592. msm_routing_get_port_mixer,
  12593. msm_routing_put_port_mixer),
  12594. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12596. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12597. msm_routing_get_port_mixer,
  12598. msm_routing_put_port_mixer),
  12599. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12601. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12602. msm_routing_get_port_mixer,
  12603. msm_routing_put_port_mixer),
  12604. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12605. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12606. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12607. msm_routing_get_port_mixer,
  12608. msm_routing_put_port_mixer),
  12609. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12611. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12612. msm_routing_get_port_mixer,
  12613. msm_routing_put_port_mixer),
  12614. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12616. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12617. msm_routing_get_port_mixer,
  12618. msm_routing_put_port_mixer),
  12619. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12621. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12622. msm_routing_get_port_mixer,
  12623. msm_routing_put_port_mixer),
  12624. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12626. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12627. msm_routing_get_port_mixer,
  12628. msm_routing_put_port_mixer),
  12629. };
  12630. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12631. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12633. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12634. msm_routing_get_port_mixer,
  12635. msm_routing_put_port_mixer),
  12636. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12638. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12639. msm_routing_get_port_mixer,
  12640. msm_routing_put_port_mixer),
  12641. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12643. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12644. msm_routing_get_port_mixer,
  12645. msm_routing_put_port_mixer),
  12646. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12648. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12649. msm_routing_get_port_mixer,
  12650. msm_routing_put_port_mixer),
  12651. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12653. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12654. msm_routing_get_port_mixer,
  12655. msm_routing_put_port_mixer),
  12656. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12658. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12659. msm_routing_get_port_mixer,
  12660. msm_routing_put_port_mixer),
  12661. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12663. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12664. msm_routing_get_port_mixer,
  12665. msm_routing_put_port_mixer),
  12666. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12668. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12669. msm_routing_get_port_mixer,
  12670. msm_routing_put_port_mixer),
  12671. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12673. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12674. msm_routing_get_port_mixer,
  12675. msm_routing_put_port_mixer),
  12676. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12678. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12679. msm_routing_get_port_mixer,
  12680. msm_routing_put_port_mixer),
  12681. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12683. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12684. msm_routing_get_port_mixer,
  12685. msm_routing_put_port_mixer),
  12686. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12688. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12689. msm_routing_get_port_mixer,
  12690. msm_routing_put_port_mixer),
  12691. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12693. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12694. msm_routing_get_port_mixer,
  12695. msm_routing_put_port_mixer),
  12696. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12698. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12699. msm_routing_get_port_mixer,
  12700. msm_routing_put_port_mixer),
  12701. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12703. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12704. msm_routing_get_port_mixer,
  12705. msm_routing_put_port_mixer),
  12706. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12708. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12709. msm_routing_get_port_mixer,
  12710. msm_routing_put_port_mixer),
  12711. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12713. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12714. msm_routing_get_port_mixer,
  12715. msm_routing_put_port_mixer),
  12716. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12718. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12719. msm_routing_get_port_mixer,
  12720. msm_routing_put_port_mixer),
  12721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12723. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12724. msm_routing_get_port_mixer,
  12725. msm_routing_put_port_mixer),
  12726. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12728. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12729. msm_routing_get_port_mixer,
  12730. msm_routing_put_port_mixer),
  12731. };
  12732. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12733. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12735. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12736. msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12740. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12741. msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12745. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12746. msm_routing_get_port_mixer,
  12747. msm_routing_put_port_mixer),
  12748. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12750. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12751. msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12755. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12756. msm_routing_get_port_mixer,
  12757. msm_routing_put_port_mixer),
  12758. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12760. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12761. msm_routing_get_port_mixer,
  12762. msm_routing_put_port_mixer),
  12763. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12765. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12766. msm_routing_get_port_mixer,
  12767. msm_routing_put_port_mixer),
  12768. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12770. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12771. msm_routing_get_port_mixer,
  12772. msm_routing_put_port_mixer),
  12773. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12775. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12776. msm_routing_get_port_mixer,
  12777. msm_routing_put_port_mixer),
  12778. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12780. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12781. msm_routing_get_port_mixer,
  12782. msm_routing_put_port_mixer),
  12783. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12785. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12786. msm_routing_get_port_mixer,
  12787. msm_routing_put_port_mixer),
  12788. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12790. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12791. msm_routing_get_port_mixer,
  12792. msm_routing_put_port_mixer),
  12793. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12795. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12796. msm_routing_get_port_mixer,
  12797. msm_routing_put_port_mixer),
  12798. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12799. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12800. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12801. msm_routing_get_port_mixer,
  12802. msm_routing_put_port_mixer),
  12803. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12805. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12806. msm_routing_get_port_mixer,
  12807. msm_routing_put_port_mixer),
  12808. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12810. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12811. msm_routing_get_port_mixer,
  12812. msm_routing_put_port_mixer),
  12813. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12815. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12816. msm_routing_get_port_mixer,
  12817. msm_routing_put_port_mixer),
  12818. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12819. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12820. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12821. msm_routing_get_port_mixer,
  12822. msm_routing_put_port_mixer),
  12823. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12825. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12826. msm_routing_get_port_mixer,
  12827. msm_routing_put_port_mixer),
  12828. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12830. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12831. msm_routing_get_port_mixer,
  12832. msm_routing_put_port_mixer),
  12833. };
  12834. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12835. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12837. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12838. msm_routing_get_port_mixer,
  12839. msm_routing_put_port_mixer),
  12840. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12842. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12843. msm_routing_get_port_mixer,
  12844. msm_routing_put_port_mixer),
  12845. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12848. msm_routing_get_port_mixer,
  12849. msm_routing_put_port_mixer),
  12850. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12852. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12853. msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12857. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12858. msm_routing_get_port_mixer,
  12859. msm_routing_put_port_mixer),
  12860. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12862. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12863. msm_routing_get_port_mixer,
  12864. msm_routing_put_port_mixer),
  12865. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12867. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12868. msm_routing_get_port_mixer,
  12869. msm_routing_put_port_mixer),
  12870. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12872. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12873. msm_routing_get_port_mixer,
  12874. msm_routing_put_port_mixer),
  12875. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12877. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12878. msm_routing_get_port_mixer,
  12879. msm_routing_put_port_mixer),
  12880. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12882. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12883. msm_routing_get_port_mixer,
  12884. msm_routing_put_port_mixer),
  12885. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12887. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12888. msm_routing_get_port_mixer,
  12889. msm_routing_put_port_mixer),
  12890. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12892. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12893. msm_routing_get_port_mixer,
  12894. msm_routing_put_port_mixer),
  12895. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12897. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12898. msm_routing_get_port_mixer,
  12899. msm_routing_put_port_mixer),
  12900. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12902. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12903. msm_routing_get_port_mixer,
  12904. msm_routing_put_port_mixer),
  12905. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12907. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12908. msm_routing_get_port_mixer,
  12909. msm_routing_put_port_mixer),
  12910. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12912. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12913. msm_routing_get_port_mixer,
  12914. msm_routing_put_port_mixer),
  12915. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12917. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12918. msm_routing_get_port_mixer,
  12919. msm_routing_put_port_mixer),
  12920. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12922. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12923. msm_routing_get_port_mixer,
  12924. msm_routing_put_port_mixer),
  12925. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12927. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12928. msm_routing_get_port_mixer,
  12929. msm_routing_put_port_mixer),
  12930. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12932. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12933. msm_routing_get_port_mixer,
  12934. msm_routing_put_port_mixer),
  12935. };
  12936. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12937. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12939. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12940. msm_routing_get_port_mixer,
  12941. msm_routing_put_port_mixer),
  12942. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12944. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12945. msm_routing_get_port_mixer,
  12946. msm_routing_put_port_mixer),
  12947. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12949. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12950. msm_routing_get_port_mixer,
  12951. msm_routing_put_port_mixer),
  12952. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12954. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12955. msm_routing_get_port_mixer,
  12956. msm_routing_put_port_mixer),
  12957. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12959. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12960. msm_routing_get_port_mixer,
  12961. msm_routing_put_port_mixer),
  12962. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12964. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12965. msm_routing_get_port_mixer,
  12966. msm_routing_put_port_mixer),
  12967. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12969. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12970. msm_routing_get_port_mixer,
  12971. msm_routing_put_port_mixer),
  12972. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12974. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12975. msm_routing_get_port_mixer,
  12976. msm_routing_put_port_mixer),
  12977. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12979. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12980. msm_routing_get_port_mixer,
  12981. msm_routing_put_port_mixer),
  12982. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12985. msm_routing_get_port_mixer,
  12986. msm_routing_put_port_mixer),
  12987. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12989. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12990. msm_routing_get_port_mixer,
  12991. msm_routing_put_port_mixer),
  12992. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12994. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12995. msm_routing_get_port_mixer,
  12996. msm_routing_put_port_mixer),
  12997. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12999. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13000. msm_routing_get_port_mixer,
  13001. msm_routing_put_port_mixer),
  13002. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13004. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13005. msm_routing_get_port_mixer,
  13006. msm_routing_put_port_mixer),
  13007. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13009. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13010. msm_routing_get_port_mixer,
  13011. msm_routing_put_port_mixer),
  13012. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13014. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13015. msm_routing_get_port_mixer,
  13016. msm_routing_put_port_mixer),
  13017. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13019. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13020. msm_routing_get_port_mixer,
  13021. msm_routing_put_port_mixer),
  13022. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13024. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13025. msm_routing_get_port_mixer,
  13026. msm_routing_put_port_mixer),
  13027. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13029. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13030. msm_routing_get_port_mixer,
  13031. msm_routing_put_port_mixer),
  13032. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13034. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13035. msm_routing_get_port_mixer,
  13036. msm_routing_put_port_mixer),
  13037. };
  13038. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13039. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13041. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13042. msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13046. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13047. msm_routing_get_port_mixer,
  13048. msm_routing_put_port_mixer),
  13049. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13051. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13052. msm_routing_get_port_mixer,
  13053. msm_routing_put_port_mixer),
  13054. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13056. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13057. msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13061. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13062. msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13066. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13067. msm_routing_get_port_mixer,
  13068. msm_routing_put_port_mixer),
  13069. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13071. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13072. msm_routing_get_port_mixer,
  13073. msm_routing_put_port_mixer),
  13074. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13076. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13077. msm_routing_get_port_mixer,
  13078. msm_routing_put_port_mixer),
  13079. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13081. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13082. msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13085. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13086. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13087. msm_routing_get_port_mixer,
  13088. msm_routing_put_port_mixer),
  13089. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13091. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13092. msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13096. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13097. msm_routing_get_port_mixer,
  13098. msm_routing_put_port_mixer),
  13099. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13101. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13102. msm_routing_get_port_mixer,
  13103. msm_routing_put_port_mixer),
  13104. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13106. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13107. msm_routing_get_port_mixer,
  13108. msm_routing_put_port_mixer),
  13109. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13111. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13112. msm_routing_get_port_mixer,
  13113. msm_routing_put_port_mixer),
  13114. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13116. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13117. msm_routing_get_port_mixer,
  13118. msm_routing_put_port_mixer),
  13119. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13121. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13122. msm_routing_get_port_mixer,
  13123. msm_routing_put_port_mixer),
  13124. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13126. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13127. msm_routing_get_port_mixer,
  13128. msm_routing_put_port_mixer),
  13129. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13131. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13132. msm_routing_get_port_mixer,
  13133. msm_routing_put_port_mixer),
  13134. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13136. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13137. msm_routing_get_port_mixer,
  13138. msm_routing_put_port_mixer),
  13139. };
  13140. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13141. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13143. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13144. msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13148. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13149. msm_routing_get_port_mixer,
  13150. msm_routing_put_port_mixer),
  13151. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13153. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13154. msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13158. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13159. msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13163. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13164. msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13168. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13169. msm_routing_get_port_mixer,
  13170. msm_routing_put_port_mixer),
  13171. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13173. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13174. msm_routing_get_port_mixer,
  13175. msm_routing_put_port_mixer),
  13176. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13178. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13179. msm_routing_get_port_mixer,
  13180. msm_routing_put_port_mixer),
  13181. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13183. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13184. msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13188. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13189. msm_routing_get_port_mixer,
  13190. msm_routing_put_port_mixer),
  13191. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13193. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13194. msm_routing_get_port_mixer,
  13195. msm_routing_put_port_mixer),
  13196. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13198. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13199. msm_routing_get_port_mixer,
  13200. msm_routing_put_port_mixer),
  13201. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13203. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13204. msm_routing_get_port_mixer,
  13205. msm_routing_put_port_mixer),
  13206. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13208. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13209. msm_routing_get_port_mixer,
  13210. msm_routing_put_port_mixer),
  13211. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13213. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13214. msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13218. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13219. msm_routing_get_port_mixer,
  13220. msm_routing_put_port_mixer),
  13221. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13223. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13224. msm_routing_get_port_mixer,
  13225. msm_routing_put_port_mixer),
  13226. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13228. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13229. msm_routing_get_port_mixer,
  13230. msm_routing_put_port_mixer),
  13231. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13233. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13234. msm_routing_get_port_mixer,
  13235. msm_routing_put_port_mixer),
  13236. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13238. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13239. msm_routing_get_port_mixer,
  13240. msm_routing_put_port_mixer),
  13241. };
  13242. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13243. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13245. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13250. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13260. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13265. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13266. msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13270. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13275. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13276. msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13280. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13281. msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13285. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13286. msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13290. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13291. msm_routing_get_port_mixer,
  13292. msm_routing_put_port_mixer),
  13293. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13295. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13296. msm_routing_get_port_mixer,
  13297. msm_routing_put_port_mixer),
  13298. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13301. msm_routing_get_port_mixer,
  13302. msm_routing_put_port_mixer),
  13303. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13305. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13306. msm_routing_get_port_mixer,
  13307. msm_routing_put_port_mixer),
  13308. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13310. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13311. msm_routing_get_port_mixer,
  13312. msm_routing_put_port_mixer),
  13313. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13315. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13316. msm_routing_get_port_mixer,
  13317. msm_routing_put_port_mixer),
  13318. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13319. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13320. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13321. msm_routing_get_port_mixer,
  13322. msm_routing_put_port_mixer),
  13323. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13325. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13326. msm_routing_get_port_mixer,
  13327. msm_routing_put_port_mixer),
  13328. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13330. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13331. msm_routing_get_port_mixer,
  13332. msm_routing_put_port_mixer),
  13333. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13335. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13336. msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13340. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13341. msm_routing_get_port_mixer,
  13342. msm_routing_put_port_mixer),
  13343. };
  13344. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13345. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13347. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13352. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13357. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13362. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13367. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13368. msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13372. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13373. msm_routing_get_port_mixer,
  13374. msm_routing_put_port_mixer),
  13375. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13377. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13378. msm_routing_get_port_mixer,
  13379. msm_routing_put_port_mixer),
  13380. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13382. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13383. msm_routing_get_port_mixer,
  13384. msm_routing_put_port_mixer),
  13385. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13387. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13388. msm_routing_get_port_mixer,
  13389. msm_routing_put_port_mixer),
  13390. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13392. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13393. msm_routing_get_port_mixer,
  13394. msm_routing_put_port_mixer),
  13395. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13397. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13398. msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13402. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13403. msm_routing_get_port_mixer,
  13404. msm_routing_put_port_mixer),
  13405. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13407. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13408. msm_routing_get_port_mixer,
  13409. msm_routing_put_port_mixer),
  13410. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13412. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13413. msm_routing_get_port_mixer,
  13414. msm_routing_put_port_mixer),
  13415. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13417. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13418. msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13422. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13423. msm_routing_get_port_mixer,
  13424. msm_routing_put_port_mixer),
  13425. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13427. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13428. msm_routing_get_port_mixer,
  13429. msm_routing_put_port_mixer),
  13430. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13432. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13433. msm_routing_get_port_mixer,
  13434. msm_routing_put_port_mixer),
  13435. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13437. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13438. msm_routing_get_port_mixer,
  13439. msm_routing_put_port_mixer),
  13440. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13441. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13442. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13443. msm_routing_get_port_mixer,
  13444. msm_routing_put_port_mixer),
  13445. };
  13446. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13447. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13449. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13454. msm_routing_put_port_mixer),
  13455. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13457. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13458. msm_routing_put_port_mixer),
  13459. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13461. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13462. msm_routing_put_port_mixer),
  13463. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13465. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13469. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13473. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13474. msm_routing_put_port_mixer),
  13475. };
  13476. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13477. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13479. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13483. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13484. msm_routing_put_port_mixer),
  13485. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13487. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13488. msm_routing_put_port_mixer),
  13489. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13491. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13492. msm_routing_put_port_mixer),
  13493. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13495. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13496. msm_routing_put_port_mixer),
  13497. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13499. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13500. msm_routing_put_port_mixer),
  13501. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13503. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13504. msm_routing_put_port_mixer),
  13505. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13507. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13511. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13512. msm_routing_put_port_mixer),
  13513. };
  13514. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13515. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13517. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13518. msm_routing_put_listen_mixer),
  13519. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13521. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13522. msm_routing_put_listen_mixer),
  13523. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13525. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13526. msm_routing_put_listen_mixer),
  13527. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13529. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13530. msm_routing_put_listen_mixer),
  13531. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13533. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13534. msm_routing_put_listen_mixer),
  13535. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13537. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13538. msm_routing_put_listen_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13541. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13542. msm_routing_put_listen_mixer),
  13543. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13545. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13546. msm_routing_put_listen_mixer),
  13547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13549. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13550. msm_routing_put_listen_mixer),
  13551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13554. msm_routing_put_listen_mixer),
  13555. };
  13556. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13557. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13559. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13560. msm_routing_put_listen_mixer),
  13561. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13562. SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13564. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13565. msm_routing_put_listen_mixer),
  13566. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13568. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13569. msm_routing_put_listen_mixer),
  13570. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13572. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13573. msm_routing_put_listen_mixer),
  13574. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13576. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13577. msm_routing_put_listen_mixer),
  13578. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13580. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13581. msm_routing_put_listen_mixer),
  13582. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13584. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13585. msm_routing_put_listen_mixer),
  13586. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13588. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13589. msm_routing_put_listen_mixer),
  13590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13592. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13593. msm_routing_put_listen_mixer),
  13594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13596. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13597. msm_routing_put_listen_mixer),
  13598. };
  13599. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13600. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13602. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13603. msm_routing_put_listen_mixer),
  13604. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13606. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13607. msm_routing_put_listen_mixer),
  13608. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13610. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13611. msm_routing_put_listen_mixer),
  13612. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13614. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13615. msm_routing_put_listen_mixer),
  13616. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13618. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13619. msm_routing_put_listen_mixer),
  13620. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13622. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13623. msm_routing_put_listen_mixer),
  13624. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13626. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13627. msm_routing_put_listen_mixer),
  13628. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13630. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13631. msm_routing_put_listen_mixer),
  13632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13635. msm_routing_put_listen_mixer),
  13636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13639. msm_routing_put_listen_mixer),
  13640. };
  13641. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13642. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13643. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13644. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13645. msm_routing_put_listen_mixer),
  13646. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13648. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13649. msm_routing_put_listen_mixer),
  13650. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13652. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13653. msm_routing_put_listen_mixer),
  13654. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13655. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13656. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13657. msm_routing_put_listen_mixer),
  13658. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13660. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13661. msm_routing_put_listen_mixer),
  13662. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13664. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13665. msm_routing_put_listen_mixer),
  13666. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13668. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13669. msm_routing_put_listen_mixer),
  13670. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13672. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13673. msm_routing_put_listen_mixer),
  13674. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13676. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13677. msm_routing_put_listen_mixer),
  13678. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13681. msm_routing_put_listen_mixer),
  13682. };
  13683. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13684. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13686. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13687. msm_routing_put_listen_mixer),
  13688. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13690. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13691. msm_routing_put_listen_mixer),
  13692. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13694. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13695. msm_routing_put_listen_mixer),
  13696. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13698. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13699. msm_routing_put_listen_mixer),
  13700. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13702. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13703. msm_routing_put_listen_mixer),
  13704. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13705. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13706. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13707. msm_routing_put_listen_mixer),
  13708. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13710. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13711. msm_routing_put_listen_mixer),
  13712. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13714. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13715. msm_routing_put_listen_mixer),
  13716. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13718. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13719. msm_routing_put_listen_mixer),
  13720. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13722. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13723. msm_routing_put_listen_mixer),
  13724. };
  13725. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13726. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13727. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13728. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13729. msm_routing_put_listen_mixer),
  13730. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13732. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13733. msm_routing_put_listen_mixer),
  13734. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13736. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13737. msm_routing_put_listen_mixer),
  13738. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13740. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13741. msm_routing_put_listen_mixer),
  13742. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13744. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13745. msm_routing_put_listen_mixer),
  13746. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13748. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13749. msm_routing_put_listen_mixer),
  13750. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13752. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13753. msm_routing_put_listen_mixer),
  13754. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13756. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13757. msm_routing_put_listen_mixer),
  13758. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13760. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13761. msm_routing_put_listen_mixer),
  13762. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13764. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13765. msm_routing_put_listen_mixer),
  13766. };
  13767. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13768. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13770. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13771. msm_routing_put_listen_mixer),
  13772. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13774. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13775. msm_routing_put_listen_mixer),
  13776. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13778. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13779. msm_routing_put_listen_mixer),
  13780. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13782. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13783. msm_routing_put_listen_mixer),
  13784. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13786. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13787. msm_routing_put_listen_mixer),
  13788. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13790. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13791. msm_routing_put_listen_mixer),
  13792. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13794. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13795. msm_routing_put_listen_mixer),
  13796. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13798. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13799. msm_routing_put_listen_mixer),
  13800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13802. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13803. msm_routing_put_listen_mixer),
  13804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13806. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13807. msm_routing_put_listen_mixer),
  13808. };
  13809. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13810. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13812. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13813. msm_routing_put_listen_mixer),
  13814. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13816. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13817. msm_routing_put_listen_mixer),
  13818. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13820. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13821. msm_routing_put_listen_mixer),
  13822. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13824. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13825. msm_routing_put_listen_mixer),
  13826. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13828. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13829. msm_routing_put_listen_mixer),
  13830. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13832. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13833. msm_routing_put_listen_mixer),
  13834. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13836. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13837. msm_routing_put_listen_mixer),
  13838. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13840. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13841. msm_routing_put_listen_mixer),
  13842. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13844. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13845. msm_routing_put_listen_mixer),
  13846. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13848. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. };
  13851. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13852. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13853. 0, 1, 0, msm_routing_get_switch_mixer,
  13854. msm_routing_put_switch_mixer);
  13855. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13856. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13857. 0, 1, 0, msm_routing_get_switch_mixer,
  13858. msm_routing_put_switch_mixer);
  13859. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13860. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13861. 0, 1, 0, msm_routing_get_switch_mixer,
  13862. msm_routing_put_switch_mixer);
  13863. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13864. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13865. 0, 1, 0, msm_routing_get_switch_mixer,
  13866. msm_routing_put_switch_mixer);
  13867. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13868. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13869. 0, 1, 0, msm_routing_get_switch_mixer,
  13870. msm_routing_put_switch_mixer);
  13871. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13872. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13873. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13874. msm_routing_put_fm_pcmrx_switch_mixer);
  13875. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13876. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13877. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13878. msm_routing_put_int0_mi2s_switch_mixer);
  13879. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13880. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13881. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13882. msm_routing_put_int4_mi2s_switch_mixer);
  13883. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13884. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13885. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13886. msm_routing_put_pri_mi2s_switch_mixer);
  13887. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13888. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13889. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13890. msm_routing_put_sec_mi2s_switch_mixer);
  13891. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13892. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13893. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13894. msm_routing_put_tert_mi2s_switch_mixer);
  13895. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13896. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13897. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13898. msm_routing_put_quat_mi2s_switch_mixer);
  13899. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13900. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13901. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13902. msm_routing_put_quin_mi2s_switch_mixer);
  13903. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13904. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13905. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13906. msm_routing_put_hfp_switch_mixer);
  13907. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13908. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13909. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13910. msm_routing_put_hfp_switch_mixer);
  13911. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13912. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13913. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13914. msm_routing_put_hfp_switch_mixer);
  13915. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13916. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13917. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13918. msm_routing_put_hfp_switch_mixer);
  13919. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13920. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13921. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13922. msm_routing_put_usb_switch_mixer);
  13923. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13924. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13925. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13926. msm_routing_a2dp_switch_mixer_put);
  13927. static const struct soc_enum lsm_port_enum =
  13928. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13929. static const char * const lsm_func_text[] = {
  13930. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13931. };
  13932. static const struct soc_enum lsm_func_enum =
  13933. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13934. static const struct snd_kcontrol_new lsm_controls[] = {
  13935. /* kcontrol of lsm_function */
  13936. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13937. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13938. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13939. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13940. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13941. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13942. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13943. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13944. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13945. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13946. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13947. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13948. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13949. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13950. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13951. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13952. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13953. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13954. /* kcontrol of lsm_port */
  13955. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13956. msm_routing_lsm_port_get,
  13957. msm_routing_lsm_port_put),
  13958. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13959. msm_routing_lsm_port_get,
  13960. msm_routing_lsm_port_put),
  13961. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13962. msm_routing_lsm_port_get,
  13963. msm_routing_lsm_port_put),
  13964. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  13965. msm_routing_lsm_port_get,
  13966. msm_routing_lsm_port_put),
  13967. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  13968. msm_routing_lsm_port_get,
  13969. msm_routing_lsm_port_put),
  13970. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  13971. msm_routing_lsm_port_get,
  13972. msm_routing_lsm_port_put),
  13973. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  13974. msm_routing_lsm_port_get,
  13975. msm_routing_lsm_port_put),
  13976. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  13977. msm_routing_lsm_port_get,
  13978. msm_routing_lsm_port_put),
  13979. };
  13980. static const char * const aanc_slim_0_rx_text[] = {
  13981. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  13982. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  13983. };
  13984. static const struct soc_enum aanc_slim_0_rx_enum =
  13985. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  13986. aanc_slim_0_rx_text);
  13987. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  13988. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  13989. msm_routing_slim_0_rx_aanc_mux_get,
  13990. msm_routing_slim_0_rx_aanc_mux_put)
  13991. };
  13992. static int msm_routing_get_stereo_to_custom_stereo_control(
  13993. struct snd_kcontrol *kcontrol,
  13994. struct snd_ctl_elem_value *ucontrol)
  13995. {
  13996. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  13997. return 0;
  13998. }
  13999. static int msm_routing_put_stereo_to_custom_stereo_control(
  14000. struct snd_kcontrol *kcontrol,
  14001. struct snd_ctl_elem_value *ucontrol)
  14002. {
  14003. int flag = 0, i = 0, rc = 0, idx = 0;
  14004. int be_index = 0, port_id, topo_id;
  14005. unsigned int session_id = 0;
  14006. uint16_t op_FL_ip_FL_weight = 0;
  14007. uint16_t op_FL_ip_FR_weight = 0;
  14008. uint16_t op_FR_ip_FL_weight = 0;
  14009. uint16_t op_FR_ip_FR_weight = 0;
  14010. flag = ucontrol->value.integer.value[0];
  14011. pr_debug("%s E flag %d\n", __func__, flag);
  14012. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14013. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14014. __func__, is_custom_stereo_on, flag);
  14015. return 0;
  14016. }
  14017. is_custom_stereo_on = flag ? true : false;
  14018. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14019. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14020. port_id = msm_bedais[be_index].port_id;
  14021. if (!msm_bedais[be_index].active)
  14022. continue;
  14023. if ((port_id != SLIMBUS_0_RX) &&
  14024. (port_id != RT_PROXY_PORT_001_RX) &&
  14025. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14026. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14027. continue;
  14028. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14029. MSM_FRONTEND_DAI_MM_SIZE) {
  14030. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14031. LEGACY_PCM_MODE)
  14032. goto skip_send_custom_stereo;
  14033. session_id =
  14034. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14035. if (is_custom_stereo_on) {
  14036. op_FL_ip_FL_weight =
  14037. Q14_GAIN_ZERO_POINT_FIVE;
  14038. op_FL_ip_FR_weight =
  14039. Q14_GAIN_ZERO_POINT_FIVE;
  14040. op_FR_ip_FL_weight =
  14041. Q14_GAIN_ZERO_POINT_FIVE;
  14042. op_FR_ip_FR_weight =
  14043. Q14_GAIN_ZERO_POINT_FIVE;
  14044. } else {
  14045. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14046. op_FL_ip_FR_weight = 0;
  14047. op_FR_ip_FL_weight = 0;
  14048. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14049. }
  14050. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14051. unsigned long copp =
  14052. session_copp_map[i]
  14053. [SESSION_TYPE_RX][be_index];
  14054. if (!test_bit(idx, &copp))
  14055. goto skip_send_custom_stereo;
  14056. topo_id = adm_get_topology_for_port_copp_idx(
  14057. msm_bedais[be_index].port_id, idx);
  14058. if (topo_id < 0)
  14059. pr_debug("%s:Err:custom stereo topo %d",
  14060. __func__, topo_id);
  14061. pr_debug("idx %d\n", idx);
  14062. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14063. rc = msm_ds2_dap_set_custom_stereo_onoff
  14064. (msm_bedais[be_index].port_id,
  14065. idx, is_custom_stereo_on);
  14066. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14067. rc = dolby_dap_set_custom_stereo_onoff(
  14068. msm_bedais[be_index].port_id,
  14069. idx, is_custom_stereo_on);
  14070. else
  14071. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14072. (msm_bedais[be_index].port_id,
  14073. idx, session_id,
  14074. op_FL_ip_FL_weight,
  14075. op_FL_ip_FR_weight,
  14076. op_FR_ip_FL_weight,
  14077. op_FR_ip_FR_weight);
  14078. if (rc < 0)
  14079. skip_send_custom_stereo:
  14080. pr_err("%s: err setting custom stereo\n",
  14081. __func__);
  14082. }
  14083. }
  14084. }
  14085. return 0;
  14086. }
  14087. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14088. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14089. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14090. msm_routing_put_stereo_to_custom_stereo_control),
  14091. };
  14092. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14093. struct snd_ctl_elem_value *ucontrol)
  14094. {
  14095. return 0;
  14096. }
  14097. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14098. struct snd_ctl_elem_value *ucontrol)
  14099. {
  14100. int i = 0, j;
  14101. int num_app_types = ucontrol->value.integer.value[i++];
  14102. pr_debug("%s\n", __func__);
  14103. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14104. sizeof(struct msm_pcm_routing_app_type_data));
  14105. if (num_app_types > MAX_APP_TYPES) {
  14106. pr_err("%s: number of app types exceed the max supported\n",
  14107. __func__);
  14108. return -EINVAL;
  14109. }
  14110. for (j = 0; j < num_app_types; j++) {
  14111. app_type_cfg[j].app_type =
  14112. ucontrol->value.integer.value[i++];
  14113. app_type_cfg[j].sample_rate =
  14114. ucontrol->value.integer.value[i++];
  14115. app_type_cfg[j].bit_width =
  14116. ucontrol->value.integer.value[i++];
  14117. }
  14118. return 0;
  14119. }
  14120. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14121. struct snd_ctl_elem_value *ucontrol)
  14122. {
  14123. int j, fe_id, be_id, port_type;
  14124. int ret = 0;
  14125. unsigned long copp;
  14126. struct msm_pcm_routing_bdai_data *bedai;
  14127. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14128. SESSION_TYPE_RX;
  14129. int app_type = ucontrol->value.integer.value[1];
  14130. int gain = (ucontrol->value.integer.value[2] +
  14131. ucontrol->value.integer.value[3])/2;
  14132. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14133. MSM_AFE_PORT_TYPE_TX;
  14134. mutex_lock(&routing_lock);
  14135. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14136. if (is_be_dai_extproc(be_id))
  14137. continue;
  14138. bedai = &msm_bedais[be_id];
  14139. if (afe_get_port_type(bedai->port_id) != port_type)
  14140. continue;
  14141. if (!bedai->active)
  14142. continue;
  14143. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14144. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14145. continue;
  14146. if (app_type !=
  14147. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14148. continue;
  14149. copp = session_copp_map[fe_id][dir][be_id];
  14150. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14151. if (!test_bit(j, &copp))
  14152. continue;
  14153. ret |= adm_set_volume(bedai->port_id, j, gain);
  14154. }
  14155. }
  14156. }
  14157. mutex_unlock(&routing_lock);
  14158. return ret ? -EINVAL : 0;
  14159. }
  14160. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14161. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14162. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14163. msm_routing_put_app_type_cfg_control),
  14164. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14165. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14166. };
  14167. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14168. struct snd_ctl_elem_value *ucontrol)
  14169. {
  14170. int copp_idx, fe_id, be_id, port_type;
  14171. int ret = 0;
  14172. unsigned long copp;
  14173. struct msm_pcm_routing_bdai_data *bedai;
  14174. u8 *packed_params = NULL;
  14175. struct param_hdr_v3 param_hdr;
  14176. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14177. sizeof(uint32_t));
  14178. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14179. SESSION_TYPE_RX;
  14180. int app_type = ucontrol->value.integer.value[1];
  14181. int module_id = ucontrol->value.integer.value[2];
  14182. int instance_id = ucontrol->value.integer.value[3];
  14183. int param_id = ucontrol->value.integer.value[4];
  14184. int param_value = ucontrol->value.integer.value[5];
  14185. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14186. MSM_AFE_PORT_TYPE_TX;
  14187. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14188. __func__, app_type, module_id,
  14189. instance_id, param_id, param_value);
  14190. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14191. if (!packed_params)
  14192. return -ENOMEM;
  14193. memset(&param_hdr, 0, sizeof(param_hdr));
  14194. param_hdr.module_id = module_id;
  14195. param_hdr.instance_id = instance_id;
  14196. param_hdr.param_id = param_id;
  14197. param_hdr.param_size = sizeof(uint32_t);
  14198. packed_param_size = 0;
  14199. mutex_lock(&routing_lock);
  14200. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14201. if (is_be_dai_extproc(be_id))
  14202. continue;
  14203. bedai = &msm_bedais[be_id];
  14204. if (afe_get_port_type(bedai->port_id) != port_type)
  14205. continue;
  14206. if (!bedai->active)
  14207. continue;
  14208. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14209. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14210. continue;
  14211. if (app_type !=
  14212. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14213. continue;
  14214. copp = session_copp_map[fe_id][dir][be_id];
  14215. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14216. copp_idx++) {
  14217. if (!test_bit(copp_idx, &copp))
  14218. continue;
  14219. ret = q6common_pack_pp_params(packed_params,
  14220. &param_hdr,
  14221. (u8 *) &param_value,
  14222. &packed_param_size);
  14223. if (ret) {
  14224. pr_err("%s: Failed to pack params, error %d\n",
  14225. __func__, ret);
  14226. goto done;
  14227. }
  14228. ret = adm_set_pp_params(bedai->port_id,
  14229. copp_idx, NULL,
  14230. packed_params,
  14231. packed_param_size);
  14232. if (ret) {
  14233. pr_err("%s: Setting param failed with err=%d\n",
  14234. __func__, ret);
  14235. ret = -EINVAL;
  14236. goto done;
  14237. }
  14238. }
  14239. }
  14240. }
  14241. done:
  14242. mutex_unlock(&routing_lock);
  14243. kfree(packed_params);
  14244. return ret;
  14245. }
  14246. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14247. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14248. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14249. };
  14250. static int msm_routing_get_lsm_app_type_cfg_control(
  14251. struct snd_kcontrol *kcontrol,
  14252. struct snd_ctl_elem_value *ucontrol)
  14253. {
  14254. return 0;
  14255. }
  14256. static int msm_routing_put_lsm_app_type_cfg_control(
  14257. struct snd_kcontrol *kcontrol,
  14258. struct snd_ctl_elem_value *ucontrol)
  14259. {
  14260. int shift = ((struct soc_multi_mixer_control *)
  14261. kcontrol->private_value)->shift;
  14262. int i = 0, j;
  14263. int num_app_types = ucontrol->value.integer.value[i++];
  14264. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14265. sizeof(struct msm_pcm_routing_app_type_data));
  14266. if (num_app_types > MAX_APP_TYPES) {
  14267. pr_err("%s: number of app types exceed the max supported\n",
  14268. __func__);
  14269. return -EINVAL;
  14270. }
  14271. for (j = 0; j < num_app_types; j++) {
  14272. lsm_app_type_cfg[j].app_type =
  14273. ucontrol->value.integer.value[i++];
  14274. lsm_app_type_cfg[j].sample_rate =
  14275. ucontrol->value.integer.value[i++];
  14276. lsm_app_type_cfg[j].bit_width =
  14277. ucontrol->value.integer.value[i++];
  14278. /* Shift of 1 indicates this is V2 mixer control */
  14279. if (shift == 1)
  14280. lsm_app_type_cfg[j].num_out_channels =
  14281. ucontrol->value.integer.value[i++];
  14282. }
  14283. return 0;
  14284. }
  14285. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14286. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14287. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14288. msm_routing_put_lsm_app_type_cfg_control),
  14289. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14290. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14291. msm_routing_put_lsm_app_type_cfg_control),
  14292. };
  14293. static int msm_routing_get_use_ds1_or_ds2_control(
  14294. struct snd_kcontrol *kcontrol,
  14295. struct snd_ctl_elem_value *ucontrol)
  14296. {
  14297. ucontrol->value.integer.value[0] = is_ds2_on;
  14298. return 0;
  14299. }
  14300. static int msm_routing_put_use_ds1_or_ds2_control(
  14301. struct snd_kcontrol *kcontrol,
  14302. struct snd_ctl_elem_value *ucontrol)
  14303. {
  14304. is_ds2_on = ucontrol->value.integer.value[0];
  14305. return 0;
  14306. }
  14307. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14308. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14309. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14310. msm_routing_put_use_ds1_or_ds2_control),
  14311. };
  14312. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14313. struct snd_ctl_elem_value *ucontrol) {
  14314. int rc = 0;
  14315. int be_idx = 0;
  14316. char *param_value;
  14317. int *update_param_value;
  14318. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14319. struct param_hdr_v3 param_hdr;
  14320. param_value = kzalloc(param_size, GFP_KERNEL);
  14321. if (!param_value)
  14322. return -ENOMEM;
  14323. memset(&param_hdr, 0, sizeof(param_hdr));
  14324. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14325. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14326. break;
  14327. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14328. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14329. param_hdr.instance_id = INSTANCE_ID_0;
  14330. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14331. param_hdr.param_size = param_size;
  14332. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14333. NULL, &param_hdr, (u8 *) param_value);
  14334. if (rc) {
  14335. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14336. kfree(param_value);
  14337. return -EINVAL;
  14338. }
  14339. update_param_value = (int *)param_value;
  14340. ucontrol->value.integer.value[0] = update_param_value[0];
  14341. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14342. __func__, update_param_value[0]);
  14343. }
  14344. kfree(param_value);
  14345. return 0;
  14346. }
  14347. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14348. struct snd_ctl_elem_value *ucontrol)
  14349. {
  14350. voc_session_id = ucontrol->value.integer.value[0];
  14351. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14352. return 0;
  14353. }
  14354. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14355. struct snd_ctl_elem_value *ucontrol)
  14356. {
  14357. ucontrol->value.integer.value[0] = voc_session_id;
  14358. return 0;
  14359. }
  14360. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14361. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14362. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14363. msm_voc_session_id_put),
  14364. };
  14365. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14366. struct snd_ctl_elem_info *uinfo)
  14367. {
  14368. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14369. uinfo->count = sizeof(struct sound_focus_param);
  14370. return 0;
  14371. }
  14372. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14373. struct snd_ctl_elem_value *ucontrol)
  14374. {
  14375. int ret = 0;
  14376. struct sound_focus_param soundFocusData;
  14377. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14378. sizeof(struct sound_focus_param));
  14379. ret = voc_set_sound_focus(soundFocusData);
  14380. if (ret) {
  14381. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14382. __func__, ret);
  14383. ret = -EINVAL;
  14384. }
  14385. return ret;
  14386. }
  14387. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14388. struct snd_ctl_elem_value *ucontrol)
  14389. {
  14390. int ret = 0;
  14391. struct sound_focus_param soundFocusData;
  14392. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14393. ret = voc_get_sound_focus(&soundFocusData);
  14394. if (ret) {
  14395. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14396. __func__, ret);
  14397. ret = -EINVAL;
  14398. goto done;
  14399. }
  14400. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14401. sizeof(struct sound_focus_param));
  14402. done:
  14403. return ret;
  14404. }
  14405. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14406. struct snd_ctl_elem_info *uinfo)
  14407. {
  14408. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14409. uinfo->count = sizeof(struct source_tracking_param);
  14410. return 0;
  14411. }
  14412. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14413. struct snd_ctl_elem_value *ucontrol)
  14414. {
  14415. int ret = 0;
  14416. struct source_tracking_param sourceTrackingData;
  14417. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14418. ret = voc_get_source_tracking(&sourceTrackingData);
  14419. if (ret) {
  14420. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14421. __func__, ret);
  14422. ret = -EINVAL;
  14423. goto done;
  14424. }
  14425. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14426. sizeof(struct source_tracking_param));
  14427. done:
  14428. return ret;
  14429. }
  14430. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14431. int *copp_idx)
  14432. {
  14433. int i, idx, be_idx;
  14434. int ret = 0;
  14435. unsigned long copp;
  14436. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14437. ret = q6audio_validate_port(port_id);
  14438. if (ret < 0) {
  14439. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14440. __func__, port_id, ret);
  14441. ret = -EINVAL;
  14442. goto done;
  14443. }
  14444. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14445. if (msm_bedais[be_idx].port_id == port_id)
  14446. break;
  14447. }
  14448. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14449. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14450. ret = -EINVAL;
  14451. goto done;
  14452. }
  14453. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14454. MSM_FRONTEND_DAI_MM_SIZE) {
  14455. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14456. copp = session_copp_map[i]
  14457. [session_type][be_idx];
  14458. if (test_bit(idx, &copp))
  14459. break;
  14460. }
  14461. if (idx >= MAX_COPPS_PER_PORT)
  14462. continue;
  14463. else
  14464. break;
  14465. }
  14466. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14467. pr_err("%s: Invalid FE, exiting\n", __func__);
  14468. ret = -EINVAL;
  14469. goto done;
  14470. }
  14471. *copp_idx = idx;
  14472. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14473. done:
  14474. return ret;
  14475. }
  14476. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14477. const char *prefix, int *port_id)
  14478. {
  14479. int ret = 0;
  14480. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14481. /*
  14482. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14483. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14484. * and compare the string with the backend name to derive the port id.
  14485. */
  14486. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14487. "SLIMBUS_0")) {
  14488. *port_id = SLIMBUS_0_TX;
  14489. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14490. "TERT_MI2S")) {
  14491. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14492. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14493. "INT3_MI2S")) {
  14494. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14495. } else {
  14496. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14497. __func__, kcontrol->id.name);
  14498. ret = -EINVAL;
  14499. goto done;
  14500. }
  14501. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14502. __func__, kcontrol->id.name, *port_id);
  14503. done:
  14504. return ret;
  14505. }
  14506. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14507. struct snd_ctl_elem_value *ucontrol)
  14508. {
  14509. int ret = 0;
  14510. struct sound_focus_param soundFocusData;
  14511. int port_id, copp_idx;
  14512. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14513. "Sound Focus Audio Tx ", &port_id);
  14514. if (ret != 0) {
  14515. pr_err("%s: Error in deriving port id, err=%d\n",
  14516. __func__, ret);
  14517. ret = -EINVAL;
  14518. goto done;
  14519. }
  14520. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14521. &copp_idx);
  14522. if (ret) {
  14523. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14524. __func__, port_id);
  14525. ret = -EINVAL;
  14526. goto done;
  14527. }
  14528. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14529. sizeof(struct sound_focus_param));
  14530. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14531. if (ret) {
  14532. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14533. __func__, ret);
  14534. ret = -EINVAL;
  14535. goto done;
  14536. }
  14537. done:
  14538. return ret;
  14539. }
  14540. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14541. struct snd_ctl_elem_value *ucontrol)
  14542. {
  14543. int ret = 0;
  14544. struct sound_focus_param soundFocusData;
  14545. int port_id, copp_idx;
  14546. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14547. "Sound Focus Audio Tx ", &port_id);
  14548. if (ret) {
  14549. pr_err("%s: Error in deriving port id, err=%d\n",
  14550. __func__, ret);
  14551. ret = -EINVAL;
  14552. goto done;
  14553. }
  14554. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14555. &copp_idx);
  14556. if (ret) {
  14557. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14558. __func__, port_id);
  14559. ret = -EINVAL;
  14560. goto done;
  14561. }
  14562. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14563. if (ret) {
  14564. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14565. __func__, ret);
  14566. ret = -EINVAL;
  14567. goto done;
  14568. }
  14569. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14570. sizeof(struct sound_focus_param));
  14571. done:
  14572. return ret;
  14573. }
  14574. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14575. struct snd_ctl_elem_value *ucontrol)
  14576. {
  14577. int ret = 0;
  14578. struct source_tracking_param sourceTrackingData;
  14579. int port_id, copp_idx;
  14580. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14581. "Source Tracking Audio Tx ", &port_id);
  14582. if (ret) {
  14583. pr_err("%s: Error in deriving port id, err=%d\n",
  14584. __func__, ret);
  14585. ret = -EINVAL;
  14586. goto done;
  14587. }
  14588. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14589. &copp_idx);
  14590. if (ret) {
  14591. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14592. __func__, port_id);
  14593. ret = -EINVAL;
  14594. goto done;
  14595. }
  14596. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14597. if (ret) {
  14598. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14599. __func__, ret);
  14600. ret = -EINVAL;
  14601. goto done;
  14602. }
  14603. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14604. sizeof(struct source_tracking_param));
  14605. done:
  14606. return ret;
  14607. }
  14608. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14609. {
  14610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14612. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14613. .info = msm_sound_focus_info,
  14614. .get = msm_voice_sound_focus_get,
  14615. .put = msm_voice_sound_focus_put,
  14616. },
  14617. {
  14618. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14620. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14621. .info = msm_source_tracking_info,
  14622. .get = msm_voice_source_tracking_get,
  14623. },
  14624. {
  14625. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14627. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14628. .info = msm_sound_focus_info,
  14629. .get = msm_audio_sound_focus_get,
  14630. .put = msm_audio_sound_focus_put,
  14631. },
  14632. {
  14633. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14634. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14635. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14636. .info = msm_source_tracking_info,
  14637. .get = msm_audio_source_tracking_get,
  14638. },
  14639. {
  14640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14642. .name = "Sound Focus Voice Tx TERT_MI2S",
  14643. .info = msm_sound_focus_info,
  14644. .get = msm_voice_sound_focus_get,
  14645. .put = msm_voice_sound_focus_put,
  14646. },
  14647. {
  14648. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14650. .name = "Source Tracking Voice Tx TERT_MI2S",
  14651. .info = msm_source_tracking_info,
  14652. .get = msm_voice_source_tracking_get,
  14653. },
  14654. {
  14655. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14657. .name = "Sound Focus Audio Tx TERT_MI2S",
  14658. .info = msm_sound_focus_info,
  14659. .get = msm_audio_sound_focus_get,
  14660. .put = msm_audio_sound_focus_put,
  14661. },
  14662. {
  14663. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14665. .name = "Source Tracking Audio Tx TERT_MI2S",
  14666. .info = msm_source_tracking_info,
  14667. .get = msm_audio_source_tracking_get,
  14668. },
  14669. {
  14670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14672. .name = "Sound Focus Voice Tx INT3_MI2S",
  14673. .info = msm_sound_focus_info,
  14674. .get = msm_voice_sound_focus_get,
  14675. .put = msm_voice_sound_focus_put,
  14676. },
  14677. {
  14678. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14680. .name = "Source Tracking Voice Tx INT3_MI2S",
  14681. .info = msm_source_tracking_info,
  14682. .get = msm_voice_source_tracking_get,
  14683. },
  14684. {
  14685. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14687. .name = "Sound Focus Audio Tx INT3_MI2S",
  14688. .info = msm_sound_focus_info,
  14689. .get = msm_audio_sound_focus_get,
  14690. .put = msm_audio_sound_focus_put,
  14691. },
  14692. {
  14693. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14695. .name = "Source Tracking Audio Tx INT3_MI2S",
  14696. .info = msm_source_tracking_info,
  14697. .get = msm_audio_source_tracking_get,
  14698. },
  14699. };
  14700. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14701. struct snd_ctl_elem_value *ucontrol)
  14702. {
  14703. int ret = 0;
  14704. int item;
  14705. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14706. pr_debug("%s item is %d\n", __func__,
  14707. ucontrol->value.enumerated.item[0]);
  14708. mutex_lock(&routing_lock);
  14709. item = ucontrol->value.enumerated.item[0];
  14710. if (item < e->items) {
  14711. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14712. __func__, e->shift_l, e->values[item]);
  14713. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14714. e->values[item] < MSM_BACKEND_DAI_MAX)
  14715. /* Enable feedback TX path */
  14716. ret = afe_spk_prot_feed_back_cfg(
  14717. msm_bedais[e->values[item]].port_id,
  14718. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14719. else {
  14720. pr_debug("%s values are out of range item %d\n",
  14721. __func__, e->values[item]);
  14722. /* Disable feedback TX path */
  14723. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14724. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14725. else
  14726. ret = -EINVAL;
  14727. }
  14728. } else {
  14729. pr_err("%s item value is out of range item\n", __func__);
  14730. ret = -EINVAL;
  14731. }
  14732. mutex_unlock(&routing_lock);
  14733. return ret;
  14734. }
  14735. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14736. struct snd_ctl_elem_value *ucontrol)
  14737. {
  14738. int ret = 0;
  14739. int item;
  14740. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14741. pr_debug("%s item is %d\n", __func__,
  14742. ucontrol->value.enumerated.item[0]);
  14743. mutex_lock(&routing_lock);
  14744. item = ucontrol->value.enumerated.item[0];
  14745. if (item < e->items) {
  14746. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14747. __func__, e->shift_l, e->values[item]);
  14748. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14749. e->values[item] < MSM_BACKEND_DAI_MAX)
  14750. /* Enable feedback TX path */
  14751. ret = afe_spk_prot_feed_back_cfg(
  14752. msm_bedais[e->values[item]].port_id,
  14753. msm_bedais[e->shift_l].port_id,
  14754. 1, 1, 1);
  14755. else {
  14756. pr_debug("%s values are out of range item %d\n",
  14757. __func__, e->values[item]);
  14758. /* Disable feedback TX path */
  14759. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14760. ret = afe_spk_prot_feed_back_cfg(0,
  14761. 0, 0, 0, 0);
  14762. else
  14763. ret = -EINVAL;
  14764. }
  14765. } else {
  14766. pr_err("%s item value is out of range item\n", __func__);
  14767. ret = -EINVAL;
  14768. }
  14769. mutex_unlock(&routing_lock);
  14770. return ret;
  14771. }
  14772. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14773. struct snd_ctl_elem_value *ucontrol)
  14774. {
  14775. pr_debug("%s\n", __func__);
  14776. return 0;
  14777. }
  14778. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14779. struct snd_ctl_elem_value *ucontrol)
  14780. {
  14781. pr_debug("%s\n", __func__);
  14782. ucontrol->value.enumerated.item[0] = 0;
  14783. return 0;
  14784. }
  14785. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14786. "ZERO", "SLIM4_TX"
  14787. };
  14788. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14789. "ZERO", "SLIM4_TX"
  14790. };
  14791. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14792. "ZERO", "WSA_CDC_DMA_TX_0"
  14793. };
  14794. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14795. "ZERO", "WSA_CDC_DMA_TX_0"
  14796. };
  14797. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14798. "ZERO", "SENARY_TX"
  14799. };
  14800. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14801. "ZERO", "INT5_MI2S_TX"
  14802. };
  14803. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14804. "ZERO", "INT5_MI2S_TX"
  14805. };
  14806. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14807. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14808. };
  14809. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14810. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14811. };
  14812. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14813. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14814. };
  14815. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14816. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14817. };
  14818. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14819. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14820. };
  14821. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14822. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14823. };
  14824. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14825. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14826. };
  14827. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14828. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14829. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14830. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14831. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14832. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14833. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14834. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14835. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14836. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14837. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14838. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14839. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14840. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14841. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14842. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14843. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14844. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14845. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14846. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14847. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14848. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14849. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14850. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14851. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14852. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14853. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14854. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14855. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14856. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14857. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14858. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14859. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14860. spkr_prot_put_vi_lch_port);
  14861. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14862. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14863. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14864. spkr_prot_put_vi_rch_port);
  14865. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14866. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14867. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14868. spkr_prot_put_vi_lch_port);
  14869. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14870. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14871. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14872. spkr_prot_put_vi_rch_port);
  14873. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14874. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14875. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14876. spkr_prot_put_vi_lch_port);
  14877. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14878. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14879. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14880. spkr_prot_put_vi_lch_port);
  14881. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14882. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14883. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14884. spkr_prot_put_vi_rch_port);
  14885. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14886. /* Frontend AIF */
  14887. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14888. * Stream name must contains substring of front-end dai name
  14889. */
  14890. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14891. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14892. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14893. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14894. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14895. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14896. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14897. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14898. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14899. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14900. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14901. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14902. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14903. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14904. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14905. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14906. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14907. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14908. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14909. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14910. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14911. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14912. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14913. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14914. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14915. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14916. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14917. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14918. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14919. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14920. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14921. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14922. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14923. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14924. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14925. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14926. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14927. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14928. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14929. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14930. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14931. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14932. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14933. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14934. 0, 0, 0, 0),
  14935. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14936. 0, 0, 0, 0),
  14937. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14938. 0, 0, 0, 0),
  14939. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14940. 0, 0, 0, 0),
  14941. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  14942. 0, 0, 0, 0),
  14943. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  14944. 0, 0, 0, 0),
  14945. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  14946. 0, 0, 0, 0),
  14947. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  14948. 0, 0, 0, 0),
  14949. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  14950. 0, 0, 0, 0),
  14951. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  14952. 0, 0, 0, 0),
  14953. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  14954. 0, 0, 0, 0),
  14955. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  14956. 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  14958. 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  14960. 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  14962. 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  14964. 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  14966. 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  14968. 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  14970. 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  14972. 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  14974. 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  14976. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  14977. 0, 0, 0, 0),
  14978. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  14979. "INT0 MI2S_RX Hostless Playback",
  14980. 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  14982. "INT4 MI2S_RX Hostless Playback",
  14983. 0, 0, 0, 0),
  14984. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  14985. "Primary MI2S_RX Hostless Playback",
  14986. 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  14988. "Secondary MI2S_RX Hostless Playback",
  14989. 0, 0, 0, 0),
  14990. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  14991. "Tertiary MI2S_RX Hostless Playback",
  14992. 0, 0, 0, 0),
  14993. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  14994. "Quaternary MI2S_RX Hostless Playback",
  14995. 0, 0, 0, 0),
  14996. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  14997. "Quinary MI2S_RX Hostless Playback",
  14998. 0, 0, 0, 0),
  14999. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15000. 0, 0, 0, 0),
  15001. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15002. 0, 0, 0, 0),
  15003. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15004. 0, 0, 0, 0),
  15005. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15006. 0, 0, 0, 0),
  15007. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15008. 0, 0, 0, 0),
  15009. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15010. "INT3 MI2S_TX Hostless Capture",
  15011. 0, 0, 0, 0),
  15012. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15013. "Tertiary MI2S_TX Hostless Capture",
  15014. 0, 0, 0, 0),
  15015. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15016. "Secondary MI2S_TX Hostless Capture",
  15017. 0, 0, 0, 0),
  15018. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15019. "Primary MI2S_TX Hostless Capture",
  15020. 0, 0, 0, 0),
  15021. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15022. 0, 0, 0, 0),
  15023. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15024. 0, 0, 0, 0),
  15025. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15026. "Quaternary MI2S_TX Hostless Capture",
  15027. 0, 0, 0, 0),
  15028. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15029. "Quinary MI2S_TX Hostless Capture",
  15030. 0, 0, 0, 0),
  15031. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15032. "Primary TDM0 Hostless Playback",
  15033. 0, 0, 0, 0),
  15034. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15035. "Primary TDM0 Hostless Capture",
  15036. 0, 0, 0, 0),
  15037. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15038. "Primary TDM1 Hostless Playback",
  15039. 0, 0, 0, 0),
  15040. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15041. "Primary TDM1 Hostless Capture",
  15042. 0, 0, 0, 0),
  15043. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15044. "Primary TDM2 Hostless Playback",
  15045. 0, 0, 0, 0),
  15046. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15047. "Primary TDM2 Hostless Capture",
  15048. 0, 0, 0, 0),
  15049. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15050. "Primary TDM3 Hostless Playback",
  15051. 0, 0, 0, 0),
  15052. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15053. "Primary TDM3 Hostless Capture",
  15054. 0, 0, 0, 0),
  15055. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15056. "Primary TDM4 Hostless Playback",
  15057. 0, 0, 0, 0),
  15058. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15059. "Primary TDM4 Hostless Capture",
  15060. 0, 0, 0, 0),
  15061. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15062. "Primary TDM5 Hostless Playback",
  15063. 0, 0, 0, 0),
  15064. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15065. "Primary TDM5 Hostless Capture",
  15066. 0, 0, 0, 0),
  15067. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15068. "Primary TDM6 Hostless Playback",
  15069. 0, 0, 0, 0),
  15070. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15071. "Primary TDM6 Hostless Capture",
  15072. 0, 0, 0, 0),
  15073. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15074. "Primary TDM7 Hostless Playback",
  15075. 0, 0, 0, 0),
  15076. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15077. "Primary TDM7 Hostless Capture",
  15078. 0, 0, 0, 0),
  15079. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15080. "Secondary TDM0 Hostless Playback",
  15081. 0, 0, 0, 0),
  15082. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15083. "Secondary TDM0 Hostless Capture",
  15084. 0, 0, 0, 0),
  15085. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15086. "Secondary TDM1 Hostless Playback",
  15087. 0, 0, 0, 0),
  15088. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15089. "Secondary TDM1 Hostless Capture",
  15090. 0, 0, 0, 0),
  15091. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15092. "Secondary TDM2 Hostless Playback",
  15093. 0, 0, 0, 0),
  15094. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15095. "Secondary TDM2 Hostless Capture",
  15096. 0, 0, 0, 0),
  15097. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15098. "Secondary TDM3 Hostless Playback",
  15099. 0, 0, 0, 0),
  15100. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15101. "Secondary TDM3 Hostless Capture",
  15102. 0, 0, 0, 0),
  15103. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15104. "Secondary TDM4 Hostless Playback",
  15105. 0, 0, 0, 0),
  15106. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15107. "Secondary TDM4 Hostless Capture",
  15108. 0, 0, 0, 0),
  15109. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15110. "Secondary TDM5 Hostless Playback",
  15111. 0, 0, 0, 0),
  15112. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15113. "Secondary TDM5 Hostless Capture",
  15114. 0, 0, 0, 0),
  15115. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15116. "Secondary TDM6 Hostless Playback",
  15117. 0, 0, 0, 0),
  15118. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15119. "Secondary TDM6 Hostless Capture",
  15120. 0, 0, 0, 0),
  15121. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15122. "Secondary TDM7 Hostless Playback",
  15123. 0, 0, 0, 0),
  15124. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15125. "Secondary TDM7 Hostless Capture",
  15126. 0, 0, 0, 0),
  15127. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15128. "Tertiary TDM0 Hostless Playback",
  15129. 0, 0, 0, 0),
  15130. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15131. "Tertiary TDM0 Hostless Capture",
  15132. 0, 0, 0, 0),
  15133. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15134. "Tertiary TDM1 Hostless Playback",
  15135. 0, 0, 0, 0),
  15136. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15137. "Tertiary TDM1 Hostless Capture",
  15138. 0, 0, 0, 0),
  15139. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15140. "Tertiary TDM2 Hostless Playback",
  15141. 0, 0, 0, 0),
  15142. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15143. "Tertiary TDM2 Hostless Capture",
  15144. 0, 0, 0, 0),
  15145. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15146. "Tertiary TDM3 Hostless Playback",
  15147. 0, 0, 0, 0),
  15148. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15149. "Tertiary TDM3 Hostless Capture",
  15150. 0, 0, 0, 0),
  15151. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15152. "Tertiary TDM4 Hostless Playback",
  15153. 0, 0, 0, 0),
  15154. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15155. "Tertiary TDM4 Hostless Capture",
  15156. 0, 0, 0, 0),
  15157. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15158. "Tertiary TDM5 Hostless Playback",
  15159. 0, 0, 0, 0),
  15160. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15161. "Tertiary TDM5 Hostless Capture",
  15162. 0, 0, 0, 0),
  15163. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15164. "Tertiary TDM6 Hostless Playback",
  15165. 0, 0, 0, 0),
  15166. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15167. "Tertiary TDM6 Hostless Capture",
  15168. 0, 0, 0, 0),
  15169. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15170. "Tertiary TDM7 Hostless Playback",
  15171. 0, 0, 0, 0),
  15172. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15173. "Tertiary TDM7 Hostless Capture",
  15174. 0, 0, 0, 0),
  15175. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15176. "Quaternary TDM0 Hostless Playback",
  15177. 0, 0, 0, 0),
  15178. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15179. "Quaternary TDM0 Hostless Capture",
  15180. 0, 0, 0, 0),
  15181. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15182. "Quaternary TDM1 Hostless Playback",
  15183. 0, 0, 0, 0),
  15184. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15185. "Quaternary TDM1 Hostless Capture",
  15186. 0, 0, 0, 0),
  15187. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15188. "Quaternary TDM2 Hostless Playback",
  15189. 0, 0, 0, 0),
  15190. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15191. "Quaternary TDM2 Hostless Capture",
  15192. 0, 0, 0, 0),
  15193. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15194. "Quaternary TDM3 Hostless Playback",
  15195. 0, 0, 0, 0),
  15196. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15197. "Quaternary TDM3 Hostless Capture",
  15198. 0, 0, 0, 0),
  15199. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15200. "Quaternary TDM4 Hostless Playback",
  15201. 0, 0, 0, 0),
  15202. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15203. "Quaternary TDM4 Hostless Capture",
  15204. 0, 0, 0, 0),
  15205. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15206. "Quaternary TDM5 Hostless Playback",
  15207. 0, 0, 0, 0),
  15208. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15209. "Quaternary TDM5 Hostless Capture",
  15210. 0, 0, 0, 0),
  15211. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15212. "Quaternary TDM6 Hostless Playback",
  15213. 0, 0, 0, 0),
  15214. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15215. "Quaternary TDM6 Hostless Capture",
  15216. 0, 0, 0, 0),
  15217. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15218. "Quaternary TDM7 Hostless Playback",
  15219. 0, 0, 0, 0),
  15220. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15221. "Quaternary TDM7 Hostless Capture",
  15222. 0, 0, 0, 0),
  15223. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15224. "Quinary TDM0 Hostless Playback",
  15225. 0, 0, 0, 0),
  15226. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15227. "Quinary TDM0 Hostless Capture",
  15228. 0, 0, 0, 0),
  15229. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15230. "Quinary TDM1 Hostless Playback",
  15231. 0, 0, 0, 0),
  15232. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15233. "Quinary TDM1 Hostless Capture",
  15234. 0, 0, 0, 0),
  15235. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15236. "Quinary TDM2 Hostless Playback",
  15237. 0, 0, 0, 0),
  15238. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15239. "Quinary TDM2 Hostless Capture",
  15240. 0, 0, 0, 0),
  15241. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15242. "Quinary TDM3 Hostless Playback",
  15243. 0, 0, 0, 0),
  15244. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15245. "Quinary TDM3 Hostless Capture",
  15246. 0, 0, 0, 0),
  15247. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15248. "Quinary TDM4 Hostless Playback",
  15249. 0, 0, 0, 0),
  15250. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15251. "Quinary TDM4 Hostless Capture",
  15252. 0, 0, 0, 0),
  15253. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15254. "Quinary TDM5 Hostless Playback",
  15255. 0, 0, 0, 0),
  15256. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15257. "Quinary TDM5 Hostless Capture",
  15258. 0, 0, 0, 0),
  15259. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15260. "Quinary TDM6 Hostless Playback",
  15261. 0, 0, 0, 0),
  15262. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15263. "Quinary TDM6 Hostless Capture",
  15264. 0, 0, 0, 0),
  15265. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15266. "Quinary TDM7 Hostless Playback",
  15267. 0, 0, 0, 0),
  15268. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15269. "Quinary TDM7 Hostless Capture",
  15270. 0, 0, 0, 0),
  15271. /* LSM */
  15272. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15273. 0, 0, 0, 0),
  15274. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15275. 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15277. 0, 0, 0, 0),
  15278. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15279. 0, 0, 0, 0),
  15280. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15281. 0, 0, 0, 0),
  15282. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15283. 0, 0, 0, 0),
  15284. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15285. 0, 0, 0, 0),
  15286. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15287. 0, 0, 0, 0),
  15288. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15289. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15290. /* Backend AIF */
  15291. /* Stream name equals to backend dai link stream name */
  15292. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15293. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15294. 0, 0, 0, 0),
  15295. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15296. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15297. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15298. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15299. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15300. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15301. 0, 0, 0, 0),
  15302. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15303. 0, 0, 0, 0),
  15304. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15305. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15306. 0, 0, 0, 0),
  15307. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15308. 0, 0, 0, 0),
  15309. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15310. 0, 0, 0, 0),
  15311. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15312. "Secondary MI2S Playback SD1",
  15313. 0, 0, 0, 0),
  15314. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15317. 0, 0, 0, 0),
  15318. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15319. 0, 0, 0, 0),
  15320. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15321. 0, 0, 0, 0),
  15322. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15323. 0, 0, 0, 0),
  15324. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15325. 0, 0, 0, 0),
  15326. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15327. 0, 0, 0, 0),
  15328. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15329. 0, 0, 0, 0),
  15330. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15331. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15332. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15333. 0, 0, 0, 0),
  15334. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15335. 0, 0, 0, 0),
  15336. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15337. 0, 0, 0, 0),
  15338. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15339. 0, 0, 0, 0),
  15340. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15341. 0, 0, 0, 0),
  15342. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15343. 0, 0, 0, 0),
  15344. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15345. 0, 0, 0, 0),
  15346. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15348. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15349. 0, 0, 0, 0),
  15350. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15351. 0, 0, 0, 0),
  15352. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15353. 0, 0, 0, 0),
  15354. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15355. 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15357. 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15359. 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15361. 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15363. 0, 0, 0, 0),
  15364. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15365. 0, 0, 0, 0),
  15366. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15367. 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15369. 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15371. 0, 0, 0, 0),
  15372. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15375. 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15377. 0, 0, 0, 0),
  15378. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15379. 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15383. 0, 0, 0, 0),
  15384. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15385. 0, 0, 0, 0),
  15386. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15387. 0, 0, 0, 0),
  15388. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15389. 0, 0, 0, 0),
  15390. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15391. 0, 0, 0, 0),
  15392. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15393. 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15395. 0, 0, 0, 0),
  15396. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15397. 0, 0, 0, 0),
  15398. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15399. 0, 0, 0, 0),
  15400. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15401. 0, 0, 0, 0),
  15402. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15403. 0, 0, 0, 0),
  15404. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15405. 0, 0, 0, 0),
  15406. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15407. 0, 0, 0, 0),
  15408. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15409. 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15411. 0, 0, 0, 0),
  15412. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15413. 0, 0, 0, 0),
  15414. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15415. 0, 0, 0, 0),
  15416. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15417. 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15419. 0, 0, 0, 0),
  15420. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15421. 0, 0, 0, 0),
  15422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15423. 0, 0, 0, 0),
  15424. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15425. 0, 0, 0, 0),
  15426. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15427. 0, 0, 0, 0),
  15428. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15429. 0, 0, 0, 0),
  15430. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15431. 0, 0, 0, 0),
  15432. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15433. 0, 0, 0, 0),
  15434. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15435. 0, 0, 0, 0),
  15436. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15437. 0, 0, 0, 0),
  15438. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15439. 0, 0, 0, 0),
  15440. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15441. 0, 0, 0, 0),
  15442. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15443. 0, 0, 0, 0),
  15444. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15445. 0, 0, 0, 0),
  15446. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15447. 0, 0, 0, 0),
  15448. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15449. 0, 0, 0, 0),
  15450. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15451. 0, 0, 0, 0),
  15452. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15453. 0, 0, 0, 0),
  15454. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15455. 0, 0, 0, 0),
  15456. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15457. 0, 0, 0, 0),
  15458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15459. 0, 0, 0, 0),
  15460. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15461. 0, 0, 0, 0),
  15462. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15463. 0, 0, 0, 0),
  15464. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15465. 0, 0, 0, 0),
  15466. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15467. 0, 0, 0, 0),
  15468. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15469. 0, 0, 0, 0),
  15470. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15471. 0, 0, 0, 0),
  15472. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15473. 0, 0, 0, 0),
  15474. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15475. 0, 0, 0, 0),
  15476. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15477. 0, 0, 0, 0),
  15478. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15479. 0, 0, 0, 0),
  15480. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15481. 0, 0, 0, 0),
  15482. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15483. 0, 0, 0, 0),
  15484. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15485. 0, 0, 0, 0),
  15486. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15491. 0, 0, 0, 0),
  15492. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15497. 0, 0, 0, 0),
  15498. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15503. 0, 0, 0, 0),
  15504. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15505. 0, 0, 0, 0),
  15506. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15507. 0, 0, 0, 0),
  15508. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15509. 0, 0, 0, 0),
  15510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15511. 0, 0, 0, 0),
  15512. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15513. 0, 0, 0, 0),
  15514. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15515. 0, 0, 0, 0),
  15516. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15517. 0, 0, 0, 0),
  15518. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15519. 0, 0, 0, 0),
  15520. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15521. 0, 0, 0, 0),
  15522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15523. 0, 0, 0, 0),
  15524. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15525. 0, 0, 0, 0),
  15526. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15527. 0, 0, 0, 0),
  15528. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15529. 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15531. 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15533. 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15537. 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15539. 0, 0, 0, 0),
  15540. /* incall */
  15541. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15542. 0, 0, 0, 0),
  15543. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15544. 0, 0, 0, 0),
  15545. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15546. 0, 0, 0, 0),
  15547. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15548. 0, 0, 0, 0),
  15549. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15550. 0, 0, 0, 0),
  15551. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15552. 0, 0, 0, 0),
  15553. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15554. 0, 0, 0, 0),
  15555. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15556. 0, 0, 0, 0),
  15557. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15558. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15559. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15561. 0, 0, 0, 0),
  15562. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15563. 0, 0, 0, 0),
  15564. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15565. 0, 0, 0, 0),
  15566. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15567. 0, 0, 0, 0),
  15568. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15569. 0, 0, 0, 0),
  15570. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15571. 0, 0, 0, 0),
  15572. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15573. 0, 0, 0, 0),
  15574. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15575. 0, 0, 0, 0),
  15576. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15577. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15578. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15579. 0, 0, 0, 0),
  15580. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15581. 0, 0, 0, 0),
  15582. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15583. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15584. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15585. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15586. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15588. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15589. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15590. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15591. /* In- call recording */
  15592. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15593. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15594. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15595. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15596. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15597. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15598. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15599. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15600. /* Switch Definitions */
  15601. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15602. &slim_fm_switch_mixer_controls),
  15603. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15604. &slim1_fm_switch_mixer_controls),
  15605. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15606. &slim3_fm_switch_mixer_controls),
  15607. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15608. &slim4_fm_switch_mixer_controls),
  15609. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15610. &slim6_fm_switch_mixer_controls),
  15611. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15612. &pcm_rx_switch_mixer_controls),
  15613. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15614. &int0_mi2s_rx_switch_mixer_controls),
  15615. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15616. &int4_mi2s_rx_switch_mixer_controls),
  15617. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15618. &pri_mi2s_rx_switch_mixer_controls),
  15619. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15620. &sec_mi2s_rx_switch_mixer_controls),
  15621. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15622. &tert_mi2s_rx_switch_mixer_controls),
  15623. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15624. &quat_mi2s_rx_switch_mixer_controls),
  15625. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15626. &quin_mi2s_rx_switch_mixer_controls),
  15627. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15628. &hfp_pri_aux_switch_mixer_controls),
  15629. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15630. &hfp_aux_switch_mixer_controls),
  15631. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15632. &hfp_int_switch_mixer_controls),
  15633. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15634. &hfp_slim7_switch_mixer_controls),
  15635. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15636. &usb_switch_mixer_controls),
  15637. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15638. &a2dp_slim7_switch_mixer_controls),
  15639. /* Mixer definitions */
  15640. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15641. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15642. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15643. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15644. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15645. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15646. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15647. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15648. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15649. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15650. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15651. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15652. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15653. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15654. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15655. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15656. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15657. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15658. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15659. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15660. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15661. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15662. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15663. quaternary_mi2s_rx_mixer_controls,
  15664. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15665. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15666. tertiary_mi2s_rx_mixer_controls,
  15667. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15668. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15669. secondary_mi2s_rx_mixer_controls,
  15670. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15671. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15672. secondary_mi2s_rx2_mixer_controls,
  15673. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15674. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15675. primary_mi2s_rx_mixer_controls,
  15676. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15677. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15678. int0_mi2s_rx_mixer_controls,
  15679. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15680. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15681. int4_mi2s_rx_mixer_controls,
  15682. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15683. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15684. quinary_mi2s_rx_mixer_controls,
  15685. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15686. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15687. pri_tdm_rx_0_mixer_controls,
  15688. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15689. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15690. pri_tdm_rx_1_mixer_controls,
  15691. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15692. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15693. pri_tdm_rx_2_mixer_controls,
  15694. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15695. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15696. pri_tdm_rx_3_mixer_controls,
  15697. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15698. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15699. pri_tdm_tx_0_mixer_controls,
  15700. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15701. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15702. sec_tdm_rx_0_mixer_controls,
  15703. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15704. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15705. sec_tdm_rx_1_mixer_controls,
  15706. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15707. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15708. sec_tdm_rx_2_mixer_controls,
  15709. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15710. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15711. sec_tdm_rx_3_mixer_controls,
  15712. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15713. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15714. sec_tdm_tx_0_mixer_controls,
  15715. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15716. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15717. tert_tdm_rx_0_mixer_controls,
  15718. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15719. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15720. tert_tdm_tx_0_mixer_controls,
  15721. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15722. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15723. tert_tdm_rx_1_mixer_controls,
  15724. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15725. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15726. tert_tdm_rx_2_mixer_controls,
  15727. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15728. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15729. tert_tdm_rx_3_mixer_controls,
  15730. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15731. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15732. tert_tdm_rx_4_mixer_controls,
  15733. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15734. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15735. quat_tdm_rx_0_mixer_controls,
  15736. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15737. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15738. quat_tdm_tx_0_mixer_controls,
  15739. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15740. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15741. quat_tdm_rx_1_mixer_controls,
  15742. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15743. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15744. quat_tdm_rx_2_mixer_controls,
  15745. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15746. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15747. quat_tdm_rx_3_mixer_controls,
  15748. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15749. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15750. quin_tdm_rx_0_mixer_controls,
  15751. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15752. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15753. quin_tdm_tx_0_mixer_controls,
  15754. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15755. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15756. quin_tdm_rx_1_mixer_controls,
  15757. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15758. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15759. quin_tdm_rx_2_mixer_controls,
  15760. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15761. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15762. quin_tdm_rx_3_mixer_controls,
  15763. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15764. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15765. wsa_cdc_dma_rx_0_mixer_controls,
  15766. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15767. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15768. wsa_cdc_dma_rx_1_mixer_controls,
  15769. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15770. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15771. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15772. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15773. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15774. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15775. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15776. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15777. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15778. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15779. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15780. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15781. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15782. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15783. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15784. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15785. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15786. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15787. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15788. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15789. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15790. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15791. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15792. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15793. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15794. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15795. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15796. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15797. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15798. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15799. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15800. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15801. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15802. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15803. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15805. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15806. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15807. tert_auxpcm_rx_mixer_controls,
  15808. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15809. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15810. quat_auxpcm_rx_mixer_controls,
  15811. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15812. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15813. quin_auxpcm_rx_mixer_controls,
  15814. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15815. /* incall */
  15816. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15817. incall_music_delivery_mixer_controls,
  15818. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15819. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15820. incall_music2_delivery_mixer_controls,
  15821. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15822. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15823. slimbus_4_rx_mixer_controls,
  15824. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15825. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15826. slimbus_6_rx_mixer_controls,
  15827. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15829. usb_audio_rx_mixer_controls,
  15830. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15831. /* Voice Mixer */
  15832. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15833. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15834. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15835. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15836. SND_SOC_NOPM, 0, 0,
  15837. sec_i2s_rx_voice_mixer_controls,
  15838. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15839. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15840. SND_SOC_NOPM, 0, 0,
  15841. sec_mi2s_rx_voice_mixer_controls,
  15842. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15843. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15844. SND_SOC_NOPM, 0, 0,
  15845. slimbus_rx_voice_mixer_controls,
  15846. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15847. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15848. SND_SOC_NOPM, 0, 0,
  15849. bt_sco_rx_voice_mixer_controls,
  15850. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15851. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15852. SND_SOC_NOPM, 0, 0,
  15853. afe_pcm_rx_voice_mixer_controls,
  15854. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15855. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15856. SND_SOC_NOPM, 0, 0,
  15857. aux_pcm_rx_voice_mixer_controls,
  15858. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15859. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15860. SND_SOC_NOPM, 0, 0,
  15861. sec_aux_pcm_rx_voice_mixer_controls,
  15862. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15863. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15864. SND_SOC_NOPM, 0, 0,
  15865. tert_aux_pcm_rx_voice_mixer_controls,
  15866. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15868. SND_SOC_NOPM, 0, 0,
  15869. quat_aux_pcm_rx_voice_mixer_controls,
  15870. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15871. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15872. SND_SOC_NOPM, 0, 0,
  15873. quin_aux_pcm_rx_voice_mixer_controls,
  15874. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15875. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15876. SND_SOC_NOPM, 0, 0,
  15877. hdmi_rx_voice_mixer_controls,
  15878. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15879. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15880. SND_SOC_NOPM, 0, 0,
  15881. mi2s_rx_voice_mixer_controls,
  15882. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15883. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15884. SND_SOC_NOPM, 0, 0,
  15885. pri_mi2s_rx_voice_mixer_controls,
  15886. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15887. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15888. SND_SOC_NOPM, 0, 0,
  15889. int0_mi2s_rx_voice_mixer_controls,
  15890. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15891. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15892. SND_SOC_NOPM, 0, 0,
  15893. int4_mi2s_rx_voice_mixer_controls,
  15894. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15895. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15896. SND_SOC_NOPM, 0, 0,
  15897. tert_mi2s_rx_voice_mixer_controls,
  15898. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15899. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15900. SND_SOC_NOPM, 0, 0,
  15901. quat_mi2s_rx_voice_mixer_controls,
  15902. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15903. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15904. SND_SOC_NOPM, 0, 0,
  15905. quin_mi2s_rx_voice_mixer_controls,
  15906. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15907. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15908. SND_SOC_NOPM, 0, 0,
  15909. quat_tdm_rx_2_voice_mixer_controls,
  15910. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15911. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15912. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15913. ARRAY_SIZE(tx_voip_mixer_controls)),
  15914. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15915. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15916. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15917. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15918. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15919. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15920. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15921. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15922. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15923. int_bt_a2dp_rx_mixer_controls,
  15924. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15925. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15926. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15927. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15928. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15929. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15930. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15931. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15932. tx_voice2_stub_mixer_controls,
  15933. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15934. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15935. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15936. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15937. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15938. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15939. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15940. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15941. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  15942. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  15943. SND_SOC_NOPM, 0, 0,
  15944. slimbus_6_rx_voice_mixer_controls,
  15945. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  15946. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15947. slimbus_7_rx_voice_mixer_controls,
  15948. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  15949. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15950. slimbus_8_rx_voice_mixer_controls,
  15951. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  15952. /* port mixer */
  15953. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  15954. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  15955. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  15956. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  15957. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  15958. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  15959. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  15960. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  15961. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  15962. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  15963. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  15964. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  15965. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  15966. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  15967. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  15968. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  15969. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  15970. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  15971. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15972. sbus_1_rx_port_mixer_controls,
  15973. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  15974. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15975. bt_sco_rx_port_mixer_controls,
  15976. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  15977. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  15978. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  15979. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  15980. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  15981. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  15982. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  15983. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  15984. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  15985. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  15986. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port1 Mixer",
  15987. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  15988. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  15989. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  15990. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  15991. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  15992. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  15993. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  15994. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  15995. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  15996. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  15997. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  15998. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  15999. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16000. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16001. primary_mi2s_rx_port_mixer_controls,
  16002. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16003. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16004. sec_mi2s_rx_port_mixer_controls,
  16005. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16006. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16007. tert_mi2s_rx_port_mixer_controls,
  16008. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16009. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16010. quat_mi2s_rx_port_mixer_controls,
  16011. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16012. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16013. quin_mi2s_rx_port_mixer_controls,
  16014. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16015. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16016. pri_tdm_rx_0_port_mixer_controls,
  16017. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16018. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16019. pri_tdm_rx_1_port_mixer_controls,
  16020. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16021. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16022. pri_tdm_rx_2_port_mixer_controls,
  16023. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16024. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16025. pri_tdm_rx_3_port_mixer_controls,
  16026. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16027. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16028. sec_tdm_rx_0_port_mixer_controls,
  16029. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16030. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16031. sec_tdm_rx_1_port_mixer_controls,
  16032. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16033. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16034. sec_tdm_rx_2_port_mixer_controls,
  16035. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16036. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16037. sec_tdm_rx_3_port_mixer_controls,
  16038. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16039. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16040. tert_tdm_rx_0_port_mixer_controls,
  16041. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16042. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16043. tert_tdm_rx_1_port_mixer_controls,
  16044. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16045. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16046. tert_tdm_rx_2_port_mixer_controls,
  16047. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16048. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16049. tert_tdm_rx_3_port_mixer_controls,
  16050. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16051. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16052. quat_tdm_rx_0_port_mixer_controls,
  16053. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16054. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16055. quat_tdm_rx_1_port_mixer_controls,
  16056. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16057. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16058. quat_tdm_rx_2_port_mixer_controls,
  16059. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16060. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16061. quat_tdm_rx_3_port_mixer_controls,
  16062. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16063. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16064. quin_tdm_rx_0_port_mixer_controls,
  16065. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16066. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16067. quin_tdm_rx_1_port_mixer_controls,
  16068. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16069. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16070. quin_tdm_rx_2_port_mixer_controls,
  16071. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16072. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16073. quin_tdm_rx_3_port_mixer_controls,
  16074. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16075. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16076. int0_mi2s_rx_port_mixer_controls,
  16077. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16078. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16079. int4_mi2s_rx_port_mixer_controls,
  16080. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16081. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16082. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16083. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16084. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16085. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16086. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16087. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16088. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16089. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16090. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16091. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16092. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16093. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16094. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16095. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16096. /* lsm mixer definitions */
  16097. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16098. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16099. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16100. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16101. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16102. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16103. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16104. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16105. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16106. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16107. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16108. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16110. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16111. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16112. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16113. /* Virtual Pins to force backends ON atm */
  16114. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16115. SND_SOC_DAPM_INPUT("BE_IN"),
  16116. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16117. &slim0_rx_vi_fb_lch_mux),
  16118. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16119. &slim0_rx_vi_fb_rch_mux),
  16120. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16121. &wsa_rx_0_vi_fb_lch_mux),
  16122. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16123. &wsa_rx_0_vi_fb_rch_mux),
  16124. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16125. &mi2s_rx_vi_fb_mux),
  16126. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16127. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16128. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16129. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16130. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16131. &voc_ext_ec_mux),
  16132. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16133. &ext_ec_ref_mux_ul1),
  16134. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16135. &ext_ec_ref_mux_ul2),
  16136. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16137. &ext_ec_ref_mux_ul3),
  16138. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16139. &ext_ec_ref_mux_ul4),
  16140. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16141. &ext_ec_ref_mux_ul5),
  16142. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16143. &ext_ec_ref_mux_ul6),
  16144. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16145. &ext_ec_ref_mux_ul8),
  16146. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16147. &ext_ec_ref_mux_ul9),
  16148. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16149. &ext_ec_ref_mux_ul10),
  16150. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16151. &ext_ec_ref_mux_ul16),
  16152. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16153. &ext_ec_ref_mux_ul17),
  16154. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16155. &ext_ec_ref_mux_ul18),
  16156. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16157. &ext_ec_ref_mux_ul19),
  16158. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16159. &ext_ec_ref_mux_ul28),
  16160. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16161. &ext_ec_ref_mux_ul29),
  16162. };
  16163. static const struct snd_soc_dapm_route intercon[] = {
  16164. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16165. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16166. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16167. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16168. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16169. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16170. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16171. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16172. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16173. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16174. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16175. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16176. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16177. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16178. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16179. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16180. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16181. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16182. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16183. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16184. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16185. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16186. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16187. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16188. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16189. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16190. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16191. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16192. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16193. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16194. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16195. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16196. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16197. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16198. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16199. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16200. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16201. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16202. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16203. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16204. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16205. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16206. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16207. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16208. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16209. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16210. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16211. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16212. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16213. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16214. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16215. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16216. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16217. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16218. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16219. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16220. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16221. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16222. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16223. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16224. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16225. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16226. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16227. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16228. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16229. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16230. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16231. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16232. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16233. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16234. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16235. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16236. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16237. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16238. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16239. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16240. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16241. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16242. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16243. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16244. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16245. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16246. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16247. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16248. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16249. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16250. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16251. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16252. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16253. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16254. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16255. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16256. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16257. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16258. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16259. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16260. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16261. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16262. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16263. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16264. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16265. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16266. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16267. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16268. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16269. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16270. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16271. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16272. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16273. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16274. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16275. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16276. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16277. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16278. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16279. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16280. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16281. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16282. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16283. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16284. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16285. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16286. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16287. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16288. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16289. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16290. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16291. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16292. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16293. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16294. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16295. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16296. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16297. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16298. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16299. {"HDMI", NULL, "HDMI Mixer"},
  16300. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16301. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16302. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16303. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16304. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16305. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16306. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16307. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16308. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16309. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16310. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16311. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16312. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16313. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16314. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16315. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16316. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16317. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16318. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16319. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16320. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16321. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16322. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16323. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16324. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16325. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16326. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16327. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16328. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16329. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16330. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16331. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16332. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16333. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16334. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16335. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16336. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16337. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16338. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16339. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16340. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16341. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16342. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16343. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16344. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16345. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16346. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16347. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16348. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16349. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16350. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16351. /* incall */
  16352. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16353. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16354. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16355. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16356. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16357. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16358. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16359. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16360. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16361. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16362. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16363. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16364. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16365. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16366. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16367. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16368. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16369. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16370. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16371. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16372. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16373. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16374. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16375. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16376. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16377. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16378. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16379. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16380. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16381. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16382. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16383. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16384. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16385. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16386. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16387. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16388. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16389. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16390. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16391. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16392. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16393. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16394. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16395. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16396. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16397. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16398. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16399. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16400. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16401. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16402. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16403. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16404. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16405. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16406. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16407. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16408. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16409. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16410. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16411. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16412. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16413. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16414. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16415. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16416. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16417. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16418. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16419. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16420. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16421. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16422. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16423. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16424. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16425. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16426. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16427. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16428. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16429. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16430. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16431. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16432. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16433. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16434. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16435. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16436. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16437. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16438. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16439. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16440. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16441. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16442. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16443. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16444. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16445. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16446. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16447. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16448. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16449. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16450. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16451. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16452. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16453. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16454. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16455. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16456. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16457. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16458. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16459. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16460. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16461. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16462. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16463. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16464. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16465. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16466. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16467. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16468. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16469. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16470. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16471. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16472. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16473. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16474. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16475. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16476. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16477. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16478. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16479. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16480. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16481. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16482. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16483. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16484. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16485. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16486. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16487. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16488. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16489. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16490. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16491. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16492. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16493. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16494. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16495. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16496. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16497. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16498. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16499. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16500. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16501. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16502. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16503. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16504. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16505. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16506. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16507. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16508. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16509. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16510. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16511. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16512. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16513. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16514. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16515. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16516. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16517. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16518. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16519. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16520. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16521. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16522. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16523. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16524. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16525. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16526. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16527. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16528. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16529. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16530. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16531. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16532. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16533. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16534. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16535. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16536. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16537. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16538. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16539. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16540. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16541. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16542. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16543. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16544. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16545. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16546. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16547. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16548. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16549. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16550. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16551. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16552. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16553. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16554. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16555. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16556. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16557. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16558. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16559. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16560. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16561. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16562. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16563. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16564. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16565. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16566. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16567. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16568. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16569. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16570. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16571. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16572. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16573. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16574. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16575. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16576. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16577. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16578. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16579. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16580. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16581. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16582. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16583. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16584. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16585. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16586. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16587. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16588. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16589. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16590. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16591. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16592. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16593. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16594. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16595. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16596. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16597. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16598. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16599. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16600. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16601. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16602. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16603. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16604. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16605. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16606. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16607. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16608. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16609. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16610. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16611. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16612. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16613. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16614. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16615. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16616. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16617. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16618. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16619. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16620. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16621. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16622. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16623. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16624. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16625. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16626. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16627. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16628. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16629. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16630. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16631. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16632. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16633. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16634. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16635. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16636. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16637. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16638. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16639. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16640. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16641. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16642. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16643. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16644. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16645. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16646. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16647. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16648. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16649. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16650. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16651. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16652. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16653. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16654. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16655. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16656. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16657. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16658. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16659. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16660. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16661. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16662. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16663. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16664. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16665. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16666. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16667. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16668. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16669. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16670. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16671. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16672. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16673. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16674. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16675. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16676. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16677. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16678. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16679. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16680. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16681. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16682. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16683. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16684. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16685. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16686. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16687. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16688. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16689. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16690. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16691. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16692. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16693. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16694. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16695. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16696. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16697. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16698. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16699. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16700. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16701. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16702. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16703. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16704. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16705. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16706. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16707. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16708. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16709. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16710. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16711. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16712. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16713. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16714. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16716. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16717. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16718. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16719. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16720. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16721. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16722. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16723. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16724. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16725. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16726. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16727. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16728. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16729. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16730. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16731. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16732. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16734. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16735. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16736. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16737. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16738. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16739. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16740. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16741. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16742. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16743. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16744. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16745. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16746. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16747. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16748. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16749. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16750. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16751. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16752. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16753. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16754. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16755. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16756. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16757. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16758. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16759. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16760. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16761. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16762. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16763. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16764. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16765. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16766. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16767. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16770. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16771. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16772. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16773. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16774. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16775. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16776. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16777. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16778. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16779. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16780. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16781. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16782. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16783. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16784. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16785. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16786. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16787. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16788. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16789. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16790. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16791. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16792. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16793. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16794. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16795. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16796. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16797. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16798. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16799. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16800. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16801. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16802. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16804. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16805. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16808. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16809. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16810. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16811. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16812. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16813. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16814. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16815. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16816. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16817. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16818. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16819. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16820. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16822. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16823. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16824. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16825. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16828. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16829. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16830. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16831. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16832. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16833. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16834. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16835. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16836. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16837. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16838. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16839. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16840. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16841. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16842. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16843. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16844. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16845. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16848. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16849. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16850. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16851. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16852. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16853. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16854. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16855. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16856. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16857. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16858. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16859. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16860. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16861. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16862. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16863. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16864. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16865. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16867. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16868. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16869. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16870. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16871. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16872. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16873. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16874. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16875. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16876. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16877. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16878. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16879. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16880. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16881. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16882. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16883. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16884. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16885. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16886. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16887. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16888. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16889. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16890. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16891. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16892. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16893. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16894. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16895. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16896. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16897. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16898. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16899. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16900. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16901. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16902. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16903. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16904. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16905. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16906. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16907. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16908. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16909. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16910. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16911. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16912. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16913. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16914. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16915. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16916. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16917. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16918. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16919. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16920. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16921. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16922. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16923. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16924. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16925. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16926. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16927. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16928. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16929. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16930. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16931. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16932. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16933. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16934. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16935. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16936. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16937. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16938. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16939. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16940. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16941. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16942. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16943. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16944. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16945. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16946. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16947. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16948. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16949. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16950. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16951. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16952. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16953. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16954. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16955. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16956. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  16957. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16958. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16959. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16960. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16961. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16962. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16963. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16964. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16965. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16966. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16967. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16968. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16969. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16970. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16971. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16972. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16973. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16974. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  16975. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16976. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16977. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16978. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16979. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16980. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16981. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16982. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16983. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16984. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16985. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16986. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16987. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16988. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16989. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16990. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16991. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  16992. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16993. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16994. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16995. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16996. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16997. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16998. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16999. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17000. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17001. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17002. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17003. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17004. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17005. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17006. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17007. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17008. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17009. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17010. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17011. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17012. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17013. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17014. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17015. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17016. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17017. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17018. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17019. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17020. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17021. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17022. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17023. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17024. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17025. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17026. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17027. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17028. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17029. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17030. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17031. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17032. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17033. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17034. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17035. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17036. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17037. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17038. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17039. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17040. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17041. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17042. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17043. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17044. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17045. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17046. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17047. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17048. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17049. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17050. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17051. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17052. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17053. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17054. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17055. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17056. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17057. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17058. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17059. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17060. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17061. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17062. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17063. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17064. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17065. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17066. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17067. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17068. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17069. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17070. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17071. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17072. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17073. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17074. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17075. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17076. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17077. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17078. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17079. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17080. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17081. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17082. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17083. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17084. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17085. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17086. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17087. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17088. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17089. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17090. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17091. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17092. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17093. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17094. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17095. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17096. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17097. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17098. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17099. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17100. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17101. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17102. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17103. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17104. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17105. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17106. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17107. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17108. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17109. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17110. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17111. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17112. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17113. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17114. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17115. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17116. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17117. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17118. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17119. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17120. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17121. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17122. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17123. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17124. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17125. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17126. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17127. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17128. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17129. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17130. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17131. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17132. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17133. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17134. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17135. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17136. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17137. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17138. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17139. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17140. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17141. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17142. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17143. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17144. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17145. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17146. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17147. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17148. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17149. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17150. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17151. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17152. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17153. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17154. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17155. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17156. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17157. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17158. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17159. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17160. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17161. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17162. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17163. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17164. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17165. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17166. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17167. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17168. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17169. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17170. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17171. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17172. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17173. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17174. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17175. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17176. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17177. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17178. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17179. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17180. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17181. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17182. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17183. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17184. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17185. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17186. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17187. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17188. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17189. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17190. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17191. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17192. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17193. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17194. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17195. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17196. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17197. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17198. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17199. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17200. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17201. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17202. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17203. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17204. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17205. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17206. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17207. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17208. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17209. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17210. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17211. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17212. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17213. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17214. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17215. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17216. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17217. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17218. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17219. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17220. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17221. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17222. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17223. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17224. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17225. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17226. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17227. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17228. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17229. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17230. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17231. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17232. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17233. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17234. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17235. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17236. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17237. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17238. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17239. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17240. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17241. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17242. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17243. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17244. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17245. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17246. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17247. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17248. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17249. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17250. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17251. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17252. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17253. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17254. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17255. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17256. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17257. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17258. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17259. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17260. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17261. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17262. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17263. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17264. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17265. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17266. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17267. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17268. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17269. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17270. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17271. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17272. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17273. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17274. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17275. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17276. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17277. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17278. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17279. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17280. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17281. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17282. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17283. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17284. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17285. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17286. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17287. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17288. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17289. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17290. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17291. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17292. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17293. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17294. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17295. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17296. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17297. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17298. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17299. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17300. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17301. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17302. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17303. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17304. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17305. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17306. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17307. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17308. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17309. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17310. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17311. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17312. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17313. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17314. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17315. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17316. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17317. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17318. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17319. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17320. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17321. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17322. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17323. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17324. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17325. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17326. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17327. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17328. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17329. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17330. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17331. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17332. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17333. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17334. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17335. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17336. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17337. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17338. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17339. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17340. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17341. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17342. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17343. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17344. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17345. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17346. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17347. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17348. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17349. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17350. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17351. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17352. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17353. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17354. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17355. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17356. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17357. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17358. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17359. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17360. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17361. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17362. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17363. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17364. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17365. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17366. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17367. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17368. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17369. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17370. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17371. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17372. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17373. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17374. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17375. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17376. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17377. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17378. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17379. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17380. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17381. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17382. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17383. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17384. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17385. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17386. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17387. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17388. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17391. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17392. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17393. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17394. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17395. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17396. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17397. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17398. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17399. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17400. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17401. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17402. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17403. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17404. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17405. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17406. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17409. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17410. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17411. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17412. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17413. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17414. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17415. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17416. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17417. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17418. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17419. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17420. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17421. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17422. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17423. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17424. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17426. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17427. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17428. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17429. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17430. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17431. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17432. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17433. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17434. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17435. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17436. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17437. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17438. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17439. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17440. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17441. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17442. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17443. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17444. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17445. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17446. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17447. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17448. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17449. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17450. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17451. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17452. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17453. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17454. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17455. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17456. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17457. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17458. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17459. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17460. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17461. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17462. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17463. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17464. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17465. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17466. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17467. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17468. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17469. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17470. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17471. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17472. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17473. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17474. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17475. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17476. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17477. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17478. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17479. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17480. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17481. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17482. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17483. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17484. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17485. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17486. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17487. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17488. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17489. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17490. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17491. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17492. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17493. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17494. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17495. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17496. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17497. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17498. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17499. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17500. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17501. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17502. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17503. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17504. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17505. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17506. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17507. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17508. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17509. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17510. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17511. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17512. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17513. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17514. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17515. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17516. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17517. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17518. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17519. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17520. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17521. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17522. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17523. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17524. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17525. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17526. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17527. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17528. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17529. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17530. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17537. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17538. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17539. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17540. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17541. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17542. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17543. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17544. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17545. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17546. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17547. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17548. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17554. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17555. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17556. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17557. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17558. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17559. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17560. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17561. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17562. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17563. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17564. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17565. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17571. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17572. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17573. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17574. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17575. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17576. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17577. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17578. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17579. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17580. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17581. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17582. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17588. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17589. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17590. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17591. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17592. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17593. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17594. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17595. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17596. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17597. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17598. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17599. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17600. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17601. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17602. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17603. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17604. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17605. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17606. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17607. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17608. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17609. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17610. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17611. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17612. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17613. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17614. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17615. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17616. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17617. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17618. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17619. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17620. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17621. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17622. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17623. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17624. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17625. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17626. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17627. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17628. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17629. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17630. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17631. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17632. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17633. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17634. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17635. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17636. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17637. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17638. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17639. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17640. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17641. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17642. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17643. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17644. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17645. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17646. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17647. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17648. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17649. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17650. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17651. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17652. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17653. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17654. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17655. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17656. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17657. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17658. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17659. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17660. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17661. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17662. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17663. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17664. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17665. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17666. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17667. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17668. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17669. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17670. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17671. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17672. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17673. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17674. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17675. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17676. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17677. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17678. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17679. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17680. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17681. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17682. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17683. {"HDMI", NULL, "HDMI_DL_HL"},
  17684. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17685. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17686. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17687. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17688. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17689. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17690. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17691. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17692. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17693. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17694. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17695. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17696. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17697. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17698. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17699. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17700. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17701. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17702. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17703. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17704. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17705. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17706. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17707. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17708. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17709. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17710. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17711. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17712. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17713. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17714. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17715. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17716. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17717. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17718. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17719. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17720. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17721. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17722. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17723. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17724. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17725. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17726. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17727. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17728. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17729. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17730. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17731. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17732. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17733. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17734. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17735. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17736. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17737. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17738. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17739. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17740. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17741. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17742. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17743. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17744. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17745. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17746. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17747. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17748. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17749. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17750. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17751. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17752. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17753. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17754. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17755. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17756. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17757. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17758. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17759. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17760. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17761. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17762. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17763. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17764. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17765. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17766. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17767. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17768. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17769. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17770. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17771. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17772. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17773. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17774. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17775. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17776. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17777. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17778. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17779. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17780. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17781. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17782. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17783. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17784. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17785. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17786. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17787. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17788. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17789. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17790. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17791. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17792. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17793. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17794. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17795. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17796. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17797. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17798. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17799. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17800. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17801. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17802. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17803. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17804. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17805. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17806. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17807. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17808. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17809. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17810. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17811. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17812. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17813. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17814. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17815. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17816. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17817. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17818. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17819. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17820. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17821. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17822. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17823. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17824. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17825. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17826. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17827. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17828. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17829. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17830. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17831. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17832. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17833. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17834. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17835. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17836. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17837. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17838. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17839. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17840. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17841. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17842. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17843. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17844. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17845. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17846. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17847. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17848. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17849. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17850. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17851. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17852. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17853. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17854. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17855. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17856. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17857. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17858. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17859. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17860. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17861. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17862. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17863. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17864. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17865. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17866. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17867. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17868. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17869. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17870. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17871. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17872. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17873. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17874. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17875. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17876. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17877. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17878. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17879. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17880. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17881. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17882. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17883. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17884. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17885. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17886. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17887. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17888. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17889. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17890. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17891. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17892. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17893. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17894. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17895. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17896. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17897. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17898. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17899. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17900. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17901. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17902. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17903. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17904. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17905. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17906. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17907. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17908. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17909. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17910. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17911. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17912. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17913. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17914. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17915. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17916. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17917. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17918. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17919. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17920. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17921. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17922. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17923. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17924. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17925. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17926. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17927. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17928. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17929. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17930. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17931. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17932. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17933. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17934. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17935. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17936. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17937. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17938. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17939. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17940. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17941. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17942. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17943. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17944. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17945. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17946. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17947. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17948. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17949. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17950. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17951. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  17952. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17953. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17954. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17955. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17956. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17957. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17958. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17959. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17960. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  17961. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17962. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17963. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17964. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17965. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17966. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17967. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17968. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17969. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  17970. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17971. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17972. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17973. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17974. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17975. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17976. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17977. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17978. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  17979. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  17980. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  17981. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  17982. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  17983. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  17984. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  17985. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  17986. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  17987. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  17988. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  17989. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  17990. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  17991. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  17992. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  17993. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  17994. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  17995. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  17996. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  17997. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  17998. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  17999. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18000. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18001. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18002. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18003. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18004. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18005. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18006. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18007. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18008. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18009. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18010. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18011. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18012. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18013. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18014. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18015. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18016. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18017. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18018. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18019. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18020. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18021. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18022. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18023. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18024. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18025. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18026. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18027. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18028. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18029. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18030. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18031. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18032. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18033. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18034. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18035. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18036. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18037. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18038. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18039. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18040. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18041. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18042. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18043. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18044. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18045. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18046. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18047. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18048. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18049. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18050. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18051. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18052. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18053. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18054. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18055. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18056. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18057. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18058. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18059. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18060. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18061. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18062. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18063. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18064. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18065. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18066. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18067. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18068. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18069. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18070. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18071. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18072. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18073. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18074. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18075. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18076. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18077. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18078. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18079. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18080. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18081. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18082. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18083. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18084. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18085. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18086. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18087. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18088. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18089. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18090. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18091. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18092. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18093. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18094. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18095. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18096. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18097. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18098. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18099. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18100. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18101. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18102. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18103. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18104. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18105. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18106. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18107. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18108. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18109. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18110. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18111. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18112. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18113. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18114. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18115. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18116. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18117. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18118. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18119. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18120. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18121. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18122. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18123. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18124. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18125. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18126. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18127. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18128. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18129. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18130. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18131. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18132. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18133. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18134. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18135. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18136. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18137. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18138. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18139. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18140. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18141. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18142. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18143. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18144. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18145. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18146. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18147. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18148. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18149. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18150. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18151. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18152. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18153. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18154. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18155. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18156. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18157. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18158. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18159. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18160. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18161. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18162. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18163. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18164. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18165. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18166. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18167. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18168. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18169. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18170. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18171. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18172. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18173. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18174. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18175. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18176. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18177. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18178. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18179. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18180. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18181. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18182. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18183. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18184. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18185. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18186. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18187. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18188. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18189. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18190. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18191. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18192. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18193. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18194. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18195. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18196. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18197. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18198. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18199. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18200. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18201. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18202. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18203. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18204. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18205. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18206. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18207. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18208. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18209. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18210. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18211. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18212. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18213. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18214. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18215. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18216. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18217. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18218. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18219. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18220. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18221. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18222. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18223. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18224. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18225. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18226. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18227. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18228. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18229. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18230. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18231. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18232. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18233. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18234. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18235. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18236. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18237. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18238. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18239. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18240. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18241. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18242. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18243. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18244. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18245. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18246. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18247. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18248. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18249. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18250. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18251. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18252. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18253. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18254. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18255. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18256. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18257. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18258. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18259. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18260. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18261. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18262. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18263. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18264. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18265. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18266. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18267. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18268. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18269. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18270. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18271. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18272. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18273. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18274. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18275. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18276. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18277. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18278. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18279. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18280. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18281. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18282. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18283. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18284. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18285. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18286. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18287. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18288. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18289. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18290. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18291. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18292. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18293. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18294. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18295. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18296. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18297. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18298. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18299. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18300. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18301. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18302. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18303. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18304. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18305. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18306. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18307. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18308. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18309. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18310. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18311. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18312. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18313. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18314. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18315. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18316. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18317. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18318. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18319. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18320. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18321. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18322. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18323. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18324. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18325. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18326. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18327. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18328. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18329. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18330. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18331. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18332. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18333. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18334. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18335. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18336. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18337. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18338. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18339. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18340. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18341. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18342. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18343. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18344. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18345. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18346. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18347. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18348. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18349. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18350. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18351. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18352. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18353. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18354. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18355. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18356. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18357. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18358. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18359. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18360. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18361. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18362. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18363. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18364. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18365. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18366. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18367. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18368. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18369. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18370. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18371. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18372. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18373. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18374. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18375. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18376. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18377. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18378. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18379. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18380. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18381. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18382. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18383. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18384. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18385. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18386. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18387. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18388. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18389. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18390. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18391. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18392. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18393. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18394. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18395. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18396. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18397. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18398. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18399. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18400. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18401. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18402. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18403. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18404. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18405. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18406. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18407. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18408. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18409. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18410. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18411. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18412. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18413. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18414. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18415. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18416. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18417. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18418. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18419. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18420. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18421. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18422. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18423. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18424. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18425. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18426. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18427. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18428. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18429. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18430. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18431. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18432. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18433. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18434. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18435. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18436. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18437. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18438. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18439. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18440. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18441. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18442. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18443. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18444. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18445. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18446. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18447. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18448. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18449. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18450. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18451. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18452. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18453. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18454. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18455. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18456. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18457. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18458. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18459. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18460. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18461. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18462. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18463. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18464. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18465. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18466. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18467. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18468. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18469. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18470. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18471. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18472. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18473. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18474. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18475. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18476. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18477. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18478. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18479. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18480. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18481. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18482. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18483. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18484. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18485. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18486. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18487. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18488. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18489. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18490. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18491. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18492. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18493. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18494. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18495. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18496. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18497. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18498. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18499. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18500. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18501. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18502. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18503. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18504. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18505. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18506. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18507. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18508. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18509. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18510. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18511. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18512. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18513. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18514. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18515. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18516. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18517. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18518. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18519. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18520. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18521. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18522. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18523. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18524. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18525. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18526. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18527. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18528. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18529. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18530. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18531. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18532. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18533. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18534. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18535. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18536. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18537. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18538. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18539. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18540. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18541. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18542. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18543. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18544. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18545. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18546. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18547. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18548. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18549. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18550. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18551. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18552. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18553. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18554. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18555. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18556. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18557. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18558. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18559. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18560. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18561. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18562. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18563. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18564. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18565. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18566. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18567. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18568. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18569. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18570. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18571. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18572. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18573. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18574. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18575. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18576. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18577. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18578. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18579. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18580. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18581. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18582. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18583. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18584. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18585. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18586. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18587. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18588. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18589. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18590. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18591. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18592. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18593. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18594. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18595. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18596. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18597. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18598. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18599. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18600. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18601. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18602. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18603. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18604. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18605. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18606. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18607. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18608. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18609. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18610. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18611. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18612. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18613. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18614. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18615. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18616. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18617. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18618. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18619. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18620. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18621. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18622. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18623. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18624. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18625. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18626. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18627. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18628. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18629. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18630. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18631. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18632. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18633. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18634. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18635. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18636. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18637. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18638. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18639. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18640. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18641. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18642. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18643. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18644. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18645. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18646. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18647. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18648. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18649. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18650. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18651. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18652. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18653. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18654. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18655. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18656. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18657. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18658. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18659. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18660. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18661. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18662. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18663. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18664. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18665. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18666. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18667. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18668. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18669. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18670. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18671. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18672. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18673. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18674. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18675. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18676. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18677. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18678. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18679. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18680. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18681. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18682. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18683. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18684. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18685. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18686. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18687. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18688. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18689. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18690. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18691. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18692. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18693. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18694. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18695. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18696. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18697. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18698. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18699. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18700. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18701. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18702. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18703. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18704. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18705. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18706. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18707. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18708. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18709. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18710. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18711. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18712. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18713. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18714. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18715. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18716. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18717. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18718. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18719. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18720. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18721. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18722. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18723. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18724. /* Backend Enablement */
  18725. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18726. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18727. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18728. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18729. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18730. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18731. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18732. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18733. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18734. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18735. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18736. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18737. {"BE_OUT", NULL, "HDMI"},
  18738. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18739. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18740. {"BE_OUT", NULL, "SPDIF_RX"},
  18741. {"BE_OUT", NULL, "MI2S_RX"},
  18742. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18743. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18744. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18745. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18746. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18747. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18748. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18749. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18750. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18751. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18752. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18753. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18754. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18755. {"BE_OUT", NULL, "INT_FM_RX"},
  18756. {"BE_OUT", NULL, "PCM_RX"},
  18757. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18758. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18759. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18760. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18761. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18762. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18763. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18764. {"BE_OUT", NULL, "INT_FM_RX"},
  18765. {"BE_OUT", NULL, "PCM_RX"},
  18766. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18767. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18768. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18769. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18770. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18771. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18772. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18773. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18774. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18775. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18776. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18777. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18778. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18779. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18780. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18781. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18782. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18783. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18784. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18785. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18786. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18787. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18788. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18789. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18790. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18791. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18792. {"PRI_I2S_TX", NULL, "BE_IN"},
  18793. {"MI2S_TX", NULL, "BE_IN"},
  18794. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18795. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18796. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18797. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18798. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18799. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18800. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18801. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18802. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18803. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18804. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18805. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18806. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18807. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18808. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18809. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18810. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18811. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18812. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18813. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18814. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18815. {"INT_FM_TX", NULL, "BE_IN"},
  18816. {"PCM_TX", NULL, "BE_IN"},
  18817. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18818. {"BE_OUT", NULL, "STUB_RX"},
  18819. {"STUB_TX", NULL, "BE_IN"},
  18820. {"STUB_1_TX", NULL, "BE_IN"},
  18821. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18822. {"AUX_PCM_TX", NULL, "BE_IN"},
  18823. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18824. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18825. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18826. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18827. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18828. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18829. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18830. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18831. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18832. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18833. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18834. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18835. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18836. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18837. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18838. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18839. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18840. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18841. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18842. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18843. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18844. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18845. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18846. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18847. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18848. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18849. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18850. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18851. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18852. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18853. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18854. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18855. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18856. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18857. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18858. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18859. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18860. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18861. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18862. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18863. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18864. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18865. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18866. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18867. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18868. };
  18869. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18870. struct snd_pcm_hw_params *params)
  18871. {
  18872. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18873. unsigned int be_id = rtd->dai_link->id;
  18874. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18875. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18876. return -EINVAL;
  18877. }
  18878. mutex_lock(&routing_lock);
  18879. msm_bedais[be_id].sample_rate = params_rate(params);
  18880. msm_bedais[be_id].channel = params_channels(params);
  18881. msm_bedais[be_id].format = params_format(params);
  18882. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18883. __func__, msm_bedais[be_id].sample_rate,
  18884. msm_bedais[be_id].format, be_id);
  18885. mutex_unlock(&routing_lock);
  18886. return 0;
  18887. }
  18888. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18889. {
  18890. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18891. unsigned int be_id = rtd->dai_link->id;
  18892. int i, session_type, path_type, topology;
  18893. struct msm_pcm_routing_bdai_data *bedai;
  18894. struct msm_pcm_routing_fdai_data *fdai;
  18895. pr_debug("%s: substream->pcm->id:%s\n",
  18896. __func__, substream->pcm->id);
  18897. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18898. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18899. return -EINVAL;
  18900. }
  18901. bedai = &msm_bedais[be_id];
  18902. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18903. 0 : 1);
  18904. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18905. path_type = ADM_PATH_PLAYBACK;
  18906. else
  18907. path_type = ADM_PATH_LIVE_REC;
  18908. mutex_lock(&routing_lock);
  18909. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18910. if (!is_mm_lsm_fe_id(i))
  18911. continue;
  18912. fdai = &fe_dai_map[i][session_type];
  18913. if (fdai->strm_id != INVALID_SESSION) {
  18914. int idx;
  18915. int port_id;
  18916. unsigned long copp =
  18917. session_copp_map[i][session_type][be_id];
  18918. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18919. if (test_bit(idx, &copp))
  18920. break;
  18921. fdai->be_srate = bedai->sample_rate;
  18922. port_id = bedai->port_id;
  18923. topology = adm_get_topology_for_port_copp_idx(port_id,
  18924. idx);
  18925. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18926. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18927. __func__, copp, i, session_type, be_id,
  18928. topology);
  18929. clear_bit(idx,
  18930. &session_copp_map[i][session_type][be_id]);
  18931. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18932. (bedai->passthr_mode[i] == LEGACY_PCM))
  18933. msm_pcm_routing_deinit_pp(bedai->port_id,
  18934. topology);
  18935. }
  18936. }
  18937. bedai->active = 0;
  18938. bedai->sample_rate = 0;
  18939. bedai->channel = 0;
  18940. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  18941. if (bedai->passthr_mode[i] != LISTEN)
  18942. bedai->passthr_mode[i] = LEGACY_PCM;
  18943. }
  18944. mutex_unlock(&routing_lock);
  18945. return 0;
  18946. }
  18947. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  18948. {
  18949. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18950. unsigned int be_id = rtd->dai_link->id;
  18951. int i, path_type, topology;
  18952. int session_type = INVALID_SESSION;
  18953. struct msm_pcm_routing_bdai_data *bedai;
  18954. u32 channels, sample_rate;
  18955. uint16_t bits_per_sample = 16, voc_path_type;
  18956. struct msm_pcm_routing_fdai_data *fdai;
  18957. u32 session_id;
  18958. struct media_format_info voc_be_media_format;
  18959. bool is_lsm;
  18960. pr_debug("%s: substream->pcm->id:%s\n",
  18961. __func__, substream->pcm->id);
  18962. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18963. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18964. return -EINVAL;
  18965. }
  18966. bedai = &msm_bedais[be_id];
  18967. mutex_lock(&routing_lock);
  18968. if (bedai->active == 1)
  18969. goto done; /* Ignore prepare if back-end already active */
  18970. /* AFE port is not active at this point. However, still
  18971. * go ahead setting active flag under the notion that
  18972. * QDSP6 is able to handle ADM starting before AFE port
  18973. * is started.
  18974. */
  18975. bedai->active = 1;
  18976. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18977. if (!(is_mm_lsm_fe_id(i) &&
  18978. route_check_fe_id_adm_support(i)))
  18979. continue;
  18980. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  18981. if (bedai->passthr_mode[i] != LEGACY_PCM)
  18982. path_type = ADM_PATH_COMPRESSED_RX;
  18983. else
  18984. path_type = ADM_PATH_PLAYBACK;
  18985. session_type = SESSION_TYPE_RX;
  18986. } else {
  18987. path_type = ADM_PATH_LIVE_REC;
  18988. session_type = SESSION_TYPE_TX;
  18989. }
  18990. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  18991. (i <= MSM_FRONTEND_DAI_LSM8);
  18992. fdai = &fe_dai_map[i][session_type];
  18993. if (fdai->strm_id != INVALID_SESSION) {
  18994. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  18995. if (session_type == SESSION_TYPE_TX &&
  18996. fdai->be_srate &&
  18997. (fdai->be_srate != bedai->sample_rate)) {
  18998. pr_debug("%s: flush strm %d diff BE rates\n",
  18999. __func__,
  19000. fdai->strm_id);
  19001. if (fdai->event_info.event_func)
  19002. fdai->event_info.event_func(
  19003. MSM_PCM_RT_EVT_BUF_RECFG,
  19004. fdai->event_info.priv_data);
  19005. fdai->be_srate = 0; /* might not need it */
  19006. }
  19007. bits_per_sample = msm_routing_get_bit_width(
  19008. bedai->format);
  19009. app_type =
  19010. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19011. if (app_type && is_lsm) {
  19012. app_type_idx =
  19013. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19014. sample_rate =
  19015. fe_dai_app_type_cfg[i][session_type][be_id]
  19016. .sample_rate;
  19017. bits_per_sample =
  19018. lsm_app_type_cfg[app_type_idx].bit_width;
  19019. } else if (app_type) {
  19020. app_type_idx =
  19021. msm_pcm_routing_get_app_type_idx(app_type);
  19022. sample_rate =
  19023. fe_dai_app_type_cfg[i][session_type]
  19024. [be_id].sample_rate;
  19025. bits_per_sample =
  19026. app_type_cfg[app_type_idx].bit_width;
  19027. } else
  19028. sample_rate = bedai->sample_rate;
  19029. /*
  19030. * check if ADM needs to be configured with different
  19031. * channel mapping than backend
  19032. */
  19033. if (!bedai->adm_override_ch)
  19034. channels = bedai->channel;
  19035. else
  19036. channels = bedai->adm_override_ch;
  19037. acdb_dev_id =
  19038. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19039. topology = msm_routing_get_adm_topology(i, session_type,
  19040. be_id);
  19041. copp_idx = adm_open(bedai->port_id, path_type,
  19042. sample_rate, channels, topology,
  19043. fdai->perf_mode, bits_per_sample,
  19044. app_type, acdb_dev_id);
  19045. if ((copp_idx < 0) ||
  19046. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19047. pr_err("%s: adm open failed\n", __func__);
  19048. mutex_unlock(&routing_lock);
  19049. return -EINVAL;
  19050. }
  19051. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19052. __func__, i, session_type, be_id);
  19053. set_bit(copp_idx,
  19054. &session_copp_map[i][session_type][be_id]);
  19055. if (msm_is_resample_needed(
  19056. sample_rate,
  19057. bedai->sample_rate))
  19058. adm_copp_mfc_cfg(
  19059. bedai->port_id, copp_idx,
  19060. bedai->sample_rate);
  19061. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19062. fdai->perf_mode,
  19063. bedai->passthr_mode[i]);
  19064. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19065. (bedai->passthr_mode[i] == LEGACY_PCM))
  19066. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19067. topology, channels);
  19068. }
  19069. }
  19070. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19071. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19072. if (session_id) {
  19073. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19074. session_id);
  19075. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19076. voc_path_type = RX_PATH;
  19077. else
  19078. voc_path_type = TX_PATH;
  19079. voc_set_route_flag(session_id, voc_path_type, 1);
  19080. memset(&voc_be_media_format, 0,
  19081. sizeof(struct media_format_info));
  19082. voc_be_media_format.port_id = bedai->port_id;
  19083. voc_be_media_format.num_channels = bedai->channel;
  19084. voc_be_media_format.sample_rate = bedai->sample_rate;
  19085. voc_be_media_format.bits_per_sample = bedai->format;
  19086. /* Defaulting this to 1 for voice call usecases */
  19087. voc_be_media_format.channel_mapping[0] = 1;
  19088. voc_set_device_config(session_id, voc_path_type,
  19089. &voc_be_media_format);
  19090. if (voc_get_route_flag(session_id, RX_PATH) &&
  19091. voc_get_route_flag(session_id, TX_PATH))
  19092. voc_enable_device(session_id);
  19093. }
  19094. }
  19095. /* Check if backend is an external ec ref port and set as needed */
  19096. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19097. memset(&voc_be_media_format, 0,
  19098. sizeof(struct media_format_info));
  19099. /* Get format info for ec ref port from msm_bedais[] */
  19100. voc_be_media_format.port_id = bedai->port_id;
  19101. voc_be_media_format.num_channels = bedai->channel;
  19102. voc_be_media_format.bits_per_sample = bedai->format;
  19103. voc_be_media_format.sample_rate = bedai->sample_rate;
  19104. /* Defaulting this to 1 for voice call usecases */
  19105. voc_be_media_format.channel_mapping[0] = 1;
  19106. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19107. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19108. __func__, voc_be_media_format.port_id,
  19109. voc_be_media_format.num_channels,
  19110. voc_be_media_format.bits_per_sample,
  19111. voc_be_media_format.sample_rate);
  19112. }
  19113. done:
  19114. mutex_unlock(&routing_lock);
  19115. return 0;
  19116. }
  19117. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19118. int fe_id)
  19119. {
  19120. int index, topo_id, be_idx;
  19121. unsigned long pp_config = 0;
  19122. bool mute_on;
  19123. int latency;
  19124. bool compr_passthr_mode = true;
  19125. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19126. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19127. pr_err("%s: Device pp params on invalid port %d\n",
  19128. __func__, port_id);
  19129. return -EINVAL;
  19130. }
  19131. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19132. if (port_id == msm_bedais[be_idx].port_id)
  19133. break;
  19134. }
  19135. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19136. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19137. return -EINVAL;
  19138. }
  19139. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19140. if (msm_bedais_pp_params[index].port_id == port_id)
  19141. break;
  19142. }
  19143. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19144. pr_err("%s: Invalid backend pp params index %d\n",
  19145. __func__, index);
  19146. return -EINVAL;
  19147. }
  19148. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19149. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19150. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19151. __func__, topo_id);
  19152. return -EINVAL;
  19153. }
  19154. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19155. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19156. compr_passthr_mode = false;
  19157. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19158. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19159. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19160. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19161. mute_on = msm_bedais_pp_params[index].mute_on;
  19162. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19163. adm_send_compressed_device_mute(port_id,
  19164. copp_idx,
  19165. mute_on);
  19166. }
  19167. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19168. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19169. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19170. &pp_config);
  19171. latency = msm_bedais_pp_params[index].latency;
  19172. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19173. adm_send_compressed_device_latency(port_id,
  19174. copp_idx,
  19175. latency);
  19176. }
  19177. return 0;
  19178. }
  19179. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19180. struct snd_ctl_elem_value *ucontrol)
  19181. {
  19182. int pp_id = ucontrol->value.integer.value[0];
  19183. int port_id = 0;
  19184. int index, be_idx, i, topo_id, idx;
  19185. bool mute;
  19186. int latency;
  19187. bool compr_passthr_mode = true;
  19188. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19189. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19190. port_id = msm_bedais[be_idx].port_id;
  19191. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19192. break;
  19193. }
  19194. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19195. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19196. return -EINVAL;
  19197. }
  19198. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19199. if (msm_bedais_pp_params[index].port_id == port_id)
  19200. break;
  19201. }
  19202. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19203. pr_err("%s: Invalid pp params backend index %d\n",
  19204. __func__, index);
  19205. return -EINVAL;
  19206. }
  19207. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19208. MSM_FRONTEND_DAI_MM_SIZE) {
  19209. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19210. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19211. compr_passthr_mode = false;
  19212. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19213. unsigned long copp =
  19214. session_copp_map[i]
  19215. [SESSION_TYPE_RX][be_idx];
  19216. if (!test_bit(idx, &copp))
  19217. continue;
  19218. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19219. idx);
  19220. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19221. continue;
  19222. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19223. __func__, port_id, copp, msm_bedais[be_idx].active,
  19224. msm_bedais[be_idx].passthr_mode[i]);
  19225. switch (pp_id) {
  19226. case ADM_PP_PARAM_MUTE_ID:
  19227. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19228. mute = ucontrol->value.integer.value[1] ? true : false;
  19229. msm_bedais_pp_params[index].mute_on = mute;
  19230. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19231. &msm_bedais_pp_params[index].pp_params_config);
  19232. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19233. adm_send_compressed_device_mute(port_id,
  19234. idx, mute);
  19235. break;
  19236. case ADM_PP_PARAM_LATENCY_ID:
  19237. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19238. msm_bedais_pp_params[index].latency =
  19239. ucontrol->value.integer.value[1];
  19240. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19241. &msm_bedais_pp_params[index].pp_params_config);
  19242. latency = msm_bedais_pp_params[index].latency =
  19243. ucontrol->value.integer.value[1];
  19244. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19245. adm_send_compressed_device_latency(port_id,
  19246. idx, latency);
  19247. break;
  19248. default:
  19249. pr_info("%s, device pp param %d not supported\n",
  19250. __func__, pp_id);
  19251. break;
  19252. }
  19253. }
  19254. }
  19255. return 0;
  19256. }
  19257. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19258. struct snd_ctl_elem_value *ucontrol)
  19259. {
  19260. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19261. return 0;
  19262. }
  19263. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19264. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19265. 0, 3, msm_routing_get_device_pp_params_mixer,
  19266. msm_routing_put_device_pp_params_mixer),
  19267. };
  19268. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19269. struct snd_ctl_elem_value *ucontrol)
  19270. {
  19271. ucontrol->value.integer.value[0] =
  19272. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19273. pr_debug("%s: status %ld\n", __func__,
  19274. ucontrol->value.integer.value[0]);
  19275. return 0;
  19276. }
  19277. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19278. struct snd_ctl_elem_value *ucontrol)
  19279. {
  19280. int32_t status = 0;
  19281. status = core_set_license(ucontrol->value.integer.value[0],
  19282. APTX_CLASSIC_DEC_LICENSE_ID);
  19283. pr_debug("%s: status %d\n", __func__, status);
  19284. return status;
  19285. }
  19286. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19287. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19288. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19289. msm_aptx_dec_license_control_put),
  19290. };
  19291. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19292. struct snd_ctl_elem_info *uinfo)
  19293. {
  19294. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19295. uinfo->count = sizeof(be_dai_name_table);
  19296. return 0;
  19297. }
  19298. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19299. unsigned int __user *bytes,
  19300. unsigned int size)
  19301. {
  19302. int i;
  19303. int ret;
  19304. if (size < sizeof(be_dai_name_table)) {
  19305. pr_err("%s: invalid size %d requested, returning\n",
  19306. __func__, size);
  19307. ret = -EINVAL;
  19308. goto done;
  19309. }
  19310. /*
  19311. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19312. * needed when adding new backends
  19313. */
  19314. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19315. be_dai_name_table[i].be_id = i;
  19316. strlcpy(be_dai_name_table[i].be_name,
  19317. msm_bedais[i].name,
  19318. LPASS_BE_NAME_MAX_LENGTH);
  19319. }
  19320. ret = copy_to_user(bytes, &be_dai_name_table,
  19321. sizeof(be_dai_name_table));
  19322. if (ret) {
  19323. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19324. ret = -EFAULT;
  19325. }
  19326. done:
  19327. return ret;
  19328. }
  19329. static const struct snd_kcontrol_new
  19330. msm_routing_be_dai_name_table_mixer_controls[] = {
  19331. {
  19332. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19333. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19334. .info = msm_routing_be_dai_name_table_info,
  19335. .name = "Backend DAI Name Table",
  19336. .tlv.c = snd_soc_bytes_tlv_callback,
  19337. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19338. .max = sizeof(be_dai_name_table),
  19339. .get = msm_routing_be_dai_name_table_tlv_get,
  19340. }
  19341. },
  19342. };
  19343. static int msm_routing_stereo_channel_reverse_control_get(
  19344. struct snd_kcontrol *kcontrol,
  19345. struct snd_ctl_elem_value *ucontrol)
  19346. {
  19347. ucontrol->value.integer.value[0] = swap_ch;
  19348. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19349. ucontrol->value.integer.value[0]);
  19350. return 0;
  19351. }
  19352. static int msm_routing_stereo_channel_reverse_control_put(
  19353. struct snd_kcontrol *kcontrol,
  19354. struct snd_ctl_elem_value *ucontrol)
  19355. {
  19356. int i, idx, be_index, port_id;
  19357. int ret = 0;
  19358. unsigned long copp;
  19359. pr_debug("%s Swap channel value:%ld\n", __func__,
  19360. ucontrol->value.integer.value[0]);
  19361. swap_ch = ucontrol->value.integer.value[0];
  19362. mutex_lock(&routing_lock);
  19363. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19364. port_id = msm_bedais[be_index].port_id;
  19365. if (!msm_bedais[be_index].active)
  19366. continue;
  19367. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19368. MSM_FRONTEND_DAI_MM_SIZE) {
  19369. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19370. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19371. if (!test_bit(idx, &copp))
  19372. continue;
  19373. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19374. __func__, port_id, idx);
  19375. ret = adm_swap_speaker_channels(
  19376. port_id, idx,
  19377. msm_bedais[be_index].sample_rate,
  19378. swap_ch);
  19379. if (ret) {
  19380. pr_err("%s:Swap_channel failed, err=%d\n",
  19381. __func__, ret);
  19382. goto done;
  19383. }
  19384. }
  19385. }
  19386. }
  19387. done:
  19388. mutex_unlock(&routing_lock);
  19389. return ret;
  19390. }
  19391. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19392. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19393. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19394. msm_routing_stereo_channel_reverse_control_put),
  19395. };
  19396. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19397. struct snd_ctl_elem_info *uinfo)
  19398. {
  19399. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19400. uinfo->count = 1;
  19401. return 0;
  19402. }
  19403. static int msm_routing_instance_id_support_put(
  19404. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19405. {
  19406. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19407. q6common_update_instance_id_support(supported);
  19408. return 0;
  19409. }
  19410. static int msm_routing_instance_id_support_get(
  19411. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19412. {
  19413. bool supported = false;
  19414. supported = q6common_is_instance_id_supported();
  19415. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19416. return 0;
  19417. }
  19418. static const struct snd_kcontrol_new
  19419. msm_routing_feature_support_mixer_controls[] = {
  19420. {
  19421. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19422. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19423. .info = msm_routing_instance_id_support_info,
  19424. .name = "Instance ID Support",
  19425. .put = msm_routing_instance_id_support_put,
  19426. .get = msm_routing_instance_id_support_get,
  19427. },
  19428. };
  19429. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19430. .hw_params = msm_pcm_routing_hw_params,
  19431. .close = msm_pcm_routing_close,
  19432. .prepare = msm_pcm_routing_prepare,
  19433. };
  19434. /* Not used but frame seems to require it */
  19435. static int msm_routing_probe(struct snd_soc_platform *platform)
  19436. {
  19437. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19438. ARRAY_SIZE(msm_qdsp6_widgets));
  19439. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19440. ARRAY_SIZE(intercon));
  19441. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19442. snd_soc_add_platform_controls(platform, lsm_controls,
  19443. ARRAY_SIZE(lsm_controls));
  19444. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19445. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19446. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19447. ARRAY_SIZE(msm_voc_session_controls));
  19448. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19449. ARRAY_SIZE(app_type_cfg_controls));
  19450. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19451. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19452. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19453. ARRAY_SIZE(module_cfg_controls));
  19454. snd_soc_add_platform_controls(platform,
  19455. stereo_to_custom_stereo_controls,
  19456. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19457. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19458. ARRAY_SIZE(ec_ref_param_controls));
  19459. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19460. ARRAY_SIZE(channel_mixer_controls));
  19461. msm_qti_pp_add_controls(platform);
  19462. msm_dts_srs_tm_add_controls(platform);
  19463. msm_dolby_dap_add_controls(platform);
  19464. snd_soc_add_platform_controls(platform,
  19465. use_ds1_or_ds2_controls,
  19466. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19467. snd_soc_add_platform_controls(platform,
  19468. device_pp_params_mixer_controls,
  19469. ARRAY_SIZE(device_pp_params_mixer_controls));
  19470. snd_soc_add_platform_controls(platform,
  19471. msm_routing_be_dai_name_table_mixer_controls,
  19472. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19473. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19474. ARRAY_SIZE(msm_source_tracking_controls));
  19475. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19476. ARRAY_SIZE(adm_channel_config_controls));
  19477. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19478. ARRAY_SIZE(aptx_dec_license_controls));
  19479. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19480. ARRAY_SIZE(stereo_channel_reverse_control));
  19481. snd_soc_add_platform_controls(
  19482. platform, msm_routing_feature_support_mixer_controls,
  19483. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19484. return 0;
  19485. }
  19486. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19487. {
  19488. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19489. }
  19490. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19491. {
  19492. msm_pcm_routing_hwdep_free(pcm);
  19493. }
  19494. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19495. .ops = &msm_routing_pcm_ops,
  19496. .probe = msm_routing_probe,
  19497. .pcm_new = msm_routing_pcm_new,
  19498. .pcm_free = msm_routing_pcm_free,
  19499. };
  19500. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19501. {
  19502. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19503. return snd_soc_register_platform(&pdev->dev,
  19504. &msm_soc_routing_platform);
  19505. }
  19506. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19507. {
  19508. snd_soc_unregister_platform(&pdev->dev);
  19509. return 0;
  19510. }
  19511. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19512. {.compatible = "qcom,msm-pcm-routing"},
  19513. {}
  19514. };
  19515. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19516. static struct platform_driver msm_routing_pcm_driver = {
  19517. .driver = {
  19518. .name = "msm-pcm-routing",
  19519. .owner = THIS_MODULE,
  19520. .of_match_table = msm_pcm_routing_dt_match,
  19521. },
  19522. .probe = msm_routing_pcm_probe,
  19523. .remove = msm_routing_pcm_remove,
  19524. };
  19525. int msm_routing_check_backend_enabled(int fedai_id)
  19526. {
  19527. int i;
  19528. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19529. /* bad ID assigned in machine driver */
  19530. pr_err("%s: bad MM ID\n", __func__);
  19531. return 0;
  19532. }
  19533. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19534. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19535. return msm_bedais[i].active;
  19536. }
  19537. return 0;
  19538. }
  19539. static int get_cal_type_index(int32_t cal_type)
  19540. {
  19541. int ret = -EINVAL;
  19542. switch (cal_type) {
  19543. case ADM_TOPOLOGY_CAL_TYPE:
  19544. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19545. break;
  19546. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19547. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19548. break;
  19549. default:
  19550. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19551. }
  19552. return ret;
  19553. }
  19554. static int msm_routing_set_cal(int32_t cal_type,
  19555. size_t data_size, void *data)
  19556. {
  19557. int ret = 0;
  19558. int cal_index;
  19559. pr_debug("%s\n", __func__);
  19560. cal_index = get_cal_type_index(cal_type);
  19561. if (cal_index < 0) {
  19562. pr_err("%s: Could not get cal index %d\n",
  19563. __func__, cal_index);
  19564. ret = -EINVAL;
  19565. goto done;
  19566. }
  19567. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19568. if (ret < 0) {
  19569. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19570. __func__, ret, cal_type);
  19571. ret = -EINVAL;
  19572. goto done;
  19573. }
  19574. done:
  19575. return ret;
  19576. }
  19577. static void msm_routing_delete_cal_data(void)
  19578. {
  19579. pr_debug("%s\n", __func__);
  19580. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19581. }
  19582. static int msm_routing_init_cal_data(void)
  19583. {
  19584. int ret = 0;
  19585. struct cal_type_info cal_type_info[] = {
  19586. {{ADM_TOPOLOGY_CAL_TYPE,
  19587. {NULL, NULL, NULL,
  19588. msm_routing_set_cal, NULL, NULL} },
  19589. {NULL, NULL, cal_utils_match_buf_num} },
  19590. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19591. {NULL, NULL, NULL,
  19592. msm_routing_set_cal, NULL, NULL} },
  19593. {NULL, NULL, cal_utils_match_buf_num} },
  19594. };
  19595. pr_debug("%s\n", __func__);
  19596. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19597. &cal_type_info[0]);
  19598. if (ret < 0) {
  19599. pr_err("%s: could not create cal type!\n",
  19600. __func__);
  19601. ret = -EINVAL;
  19602. goto err;
  19603. }
  19604. return ret;
  19605. err:
  19606. msm_routing_delete_cal_data();
  19607. return ret;
  19608. }
  19609. int __init msm_soc_routing_platform_init(void)
  19610. {
  19611. mutex_init(&routing_lock);
  19612. if (msm_routing_init_cal_data())
  19613. pr_err("%s: could not init cal data!\n", __func__);
  19614. afe_set_routing_callback(
  19615. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19616. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19617. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19618. return platform_driver_register(&msm_routing_pcm_driver);
  19619. }
  19620. void msm_soc_routing_platform_exit(void)
  19621. {
  19622. msm_routing_delete_cal_data();
  19623. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19624. mutex_destroy(&routing_lock);
  19625. platform_driver_unregister(&msm_routing_pcm_driver);
  19626. }
  19627. MODULE_DESCRIPTION("MSM routing platform driver");
  19628. MODULE_LICENSE("GPL v2");