msm-pcm-routing-v2.c 812 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. };
  576. /* Track ASM playback & capture sessions of DAI
  577. * Track LSM listen sessions
  578. */
  579. static struct msm_pcm_routing_fdai_data
  580. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  581. /* MULTIMEDIA1 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA2 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA3 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA4 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA5 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA6 */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA7*/
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA8 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA9 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA10 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA11 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA12 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA13 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA14 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA15 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA16 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA17 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA18 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA19 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA20 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA28 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA29 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* VOIP */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_RX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* AFE_TX */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* VOICE_STUB */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* DTMF_RX */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* QCHAT */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* VOLTE_STUB */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM1 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM2 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM3 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM4 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM5 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM6 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM7 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* LSM8 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICE2_STUB */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE1 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* VOICEMMODE2 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. };
  702. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  703. [MSM_BACKEND_DAI_MAX];
  704. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  705. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  706. static struct msm_pcm_stream_app_type_cfg
  707. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  708. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  709. /* The caller of this should aqcuire routing lock */
  710. void msm_pcm_routing_get_bedai_info(int be_idx,
  711. struct msm_pcm_routing_bdai_data *be_dai)
  712. {
  713. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  714. memcpy(be_dai, &msm_bedais[be_idx],
  715. sizeof(struct msm_pcm_routing_bdai_data));
  716. }
  717. /* The caller of this should aqcuire routing lock */
  718. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  719. struct msm_pcm_routing_fdai_data *fe_dai)
  720. {
  721. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  722. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  723. sizeof(struct msm_pcm_routing_fdai_data));
  724. }
  725. void msm_pcm_routing_acquire_lock(void)
  726. {
  727. mutex_lock(&routing_lock);
  728. }
  729. void msm_pcm_routing_release_lock(void)
  730. {
  731. mutex_unlock(&routing_lock);
  732. }
  733. static int msm_pcm_routing_get_app_type_idx(int app_type)
  734. {
  735. int idx;
  736. pr_debug("%s: app_type: %d\n", __func__, app_type);
  737. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  738. if (app_type_cfg[idx].app_type == app_type)
  739. return idx;
  740. }
  741. pr_info("%s: App type not available, fallback to default\n", __func__);
  742. return 0;
  743. }
  744. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  745. {
  746. int idx;
  747. pr_debug("%s: app_type: %d\n", __func__, app_type);
  748. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  749. if (lsm_app_type_cfg[idx].app_type == app_type)
  750. return idx;
  751. }
  752. pr_debug("%s: App type not available, fallback to default\n", __func__);
  753. return 0;
  754. }
  755. static bool is_mm_lsm_fe_id(int fe_id)
  756. {
  757. bool rc = true;
  758. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  759. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  760. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  761. rc = false;
  762. }
  763. return rc;
  764. }
  765. /*
  766. * msm_pcm_routing_send_chmix_cfg:
  767. * send the channel mixer command to mix the input channels
  768. * into output channels.
  769. *
  770. * @fe_id: front end id
  771. * @ip_channel_cnt: input channel count
  772. * @op_channel_cnt: output channel count
  773. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  774. * @session_type: indicates session is of type TX or RX
  775. * @stream_type: indicates either Audio or Listen stream type
  776. */
  777. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  778. int op_channel_cnt, int *ch_wght_coeff,
  779. int session_type, int stream_type)
  780. {
  781. int rc = 0, idx = 0;
  782. int be_index = 0, port_id;
  783. unsigned int session_id = 0;
  784. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  785. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  786. stream_type);
  787. if (!is_mm_lsm_fe_id(fe_id)) {
  788. /* bad ID assigned in machine driver */
  789. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  790. return -EINVAL;
  791. }
  792. if (ch_wght_coeff == NULL) {
  793. pr_err("%s: Null channel weightage coefficients passed\n",
  794. __func__);
  795. return -EINVAL;
  796. }
  797. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  798. port_id = msm_bedais[be_index].port_id;
  799. if (!msm_bedais[be_index].active ||
  800. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  801. continue;
  802. session_id = fe_dai_map[fe_id][session_type].strm_id;
  803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  804. unsigned long copp =
  805. session_copp_map[fe_id][session_type][be_index];
  806. if (!test_bit(idx, &copp))
  807. continue;
  808. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  809. session_id, ip_channel_cnt,
  810. op_channel_cnt, ch_wght_coeff,
  811. session_type, stream_type);
  812. if (rc < 0)
  813. pr_err("%s: err setting channel mix config\n",
  814. __func__);
  815. }
  816. }
  817. return 0;
  818. }
  819. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  820. int msm_pcm_routing_reg_stream_app_type_cfg(
  821. int fedai_id, int session_type, int be_id,
  822. struct msm_pcm_stream_app_type_cfg *cfg_data)
  823. {
  824. int ret = 0;
  825. if (cfg_data == NULL) {
  826. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  827. ret = -EINVAL;
  828. goto done;
  829. }
  830. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  831. __func__, fedai_id, session_type, be_id,
  832. cfg_data->app_type, cfg_data->acdb_dev_id,
  833. cfg_data->sample_rate);
  834. if (!is_mm_lsm_fe_id(fedai_id)) {
  835. pr_err("%s: Invalid machine driver ID %d\n",
  836. __func__, fedai_id);
  837. ret = -EINVAL;
  838. goto done;
  839. }
  840. if (session_type != SESSION_TYPE_RX &&
  841. session_type != SESSION_TYPE_TX) {
  842. pr_err("%s: Invalid session type %d\n",
  843. __func__, session_type);
  844. ret = -EINVAL;
  845. goto done;
  846. }
  847. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  848. pr_err("%s: Received out of bounds be_id %d\n",
  849. __func__, be_id);
  850. ret = -EINVAL;
  851. goto done;
  852. }
  853. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  854. /*
  855. * Store the BE ID of the configuration information set as the latest so
  856. * the get mixer control knows what to return.
  857. */
  858. last_be_id_configured[fedai_id][session_type] = be_id;
  859. done:
  860. return ret;
  861. }
  862. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  863. /**
  864. * msm_pcm_routing_get_stream_app_type_cfg
  865. *
  866. * Receives fedai_id, session_type, be_id, and populates app_type,
  867. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  868. * -EINVAL and does not alter passed values.
  869. *
  870. * fedai_id - Passed value, front end ID for which app type config is wanted
  871. * session_type - Passed value, session type for which app type config
  872. * is wanted
  873. * be_id - Returned value, back end device id the app type config data is for
  874. * cfg_data - Returned value, configuration data used by app type config
  875. */
  876. int msm_pcm_routing_get_stream_app_type_cfg(
  877. int fedai_id, int session_type, int *bedai_id,
  878. struct msm_pcm_stream_app_type_cfg *cfg_data)
  879. {
  880. int be_id;
  881. int ret = 0;
  882. if (bedai_id == NULL) {
  883. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  884. ret = -EINVAL;
  885. goto done;
  886. } else if (cfg_data == NULL) {
  887. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  888. ret = -EINVAL;
  889. goto done;
  890. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  891. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  892. ret = -EINVAL;
  893. goto done;
  894. } else if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  897. ret = -EINVAL;
  898. goto done;
  899. }
  900. be_id = last_be_id_configured[fedai_id][session_type];
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  903. ret = -EINVAL;
  904. goto done;
  905. }
  906. *bedai_id = be_id;
  907. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  908. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  909. __func__, fedai_id, session_type, *bedai_id,
  910. cfg_data->app_type, cfg_data->acdb_dev_id,
  911. cfg_data->sample_rate);
  912. done:
  913. return ret;
  914. }
  915. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  916. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  917. int cal_index)
  918. {
  919. struct list_head *ptr, *next;
  920. struct cal_block_data *cal_block = NULL;
  921. pr_debug("%s\n", __func__);
  922. list_for_each_safe(ptr, next,
  923. &cal_data[cal_index]->cal_blocks) {
  924. cal_block = list_entry(ptr,
  925. struct cal_block_data, list);
  926. if (cal_utils_is_cal_stale(cal_block))
  927. continue;
  928. if (((struct audio_cal_info_adm_top *)cal_block
  929. ->cal_info)->path == path) {
  930. return cal_block;
  931. }
  932. }
  933. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  934. return NULL;
  935. }
  936. static struct cal_block_data *msm_routing_find_topology(int path,
  937. int app_type,
  938. int acdb_id,
  939. int cal_index)
  940. {
  941. struct list_head *ptr, *next;
  942. struct cal_block_data *cal_block = NULL;
  943. struct audio_cal_info_adm_top *cal_info;
  944. pr_debug("%s\n", __func__);
  945. list_for_each_safe(ptr, next,
  946. &cal_data[cal_index]->cal_blocks) {
  947. cal_block = list_entry(ptr,
  948. struct cal_block_data, list);
  949. if (cal_utils_is_cal_stale(cal_block))
  950. continue;
  951. cal_info = (struct audio_cal_info_adm_top *)
  952. cal_block->cal_info;
  953. if ((cal_info->path == path) &&
  954. (cal_info->app_type == app_type) &&
  955. (cal_info->acdb_id == acdb_id)) {
  956. return cal_block;
  957. }
  958. }
  959. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  960. __func__, path, app_type, acdb_id);
  961. return msm_routing_find_topology_by_path(path, cal_index);
  962. }
  963. /*
  964. * Retrieving cal_block will mark cal_block as stale.
  965. * Hence it cannot be reused or resent unless the flag
  966. * is reset.
  967. */
  968. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  969. int be_id)
  970. {
  971. int topology = NULL_COPP_TOPOLOGY;
  972. struct cal_block_data *cal_block = NULL;
  973. int app_type = 0, acdb_dev_id = 0;
  974. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  975. __func__, fedai_id, session_type, be_id);
  976. if (cal_data == NULL)
  977. goto done;
  978. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  979. acdb_dev_id =
  980. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  981. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  982. cal_block = msm_routing_find_topology(session_type, app_type,
  983. acdb_dev_id,
  984. ADM_TOPOLOGY_CAL_TYPE_IDX);
  985. if (cal_block != NULL) {
  986. topology = ((struct audio_cal_info_adm_top *)
  987. cal_block->cal_info)->topology;
  988. cal_utils_mark_cal_used(cal_block);
  989. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  990. } else {
  991. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  992. pr_debug("%s: Check for LSM topology\n", __func__);
  993. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  994. cal_block = msm_routing_find_topology(session_type, app_type,
  995. acdb_dev_id,
  996. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  997. if (cal_block != NULL) {
  998. topology = ((struct audio_cal_info_adm_top *)
  999. cal_block->cal_info)->topology;
  1000. cal_utils_mark_cal_used(cal_block);
  1001. }
  1002. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1003. }
  1004. done:
  1005. pr_debug("%s: Using topology %d\n", __func__, topology);
  1006. return topology;
  1007. }
  1008. static uint8_t is_be_dai_extproc(int be_dai)
  1009. {
  1010. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1011. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1012. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1013. return 1;
  1014. else
  1015. return 0;
  1016. }
  1017. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1018. int path_type, int perf_mode,
  1019. uint32_t passthr_mode)
  1020. {
  1021. int i, port_type, j, num_copps = 0;
  1022. struct route_payload payload;
  1023. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1024. path_type == ADM_PATH_COMPRESSED_RX) ?
  1025. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1026. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1027. if (!is_be_dai_extproc(i) &&
  1028. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1029. (msm_bedais[i].active) &&
  1030. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1031. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1032. unsigned long copp =
  1033. session_copp_map[fedai_id][sess_type][i];
  1034. if (test_bit(j, &copp)) {
  1035. payload.port_id[num_copps] =
  1036. msm_bedais[i].port_id;
  1037. payload.copp_idx[num_copps] = j;
  1038. payload.app_type[num_copps] =
  1039. fe_dai_app_type_cfg
  1040. [fedai_id][sess_type][i]
  1041. .app_type;
  1042. payload.acdb_dev_id[num_copps] =
  1043. fe_dai_app_type_cfg
  1044. [fedai_id][sess_type][i]
  1045. .acdb_dev_id;
  1046. payload.sample_rate[num_copps] =
  1047. fe_dai_app_type_cfg
  1048. [fedai_id][sess_type][i]
  1049. .sample_rate;
  1050. num_copps++;
  1051. }
  1052. }
  1053. }
  1054. }
  1055. if (num_copps) {
  1056. payload.num_copps = num_copps;
  1057. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1058. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1059. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1060. }
  1061. }
  1062. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1063. int stream_type)
  1064. {
  1065. int i, session_type, path_type, port_type;
  1066. u32 mode = 0;
  1067. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1068. /* bad ID assigned in machine driver */
  1069. pr_err("%s: bad MM ID\n", __func__);
  1070. return;
  1071. }
  1072. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1073. session_type = SESSION_TYPE_RX;
  1074. path_type = ADM_PATH_PLAYBACK;
  1075. port_type = MSM_AFE_PORT_TYPE_RX;
  1076. } else {
  1077. session_type = SESSION_TYPE_TX;
  1078. path_type = ADM_PATH_LIVE_REC;
  1079. port_type = MSM_AFE_PORT_TYPE_TX;
  1080. }
  1081. mutex_lock(&routing_lock);
  1082. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1083. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1084. if (!is_be_dai_extproc(i) &&
  1085. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1086. (msm_bedais[i].active) &&
  1087. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1088. mode = afe_get_port_type(msm_bedais[i].port_id);
  1089. adm_connect_afe_port(mode, dspst_id,
  1090. msm_bedais[i].port_id);
  1091. break;
  1092. }
  1093. }
  1094. mutex_unlock(&routing_lock);
  1095. }
  1096. static bool route_check_fe_id_adm_support(int fe_id)
  1097. {
  1098. bool rc = true;
  1099. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1100. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1101. /* fe id is listen while port is set to afe */
  1102. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1103. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1104. __func__, fe_id, lsm_port_index);
  1105. rc = false;
  1106. }
  1107. }
  1108. return rc;
  1109. }
  1110. /*
  1111. * msm_pcm_routing_get_pp_ch_cnt:
  1112. * Read the processed channel count
  1113. *
  1114. * @fe_id: Front end ID
  1115. * @session_type: Inidicates RX or TX session type
  1116. */
  1117. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1118. {
  1119. struct msm_pcm_stream_app_type_cfg cfg_data;
  1120. int be_id = 0, app_type_idx = 0, app_type = 0;
  1121. int ret = -EINVAL;
  1122. memset(&cfg_data, 0, sizeof(cfg_data));
  1123. if (!is_mm_lsm_fe_id(fe_id)) {
  1124. pr_err("%s: bad MM ID\n", __func__);
  1125. return -EINVAL;
  1126. }
  1127. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1128. &be_id, &cfg_data);
  1129. if (ret) {
  1130. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1131. return ret;
  1132. }
  1133. app_type = cfg_data.app_type;
  1134. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1135. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1136. }
  1137. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1138. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1139. int dspst_id, int stream_type,
  1140. uint32_t passthr_mode)
  1141. {
  1142. int i, j, session_type, path_type, port_type, topology;
  1143. int num_copps = 0;
  1144. struct route_payload payload;
  1145. u32 channels, sample_rate;
  1146. u16 bit_width = 16;
  1147. bool is_lsm;
  1148. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1149. __func__, fe_id, perf_mode, dspst_id,
  1150. stream_type, passthr_mode);
  1151. if (!is_mm_lsm_fe_id(fe_id)) {
  1152. /* bad ID assigned in machine driver */
  1153. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1154. return -EINVAL;
  1155. }
  1156. if (!route_check_fe_id_adm_support(fe_id)) {
  1157. /* ignore adm open if not supported for fe_id */
  1158. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1159. return 0;
  1160. }
  1161. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1162. session_type = SESSION_TYPE_RX;
  1163. if (passthr_mode != LEGACY_PCM)
  1164. path_type = ADM_PATH_COMPRESSED_RX;
  1165. else
  1166. path_type = ADM_PATH_PLAYBACK;
  1167. port_type = MSM_AFE_PORT_TYPE_RX;
  1168. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1169. session_type = SESSION_TYPE_TX;
  1170. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1171. path_type = ADM_PATH_COMPRESSED_TX;
  1172. else
  1173. path_type = ADM_PATH_LIVE_REC;
  1174. port_type = MSM_AFE_PORT_TYPE_TX;
  1175. } else {
  1176. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1177. return -EINVAL;
  1178. }
  1179. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1180. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1181. mutex_lock(&routing_lock);
  1182. payload.num_copps = 0; /* only RX needs to use payload */
  1183. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1184. /* re-enable EQ if active */
  1185. msm_qti_pp_send_eq_values(fe_id);
  1186. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1187. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1188. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1189. if (!is_be_dai_extproc(i) &&
  1190. (afe_get_port_type(msm_bedais[i].port_id) ==
  1191. port_type) &&
  1192. (msm_bedais[i].active) &&
  1193. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1194. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1195. /*
  1196. * check if ADM needs to be configured with different
  1197. * channel mapping than backend
  1198. */
  1199. if (!msm_bedais[i].adm_override_ch)
  1200. channels = msm_bedais[i].channel;
  1201. else
  1202. channels = msm_bedais[i].adm_override_ch;
  1203. bit_width = msm_routing_get_bit_width(
  1204. msm_bedais[i].format);
  1205. app_type =
  1206. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1207. if (app_type && is_lsm) {
  1208. app_type_idx =
  1209. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1210. sample_rate =
  1211. fe_dai_app_type_cfg[fe_id][session_type][i]
  1212. .sample_rate;
  1213. bit_width =
  1214. lsm_app_type_cfg[app_type_idx].bit_width;
  1215. } else if (app_type) {
  1216. app_type_idx =
  1217. msm_pcm_routing_get_app_type_idx(
  1218. app_type);
  1219. sample_rate =
  1220. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1221. bit_width =
  1222. app_type_cfg[app_type_idx].bit_width;
  1223. } else {
  1224. sample_rate = msm_bedais[i].sample_rate;
  1225. }
  1226. acdb_dev_id =
  1227. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1228. topology = msm_routing_get_adm_topology(fe_id,
  1229. session_type,
  1230. i);
  1231. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1232. || (passthr_mode ==
  1233. COMPRESSED_PASSTHROUGH_GEN))
  1234. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1235. pr_debug("%s: Before adm open topology %d\n", __func__,
  1236. topology);
  1237. copp_idx =
  1238. adm_open(msm_bedais[i].port_id,
  1239. path_type, sample_rate, channels,
  1240. topology, perf_mode, bit_width,
  1241. app_type, acdb_dev_id);
  1242. if ((copp_idx < 0) ||
  1243. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1244. pr_err("%s:adm open failed coppid:%d\n",
  1245. __func__, copp_idx);
  1246. mutex_unlock(&routing_lock);
  1247. return -EINVAL;
  1248. }
  1249. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1250. __func__, fe_id, session_type, i);
  1251. set_bit(copp_idx,
  1252. &session_copp_map[fe_id][session_type][i]);
  1253. if (msm_is_resample_needed(
  1254. sample_rate,
  1255. msm_bedais[i].sample_rate))
  1256. adm_copp_mfc_cfg(
  1257. msm_bedais[i].port_id, copp_idx,
  1258. msm_bedais[i].sample_rate);
  1259. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1260. unsigned long copp =
  1261. session_copp_map[fe_id][session_type][i];
  1262. if (test_bit(j, &copp)) {
  1263. payload.port_id[num_copps] =
  1264. msm_bedais[i].port_id;
  1265. payload.copp_idx[num_copps] = j;
  1266. payload.app_type[num_copps] =
  1267. fe_dai_app_type_cfg
  1268. [fe_id][session_type][i]
  1269. .app_type;
  1270. payload.acdb_dev_id[num_copps] =
  1271. fe_dai_app_type_cfg
  1272. [fe_id][session_type][i]
  1273. .acdb_dev_id;
  1274. payload.sample_rate[num_copps] =
  1275. fe_dai_app_type_cfg
  1276. [fe_id][session_type][i]
  1277. .sample_rate;
  1278. num_copps++;
  1279. }
  1280. }
  1281. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1282. && passthr_mode !=
  1283. COMPRESSED_PASSTHROUGH_GEN) {
  1284. msm_routing_send_device_pp_params(
  1285. msm_bedais[i].port_id,
  1286. copp_idx, fe_id);
  1287. }
  1288. }
  1289. }
  1290. if (num_copps) {
  1291. payload.num_copps = num_copps;
  1292. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1293. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1294. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1295. }
  1296. mutex_unlock(&routing_lock);
  1297. return 0;
  1298. }
  1299. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1300. {
  1301. u32 session_id;
  1302. switch (val) {
  1303. case MSM_FRONTEND_DAI_QCHAT:
  1304. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1305. break;
  1306. case MSM_FRONTEND_DAI_VOIP:
  1307. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1308. break;
  1309. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1310. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1311. break;
  1312. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1313. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1314. break;
  1315. default:
  1316. session_id = 0;
  1317. }
  1318. pr_debug("%s session_id 0x%x", __func__, session_id);
  1319. return session_id;
  1320. }
  1321. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1322. int dspst_id, int stream_type)
  1323. {
  1324. int copp_idx = 0;
  1325. int sess_type = 0;
  1326. int i = 0, j = 0, be_id;
  1327. int ret = 0;
  1328. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1329. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1330. return 0;
  1331. }
  1332. if (!(channel_mixer[fe_id].enable)) {
  1333. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1334. __func__, fe_id);
  1335. return 0;
  1336. }
  1337. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1338. sess_type = SESSION_TYPE_RX;
  1339. else
  1340. sess_type = SESSION_TYPE_TX;
  1341. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1342. ++i) {
  1343. be_id = channel_input[fe_id][i] - 1;
  1344. channel_mixer[fe_id].input_channels[i] =
  1345. msm_bedais[be_id].channel;
  1346. if ((msm_bedais[be_id].active) &&
  1347. test_bit(fe_id,
  1348. &msm_bedais[be_id].fe_sessions[0])) {
  1349. unsigned long copp =
  1350. session_copp_map[fe_id][sess_type][be_id];
  1351. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1352. if (test_bit(j, &copp)) {
  1353. copp_idx = j;
  1354. break;
  1355. }
  1356. }
  1357. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1358. __func__,
  1359. fe_id, be_id, msm_bedais[be_id].channel,
  1360. copp_idx);
  1361. ret = adm_programable_channel_mixer(
  1362. msm_bedais[be_id].port_id,
  1363. copp_idx, dspst_id, sess_type,
  1364. channel_mixer + fe_id, i);
  1365. }
  1366. }
  1367. return ret;
  1368. }
  1369. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1370. int dspst_id, int stream_type)
  1371. {
  1372. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1373. struct route_payload payload;
  1374. u32 channels, sample_rate;
  1375. uint16_t bits_per_sample = 16;
  1376. uint32_t passthr_mode = LEGACY_PCM;
  1377. int ret = 0;
  1378. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1379. /* bad ID assigned in machine driver */
  1380. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1381. return -EINVAL;
  1382. }
  1383. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1384. session_type = SESSION_TYPE_RX;
  1385. path_type = ADM_PATH_PLAYBACK;
  1386. port_type = MSM_AFE_PORT_TYPE_RX;
  1387. } else {
  1388. session_type = SESSION_TYPE_TX;
  1389. path_type = ADM_PATH_LIVE_REC;
  1390. port_type = MSM_AFE_PORT_TYPE_TX;
  1391. }
  1392. mutex_lock(&routing_lock);
  1393. payload.num_copps = 0; /* only RX needs to use payload */
  1394. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1395. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1396. /* re-enable EQ if active */
  1397. msm_qti_pp_send_eq_values(fedai_id);
  1398. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1399. if (!is_be_dai_extproc(i) &&
  1400. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1401. (msm_bedais[i].active) &&
  1402. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1403. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1404. /*
  1405. * check if ADM needs to be configured with different
  1406. * channel mapping than backend
  1407. */
  1408. if (!msm_bedais[i].adm_override_ch)
  1409. channels = msm_bedais[i].channel;
  1410. else
  1411. channels = msm_bedais[i].adm_override_ch;
  1412. msm_bedais[i].passthr_mode[fedai_id] =
  1413. LEGACY_PCM;
  1414. bits_per_sample = msm_routing_get_bit_width(
  1415. msm_bedais[i].format);
  1416. app_type =
  1417. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1418. if (app_type) {
  1419. app_type_idx =
  1420. msm_pcm_routing_get_app_type_idx(app_type);
  1421. sample_rate =
  1422. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1423. .sample_rate;
  1424. bits_per_sample =
  1425. app_type_cfg[app_type_idx].bit_width;
  1426. } else
  1427. sample_rate = msm_bedais[i].sample_rate;
  1428. acdb_dev_id =
  1429. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1430. .acdb_dev_id;
  1431. topology = msm_routing_get_adm_topology(fedai_id,
  1432. session_type,
  1433. i);
  1434. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1435. sample_rate, channels, topology,
  1436. perf_mode, bits_per_sample,
  1437. app_type, acdb_dev_id);
  1438. if ((copp_idx < 0) ||
  1439. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1440. pr_err("%s: adm open failed copp_idx:%d\n",
  1441. __func__, copp_idx);
  1442. mutex_unlock(&routing_lock);
  1443. return -EINVAL;
  1444. }
  1445. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1446. __func__, fedai_id, session_type, i);
  1447. set_bit(copp_idx,
  1448. &session_copp_map[fedai_id][session_type][i]);
  1449. if (msm_is_resample_needed(
  1450. sample_rate,
  1451. msm_bedais[i].sample_rate))
  1452. adm_copp_mfc_cfg(
  1453. msm_bedais[i].port_id, copp_idx,
  1454. msm_bedais[i].sample_rate);
  1455. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1456. unsigned long copp =
  1457. session_copp_map[fedai_id][session_type][i];
  1458. if (test_bit(j, &copp)) {
  1459. payload.port_id[num_copps] =
  1460. msm_bedais[i].port_id;
  1461. payload.copp_idx[num_copps] = j;
  1462. payload.app_type[num_copps] =
  1463. fe_dai_app_type_cfg
  1464. [fedai_id][session_type]
  1465. [i].app_type;
  1466. payload.acdb_dev_id[num_copps] =
  1467. fe_dai_app_type_cfg
  1468. [fedai_id][session_type]
  1469. [i].acdb_dev_id;
  1470. payload.sample_rate[num_copps] =
  1471. fe_dai_app_type_cfg
  1472. [fedai_id][session_type]
  1473. [i].sample_rate;
  1474. num_copps++;
  1475. }
  1476. }
  1477. if ((perf_mode == LEGACY_PCM_MODE) &&
  1478. (msm_bedais[i].passthr_mode[fedai_id] ==
  1479. LEGACY_PCM))
  1480. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1481. copp_idx, topology,
  1482. channels);
  1483. }
  1484. }
  1485. if (num_copps) {
  1486. payload.num_copps = num_copps;
  1487. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1488. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1489. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1490. }
  1491. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1492. dspst_id, stream_type);
  1493. mutex_unlock(&routing_lock);
  1494. return ret;
  1495. }
  1496. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. struct msm_pcm_routing_evt event_info)
  1499. {
  1500. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1501. stream_type)) {
  1502. pr_err("%s: failed to reg phy stream\n", __func__);
  1503. return -EINVAL;
  1504. }
  1505. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1506. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1507. else
  1508. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1509. return 0;
  1510. }
  1511. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1512. {
  1513. int i, port_type, session_type, path_type, topology;
  1514. struct msm_pcm_routing_fdai_data *fdai;
  1515. if (!is_mm_lsm_fe_id(fedai_id)) {
  1516. /* bad ID assigned in machine driver */
  1517. pr_err("%s: bad MM ID\n", __func__);
  1518. return;
  1519. }
  1520. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1521. port_type = MSM_AFE_PORT_TYPE_RX;
  1522. session_type = SESSION_TYPE_RX;
  1523. path_type = ADM_PATH_PLAYBACK;
  1524. } else {
  1525. port_type = MSM_AFE_PORT_TYPE_TX;
  1526. session_type = SESSION_TYPE_TX;
  1527. path_type = ADM_PATH_LIVE_REC;
  1528. }
  1529. mutex_lock(&routing_lock);
  1530. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1531. if (!is_be_dai_extproc(i) &&
  1532. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1533. (msm_bedais[i].active) &&
  1534. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1535. int idx;
  1536. unsigned long copp =
  1537. session_copp_map[fedai_id][session_type][i];
  1538. fdai = &fe_dai_map[fedai_id][session_type];
  1539. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1540. if (test_bit(idx, &copp))
  1541. break;
  1542. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1543. pr_debug("%s: copp idx is invalid, exiting\n",
  1544. __func__);
  1545. continue;
  1546. }
  1547. topology = adm_get_topology_for_port_copp_idx(
  1548. msm_bedais[i].port_id, idx);
  1549. msm_routing_unload_topology(topology);
  1550. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1551. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1552. __func__, copp, fedai_id, session_type, i);
  1553. clear_bit(idx,
  1554. &session_copp_map[fedai_id][session_type][i]);
  1555. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1556. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1557. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1558. (msm_bedais[i].passthr_mode[fedai_id] ==
  1559. LEGACY_PCM))
  1560. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1561. topology);
  1562. }
  1563. }
  1564. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1565. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1566. mutex_unlock(&routing_lock);
  1567. }
  1568. /* Check if FE/BE route is set */
  1569. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1570. {
  1571. bool rc = false;
  1572. if (!is_mm_lsm_fe_id(fe_id)) {
  1573. /* recheck FE ID in the mixer control defined in this file */
  1574. pr_err("%s: bad MM ID\n", __func__);
  1575. return rc;
  1576. }
  1577. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1578. rc = true;
  1579. return rc;
  1580. }
  1581. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1582. {
  1583. int session_type, path_type, topology;
  1584. u32 channels, sample_rate;
  1585. uint16_t bits_per_sample = 16;
  1586. struct msm_pcm_routing_fdai_data *fdai;
  1587. uint32_t passthr_mode;
  1588. bool is_lsm;
  1589. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1590. if (!is_mm_lsm_fe_id(val)) {
  1591. /* recheck FE ID in the mixer control defined in this file */
  1592. pr_err("%s: bad MM ID\n", __func__);
  1593. return;
  1594. }
  1595. if (!route_check_fe_id_adm_support(val)) {
  1596. /* ignore adm open if not supported for fe_id */
  1597. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1598. return;
  1599. }
  1600. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1601. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1602. MSM_AFE_PORT_TYPE_RX) {
  1603. session_type = SESSION_TYPE_RX;
  1604. if (passthr_mode != LEGACY_PCM)
  1605. path_type = ADM_PATH_COMPRESSED_RX;
  1606. else
  1607. path_type = ADM_PATH_PLAYBACK;
  1608. } else {
  1609. session_type = SESSION_TYPE_TX;
  1610. if (passthr_mode != LEGACY_PCM)
  1611. path_type = ADM_PATH_COMPRESSED_TX;
  1612. else
  1613. path_type = ADM_PATH_LIVE_REC;
  1614. }
  1615. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1616. (val <= MSM_FRONTEND_DAI_LSM8);
  1617. mutex_lock(&routing_lock);
  1618. if (set) {
  1619. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1620. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1621. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1622. voc_start_playback(set, msm_bedais[reg].port_id);
  1623. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1624. fdai = &fe_dai_map[val][session_type];
  1625. if (msm_bedais[reg].active && fdai->strm_id !=
  1626. INVALID_SESSION) {
  1627. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1628. /*
  1629. * check if ADM needs to be configured with different
  1630. * channel mapping than backend
  1631. */
  1632. if (!msm_bedais[reg].adm_override_ch)
  1633. channels = msm_bedais[reg].channel;
  1634. else
  1635. channels = msm_bedais[reg].adm_override_ch;
  1636. if (session_type == SESSION_TYPE_TX &&
  1637. fdai->be_srate &&
  1638. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1639. pr_debug("%s: flush strm %d diff BE rates\n",
  1640. __func__, fdai->strm_id);
  1641. if (fdai->event_info.event_func)
  1642. fdai->event_info.event_func(
  1643. MSM_PCM_RT_EVT_BUF_RECFG,
  1644. fdai->event_info.priv_data);
  1645. fdai->be_srate = 0; /* might not need it */
  1646. }
  1647. bits_per_sample = msm_routing_get_bit_width(
  1648. msm_bedais[reg].format);
  1649. app_type =
  1650. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1651. if (app_type && is_lsm) {
  1652. app_type_idx =
  1653. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1654. sample_rate =
  1655. fe_dai_app_type_cfg[val][session_type][reg]
  1656. .sample_rate;
  1657. bits_per_sample =
  1658. lsm_app_type_cfg[app_type_idx].bit_width;
  1659. } else if (app_type) {
  1660. app_type_idx =
  1661. msm_pcm_routing_get_app_type_idx(app_type);
  1662. sample_rate =
  1663. fe_dai_app_type_cfg[val][session_type][reg]
  1664. .sample_rate;
  1665. bits_per_sample =
  1666. app_type_cfg[app_type_idx].bit_width;
  1667. } else
  1668. sample_rate = msm_bedais[reg].sample_rate;
  1669. topology = msm_routing_get_adm_topology(val,
  1670. session_type,
  1671. reg);
  1672. acdb_dev_id =
  1673. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1674. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1675. sample_rate, channels, topology,
  1676. fdai->perf_mode, bits_per_sample,
  1677. app_type, acdb_dev_id);
  1678. if ((copp_idx < 0) ||
  1679. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1680. pr_err("%s: adm open failed\n", __func__);
  1681. mutex_unlock(&routing_lock);
  1682. return;
  1683. }
  1684. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1685. __func__, val, session_type, reg);
  1686. set_bit(copp_idx,
  1687. &session_copp_map[val][session_type][reg]);
  1688. if (msm_is_resample_needed(
  1689. sample_rate,
  1690. msm_bedais[reg].sample_rate))
  1691. adm_copp_mfc_cfg(
  1692. msm_bedais[reg].port_id, copp_idx,
  1693. msm_bedais[reg].sample_rate);
  1694. if (session_type == SESSION_TYPE_RX &&
  1695. fdai->event_info.event_func)
  1696. fdai->event_info.event_func(
  1697. MSM_PCM_RT_EVT_DEVSWITCH,
  1698. fdai->event_info.priv_data);
  1699. msm_pcm_routing_build_matrix(val, session_type,
  1700. path_type,
  1701. fdai->perf_mode,
  1702. passthr_mode);
  1703. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1704. (passthr_mode == LEGACY_PCM))
  1705. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1706. copp_idx, topology,
  1707. channels);
  1708. }
  1709. } else {
  1710. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1711. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1712. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1713. voc_start_playback(set, msm_bedais[reg].port_id);
  1714. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1715. fdai = &fe_dai_map[val][session_type];
  1716. if (msm_bedais[reg].active && fdai->strm_id !=
  1717. INVALID_SESSION) {
  1718. int idx;
  1719. int port_id;
  1720. unsigned long copp =
  1721. session_copp_map[val][session_type][reg];
  1722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1723. if (test_bit(idx, &copp))
  1724. break;
  1725. port_id = msm_bedais[reg].port_id;
  1726. topology = adm_get_topology_for_port_copp_idx(port_id,
  1727. idx);
  1728. msm_routing_unload_topology(topology);
  1729. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1730. idx);
  1731. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1732. __func__, copp, val, session_type, reg,
  1733. topology);
  1734. clear_bit(idx,
  1735. &session_copp_map[val][session_type][reg]);
  1736. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1737. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1738. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1739. (passthr_mode == LEGACY_PCM))
  1740. msm_pcm_routing_deinit_pp(
  1741. msm_bedais[reg].port_id,
  1742. topology);
  1743. msm_pcm_routing_build_matrix(val, session_type,
  1744. path_type,
  1745. fdai->perf_mode,
  1746. passthr_mode);
  1747. }
  1748. }
  1749. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1750. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1751. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1752. mutex_unlock(&routing_lock);
  1753. }
  1754. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1755. struct snd_ctl_elem_value *ucontrol)
  1756. {
  1757. struct soc_mixer_control *mc =
  1758. (struct soc_mixer_control *)kcontrol->private_value;
  1759. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1760. ucontrol->value.integer.value[0] = 1;
  1761. else
  1762. ucontrol->value.integer.value[0] = 0;
  1763. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1764. ucontrol->value.integer.value[0]);
  1765. return 0;
  1766. }
  1767. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1768. struct snd_ctl_elem_value *ucontrol)
  1769. {
  1770. struct snd_soc_dapm_widget *widget =
  1771. snd_soc_dapm_kcontrol_widget(kcontrol);
  1772. struct soc_mixer_control *mc =
  1773. (struct soc_mixer_control *)kcontrol->private_value;
  1774. struct snd_soc_dapm_update *update = NULL;
  1775. if (ucontrol->value.integer.value[0] &&
  1776. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1777. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1778. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1779. update);
  1780. } else if (!ucontrol->value.integer.value[0] &&
  1781. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1782. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1783. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1784. update);
  1785. }
  1786. return 1;
  1787. }
  1788. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1789. struct snd_ctl_elem_value *ucontrol)
  1790. {
  1791. struct soc_mixer_control *mc =
  1792. (struct soc_mixer_control *)kcontrol->private_value;
  1793. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1794. ucontrol->value.integer.value[0] = 1;
  1795. else
  1796. ucontrol->value.integer.value[0] = 0;
  1797. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1798. ucontrol->value.integer.value[0]);
  1799. return 0;
  1800. }
  1801. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1802. struct snd_ctl_elem_value *ucontrol)
  1803. {
  1804. struct snd_soc_dapm_widget *widget =
  1805. snd_soc_dapm_kcontrol_widget(kcontrol);
  1806. struct soc_mixer_control *mc =
  1807. (struct soc_mixer_control *)kcontrol->private_value;
  1808. struct snd_soc_dapm_update *update = NULL;
  1809. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1810. ucontrol->value.integer.value[0]);
  1811. if (ucontrol->value.integer.value[0]) {
  1812. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1813. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1814. snd_soc_dapm_mixer_update_power(widget->dapm,
  1815. kcontrol, 1, update);
  1816. } else if (!ucontrol->value.integer.value[0]) {
  1817. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1818. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm,
  1820. kcontrol, 0, update);
  1821. }
  1822. return 1;
  1823. }
  1824. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1825. {
  1826. u32 session_id = 0;
  1827. u16 path_type;
  1828. struct media_format_info voc_be_media_format;
  1829. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1830. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1831. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1832. __func__, val, session_id);
  1833. mutex_lock(&routing_lock);
  1834. if (set)
  1835. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1836. else
  1837. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1838. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1839. afe_get_port_type(msm_bedais[reg].port_id) ==
  1840. MSM_AFE_PORT_TYPE_RX) {
  1841. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1842. __func__, set, msm_bedais[reg].port_id);
  1843. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1844. }
  1845. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1846. MSM_AFE_PORT_TYPE_RX)
  1847. path_type = RX_PATH;
  1848. else
  1849. path_type = TX_PATH;
  1850. if (set) {
  1851. if (msm_bedais[reg].active) {
  1852. voc_set_route_flag(session_id, path_type, 1);
  1853. memset(&voc_be_media_format, 0,
  1854. sizeof(struct media_format_info));
  1855. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1856. voc_be_media_format.num_channels =
  1857. msm_bedais[reg].channel;
  1858. voc_be_media_format.sample_rate =
  1859. msm_bedais[reg].sample_rate;
  1860. voc_be_media_format.bits_per_sample =
  1861. msm_bedais[reg].format;
  1862. /* Defaulting this to 1 for voice call usecases */
  1863. voc_be_media_format.channel_mapping[0] = 1;
  1864. voc_set_device_config(session_id, path_type,
  1865. &voc_be_media_format);
  1866. if (voc_get_route_flag(session_id, TX_PATH) &&
  1867. voc_get_route_flag(session_id, RX_PATH))
  1868. voc_enable_device(session_id);
  1869. } else {
  1870. pr_debug("%s BE is not active\n", __func__);
  1871. }
  1872. } else {
  1873. voc_set_route_flag(session_id, path_type, 0);
  1874. voc_disable_device(session_id);
  1875. }
  1876. mutex_unlock(&routing_lock);
  1877. }
  1878. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. struct soc_mixer_control *mc =
  1882. (struct soc_mixer_control *)kcontrol->private_value;
  1883. mutex_lock(&routing_lock);
  1884. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1885. ucontrol->value.integer.value[0] = 1;
  1886. else
  1887. ucontrol->value.integer.value[0] = 0;
  1888. mutex_unlock(&routing_lock);
  1889. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1890. ucontrol->value.integer.value[0]);
  1891. return 0;
  1892. }
  1893. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1894. struct snd_ctl_elem_value *ucontrol)
  1895. {
  1896. struct snd_soc_dapm_widget *widget =
  1897. snd_soc_dapm_kcontrol_widget(kcontrol);
  1898. struct soc_mixer_control *mc =
  1899. (struct soc_mixer_control *)kcontrol->private_value;
  1900. struct snd_soc_dapm_update *update = NULL;
  1901. if (ucontrol->value.integer.value[0]) {
  1902. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1903. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1904. update);
  1905. } else {
  1906. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1907. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1908. update);
  1909. }
  1910. return 1;
  1911. }
  1912. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1913. struct snd_ctl_elem_value *ucontrol)
  1914. {
  1915. struct soc_mixer_control *mc =
  1916. (struct soc_mixer_control *)kcontrol->private_value;
  1917. mutex_lock(&routing_lock);
  1918. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1919. ucontrol->value.integer.value[0] = 1;
  1920. else
  1921. ucontrol->value.integer.value[0] = 0;
  1922. mutex_unlock(&routing_lock);
  1923. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1924. ucontrol->value.integer.value[0]);
  1925. return 0;
  1926. }
  1927. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1928. struct snd_ctl_elem_value *ucontrol)
  1929. {
  1930. struct snd_soc_dapm_widget *widget =
  1931. snd_soc_dapm_kcontrol_widget(kcontrol);
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. struct snd_soc_dapm_update *update = NULL;
  1935. if (ucontrol->value.integer.value[0]) {
  1936. mutex_lock(&routing_lock);
  1937. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1938. mutex_unlock(&routing_lock);
  1939. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1940. update);
  1941. } else {
  1942. mutex_lock(&routing_lock);
  1943. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1944. mutex_unlock(&routing_lock);
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1946. update);
  1947. }
  1948. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1949. ucontrol->value.integer.value[0]);
  1950. return 1;
  1951. }
  1952. /*
  1953. * Return the mapping between port ID and backend ID to enable the AFE callback
  1954. * to determine the acdb_dev_id from the port id
  1955. */
  1956. int msm_pcm_get_be_id_from_port_id(int port_id)
  1957. {
  1958. int i;
  1959. int be_id = -EINVAL;
  1960. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1961. if (msm_bedais[i].port_id == port_id) {
  1962. be_id = i;
  1963. break;
  1964. }
  1965. }
  1966. return be_id;
  1967. }
  1968. /*
  1969. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1970. * correct AFE calibration information by comparing the header information.
  1971. */
  1972. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1973. {
  1974. int acdb_id = -EINVAL;
  1975. int i = 0;
  1976. int session;
  1977. int port_type = afe_get_port_type(port_id);
  1978. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1979. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1980. __func__, port_id, be_id, port_type);
  1981. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1982. session = SESSION_TYPE_TX;
  1983. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1984. session = SESSION_TYPE_RX;
  1985. } else {
  1986. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1987. acdb_id = -EINVAL;
  1988. goto exit;
  1989. }
  1990. if (be_id < 0) {
  1991. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1992. goto exit;
  1993. }
  1994. mutex_lock(&routing_lock);
  1995. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1996. MSM_FRONTEND_DAI_MAX);
  1997. if (i < MSM_FRONTEND_DAI_MAX)
  1998. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1999. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2000. __func__, i, session, be_id, acdb_id);
  2001. mutex_unlock(&routing_lock);
  2002. exit:
  2003. return acdb_id;
  2004. }
  2005. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2006. struct snd_ctl_elem_value *ucontrol)
  2007. {
  2008. ucontrol->value.integer.value[0] = fm_switch_enable;
  2009. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2010. ucontrol->value.integer.value[0]);
  2011. return 0;
  2012. }
  2013. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2014. struct snd_ctl_elem_value *ucontrol)
  2015. {
  2016. struct snd_soc_dapm_widget *widget =
  2017. snd_soc_dapm_kcontrol_widget(kcontrol);
  2018. struct snd_soc_dapm_update *update = NULL;
  2019. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2020. ucontrol->value.integer.value[0]);
  2021. if (ucontrol->value.integer.value[0])
  2022. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2023. update);
  2024. else
  2025. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2026. update);
  2027. fm_switch_enable = ucontrol->value.integer.value[0];
  2028. return 1;
  2029. }
  2030. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2031. struct snd_ctl_elem_value *ucontrol)
  2032. {
  2033. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2034. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2035. ucontrol->value.integer.value[0]);
  2036. return 0;
  2037. }
  2038. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2039. struct snd_ctl_elem_value *ucontrol)
  2040. {
  2041. struct snd_soc_dapm_widget *widget =
  2042. snd_soc_dapm_kcontrol_widget(kcontrol);
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2045. ucontrol->value.integer.value[0]);
  2046. if (ucontrol->value.integer.value[0])
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2048. 1, update);
  2049. else
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2051. 0, update);
  2052. hfp_switch_enable = ucontrol->value.integer.value[0];
  2053. return 1;
  2054. }
  2055. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2059. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2060. ucontrol->value.integer.value[0]);
  2061. return 0;
  2062. }
  2063. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2072. if (a2dp_switch_enable)
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2074. 1, update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2077. 0, update);
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2081. struct snd_ctl_elem_value *ucontrol)
  2082. {
  2083. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2084. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. return 0;
  2087. }
  2088. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. struct snd_soc_dapm_widget *widget =
  2092. snd_soc_dapm_kcontrol_widget(kcontrol);
  2093. struct snd_soc_dapm_update *update = NULL;
  2094. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2095. ucontrol->value.integer.value[0]);
  2096. if (ucontrol->value.integer.value[0])
  2097. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2098. update);
  2099. else
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2101. update);
  2102. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2103. return 1;
  2104. }
  2105. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2109. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct snd_soc_dapm_update *update = NULL;
  2119. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2120. ucontrol->value.integer.value[0]);
  2121. if (ucontrol->value.integer.value[0])
  2122. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2123. update);
  2124. else
  2125. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2126. update);
  2127. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2128. return 1;
  2129. }
  2130. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. ucontrol->value.integer.value[0] = usb_switch_enable;
  2134. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2135. ucontrol->value.integer.value[0]);
  2136. return 0;
  2137. }
  2138. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. struct snd_soc_dapm_widget *widget =
  2142. snd_soc_dapm_kcontrol_widget(kcontrol);
  2143. struct snd_soc_dapm_update *update = NULL;
  2144. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. if (ucontrol->value.integer.value[0])
  2147. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2148. 1, update);
  2149. else
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2151. 0, update);
  2152. usb_switch_enable = ucontrol->value.integer.value[0];
  2153. return 1;
  2154. }
  2155. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2156. struct snd_ctl_elem_value *ucontrol)
  2157. {
  2158. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2159. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2160. ucontrol->value.integer.value[0]);
  2161. return 0;
  2162. }
  2163. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2164. struct snd_ctl_elem_value *ucontrol)
  2165. {
  2166. struct snd_soc_dapm_widget *widget =
  2167. snd_soc_dapm_kcontrol_widget(kcontrol);
  2168. struct snd_soc_dapm_update *update = NULL;
  2169. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2170. ucontrol->value.integer.value[0]);
  2171. if (ucontrol->value.integer.value[0])
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. else
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2176. update);
  2177. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2178. return 1;
  2179. }
  2180. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2181. struct snd_ctl_elem_value *ucontrol)
  2182. {
  2183. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2184. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2185. ucontrol->value.integer.value[0]);
  2186. return 0;
  2187. }
  2188. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2189. struct snd_ctl_elem_value *ucontrol)
  2190. {
  2191. struct snd_soc_dapm_widget *widget =
  2192. snd_soc_dapm_kcontrol_widget(kcontrol);
  2193. struct snd_soc_dapm_update *update = NULL;
  2194. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2195. ucontrol->value.integer.value[0]);
  2196. if (ucontrol->value.integer.value[0])
  2197. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2198. update);
  2199. else
  2200. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2201. update);
  2202. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2203. return 1;
  2204. }
  2205. static int msm_routing_get_tert_mi2s_switch_mixer(
  2206. struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2210. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_tert_mi2s_switch_mixer(
  2215. struct snd_kcontrol *kcontrol,
  2216. struct snd_ctl_elem_value *ucontrol)
  2217. {
  2218. struct snd_soc_dapm_widget *widget =
  2219. snd_soc_dapm_kcontrol_widget(kcontrol);
  2220. struct snd_soc_dapm_update *update = NULL;
  2221. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2222. ucontrol->value.integer.value[0]);
  2223. if (ucontrol->value.integer.value[0])
  2224. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2225. update);
  2226. else
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2228. update);
  2229. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2230. return 1;
  2231. }
  2232. static int msm_routing_get_quat_mi2s_switch_mixer(
  2233. struct snd_kcontrol *kcontrol,
  2234. struct snd_ctl_elem_value *ucontrol)
  2235. {
  2236. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2237. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2238. ucontrol->value.integer.value[0]);
  2239. return 0;
  2240. }
  2241. static int msm_routing_put_quat_mi2s_switch_mixer(
  2242. struct snd_kcontrol *kcontrol,
  2243. struct snd_ctl_elem_value *ucontrol)
  2244. {
  2245. struct snd_soc_dapm_widget *widget =
  2246. snd_soc_dapm_kcontrol_widget(kcontrol);
  2247. struct snd_soc_dapm_update *update = NULL;
  2248. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2249. ucontrol->value.integer.value[0]);
  2250. if (ucontrol->value.integer.value[0])
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. else
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2255. update);
  2256. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2257. return 1;
  2258. }
  2259. static int msm_routing_get_quin_mi2s_switch_mixer(
  2260. struct snd_kcontrol *kcontrol,
  2261. struct snd_ctl_elem_value *ucontrol)
  2262. {
  2263. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2264. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2265. ucontrol->value.integer.value[0]);
  2266. return 0;
  2267. }
  2268. static int msm_routing_put_quin_mi2s_switch_mixer(
  2269. struct snd_kcontrol *kcontrol,
  2270. struct snd_ctl_elem_value *ucontrol)
  2271. {
  2272. struct snd_soc_dapm_widget *widget =
  2273. snd_soc_dapm_kcontrol_widget(kcontrol);
  2274. struct snd_soc_dapm_update *update = NULL;
  2275. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2276. ucontrol->value.integer.value[0]);
  2277. if (ucontrol->value.integer.value[0])
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2279. update);
  2280. else
  2281. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2282. update);
  2283. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2284. return 1;
  2285. }
  2286. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2290. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2291. ucontrol->value.integer.value[0]);
  2292. return 0;
  2293. }
  2294. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2295. struct snd_ctl_elem_value *ucontrol)
  2296. {
  2297. struct snd_soc_dapm_widget *widget =
  2298. snd_soc_dapm_kcontrol_widget(kcontrol);
  2299. struct snd_soc_dapm_update *update = NULL;
  2300. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2301. ucontrol->value.integer.value[0]);
  2302. if (ucontrol->value.integer.value[0])
  2303. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2304. update);
  2305. else
  2306. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2307. update);
  2308. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2309. return 1;
  2310. }
  2311. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = lsm_port_index;
  2315. return 0;
  2316. }
  2317. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2321. int mux = ucontrol->value.enumerated.item[0];
  2322. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2323. if (mux >= e->items) {
  2324. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2325. return -EINVAL;
  2326. }
  2327. pr_debug("%s: LSM enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. switch (ucontrol->value.integer.value[0]) {
  2330. case 1:
  2331. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2332. break;
  2333. case 2:
  2334. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2335. break;
  2336. case 3:
  2337. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2338. break;
  2339. case 4:
  2340. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2341. break;
  2342. case 5:
  2343. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2344. break;
  2345. case 6:
  2346. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2347. break;
  2348. case 7:
  2349. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2350. break;
  2351. case 8:
  2352. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2353. break;
  2354. case 9:
  2355. lsm_port = ADM_LSM_PORT_ID;
  2356. break;
  2357. case 10:
  2358. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2359. break;
  2360. case 11:
  2361. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2362. break;
  2363. case 12:
  2364. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2365. break;
  2366. default:
  2367. pr_err("Default lsm port");
  2368. break;
  2369. }
  2370. set_lsm_port(lsm_port);
  2371. lsm_port_index = ucontrol->value.integer.value[0];
  2372. return 0;
  2373. }
  2374. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. int i;
  2378. u16 port_id;
  2379. enum afe_mad_type mad_type;
  2380. pr_debug("%s: enter\n", __func__);
  2381. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2382. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2383. strlen(lsm_port_text[i])))
  2384. break;
  2385. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2386. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2387. return -EINVAL;
  2388. }
  2389. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2390. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2391. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2392. strlen(lsm_port_text[7])))
  2393. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2394. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2395. strlen(lsm_port_text[8])))
  2396. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2397. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2398. strlen(lsm_port_text[10])))
  2399. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2400. mad_type = afe_port_get_mad_type(port_id);
  2401. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2402. mad_type);
  2403. switch (mad_type) {
  2404. case MAD_HW_NONE:
  2405. ucontrol->value.integer.value[0] = MADNONE;
  2406. break;
  2407. case MAD_HW_AUDIO:
  2408. ucontrol->value.integer.value[0] = MADAUDIO;
  2409. break;
  2410. case MAD_HW_BEACON:
  2411. ucontrol->value.integer.value[0] = MADBEACON;
  2412. break;
  2413. case MAD_HW_ULTRASOUND:
  2414. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2415. break;
  2416. case MAD_SW_AUDIO:
  2417. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2418. break;
  2419. default:
  2420. WARN(1, "Unknown\n");
  2421. return -EINVAL;
  2422. }
  2423. return 0;
  2424. }
  2425. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. int i;
  2429. u16 port_id;
  2430. enum afe_mad_type mad_type;
  2431. pr_debug("%s: enter\n", __func__);
  2432. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2434. strlen(lsm_port_text[i])))
  2435. break;
  2436. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2437. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2438. return -EINVAL;
  2439. }
  2440. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2441. switch (ucontrol->value.integer.value[0]) {
  2442. case MADNONE:
  2443. mad_type = MAD_HW_NONE;
  2444. break;
  2445. case MADAUDIO:
  2446. mad_type = MAD_HW_AUDIO;
  2447. break;
  2448. case MADBEACON:
  2449. mad_type = MAD_HW_BEACON;
  2450. break;
  2451. case MADULTRASOUND:
  2452. mad_type = MAD_HW_ULTRASOUND;
  2453. break;
  2454. case MADSWAUDIO:
  2455. mad_type = MAD_SW_AUDIO;
  2456. break;
  2457. default:
  2458. WARN(1, "Unknown\n");
  2459. return -EINVAL;
  2460. }
  2461. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2462. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2463. strlen(lsm_port_text[7])))
  2464. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2465. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2466. strlen(lsm_port_text[8])))
  2467. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2468. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2469. strlen(lsm_port_text[10])))
  2470. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2471. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2472. mad_type);
  2473. return afe_port_set_mad_type(port_id, mad_type);
  2474. }
  2475. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2476. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2477. adm_override_chs_text);
  2478. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2479. {
  2480. int backend_id;
  2481. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2482. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2483. } else {
  2484. pr_err("%s: unsupported backend id: %s",
  2485. __func__, kcontrol->id.name);
  2486. return -EINVAL;
  2487. }
  2488. return backend_id;
  2489. }
  2490. static int msm_routing_adm_channel_config_get(
  2491. struct snd_kcontrol *kcontrol,
  2492. struct snd_ctl_elem_value *ucontrol)
  2493. {
  2494. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2495. if (backend_id >= 0) {
  2496. mutex_lock(&routing_lock);
  2497. ucontrol->value.integer.value[0] =
  2498. msm_bedais[backend_id].adm_override_ch;
  2499. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2500. ucontrol->value.integer.value[0], backend_id);
  2501. mutex_unlock(&routing_lock);
  2502. }
  2503. return 0;
  2504. }
  2505. static int msm_routing_adm_channel_config_put(
  2506. struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2510. if (backend_id >= 0) {
  2511. mutex_lock(&routing_lock);
  2512. msm_bedais[backend_id].adm_override_ch =
  2513. ucontrol->value.integer.value[0];
  2514. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2515. __func__, backend_id,
  2516. msm_bedais[backend_id].adm_override_ch);
  2517. mutex_unlock(&routing_lock);
  2518. }
  2519. return 0;
  2520. }
  2521. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2522. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2523. msm_routing_adm_channel_config_get,
  2524. msm_routing_adm_channel_config_put),
  2525. };
  2526. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. mutex_lock(&routing_lock);
  2530. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2531. mutex_unlock(&routing_lock);
  2532. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2533. ucontrol->value.integer.value[0]);
  2534. return 0;
  2535. };
  2536. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct aanc_data aanc_info;
  2540. mutex_lock(&routing_lock);
  2541. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2542. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2545. if (ucontrol->value.integer.value[0] == 0) {
  2546. aanc_info.aanc_active = false;
  2547. aanc_info.aanc_tx_port = 0;
  2548. aanc_info.aanc_rx_port = 0;
  2549. } else {
  2550. aanc_info.aanc_active = true;
  2551. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2552. aanc_info.aanc_tx_port =
  2553. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2554. }
  2555. afe_set_aanc_info(&aanc_info);
  2556. mutex_unlock(&routing_lock);
  2557. return 0;
  2558. };
  2559. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. int idx = 0, shift = 0;
  2563. struct soc_mixer_control *mc =
  2564. (struct soc_mixer_control *)kcontrol->private_value;
  2565. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2566. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2567. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2568. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2569. return -EINVAL;
  2570. }
  2571. if (test_bit(shift,
  2572. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2573. ucontrol->value.integer.value[0] = 1;
  2574. else
  2575. ucontrol->value.integer.value[0] = 0;
  2576. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2577. ucontrol->value.integer.value[0]);
  2578. return 0;
  2579. }
  2580. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2581. struct snd_ctl_elem_value *ucontrol)
  2582. {
  2583. int idx = 0, shift = 0;
  2584. struct soc_mixer_control *mc =
  2585. (struct soc_mixer_control *)kcontrol->private_value;
  2586. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2587. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2588. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2589. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2590. return -EINVAL;
  2591. }
  2592. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2593. __func__, mc->shift, mc->rshift,
  2594. ucontrol->value.integer.value[0], idx, shift);
  2595. if (ucontrol->value.integer.value[0]) {
  2596. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2597. msm_bedais[mc->rshift].port_id);
  2598. set_bit(shift,
  2599. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2600. } else {
  2601. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2602. msm_bedais[mc->rshift].port_id);
  2603. clear_bit(shift,
  2604. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2605. }
  2606. return 1;
  2607. }
  2608. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2609. struct snd_ctl_elem_value *ucontrol)
  2610. {
  2611. u16 fe_id = 0;
  2612. fe_id = ((struct soc_mixer_control *)
  2613. kcontrol->private_value)->shift;
  2614. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2615. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2616. return -EINVAL;
  2617. }
  2618. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2619. return 0;
  2620. }
  2621. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_value *ucontrol)
  2623. {
  2624. u16 fe_id = 0;
  2625. fe_id = ((struct soc_mixer_control *)
  2626. kcontrol->private_value)->shift;
  2627. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2628. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2629. return -EINVAL;
  2630. }
  2631. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2632. return 1;
  2633. }
  2634. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. u16 fe_id = 0;
  2638. fe_id = ((struct soc_multi_mixer_control *)
  2639. kcontrol->private_value)->shift;
  2640. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2641. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2642. return -EINVAL;
  2643. }
  2644. ucontrol->value.integer.value[0] =
  2645. channel_mixer[fe_id].output_channel;
  2646. return 0;
  2647. }
  2648. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2649. struct snd_ctl_elem_value *ucontrol)
  2650. {
  2651. u16 fe_id = 0;
  2652. fe_id = ((struct soc_multi_mixer_control *)
  2653. kcontrol->private_value)->shift;
  2654. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2655. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2656. return -EINVAL;
  2657. }
  2658. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2659. fe_id,
  2660. (unsigned int)(ucontrol->value.integer.value[0]));
  2661. channel_mixer[fe_id].output_channel =
  2662. (unsigned int)(ucontrol->value.integer.value[0]);
  2663. return 1;
  2664. }
  2665. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2666. /* If new backend is added, need update this array */
  2667. static const char *const be_name[] = {
  2668. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2669. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2670. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2671. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2672. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2673. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2674. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2675. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2676. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2677. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2678. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2679. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2680. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2681. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2682. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2683. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2684. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2685. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2686. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2687. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2688. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2689. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2690. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2691. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2692. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2693. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2694. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2695. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2696. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2697. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2698. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2699. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2700. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2701. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2702. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2703. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2704. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2705. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2706. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2707. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2708. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2709. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2710. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2711. };
  2712. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2713. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2714. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2715. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2716. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2717. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2718. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2719. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2720. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2721. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2722. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2723. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2724. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2725. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2726. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2727. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2728. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2729. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2730. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2731. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2732. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2733. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2734. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2735. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2736. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2737. unsigned int channels,
  2738. unsigned int items, const char *const names[])
  2739. {
  2740. if (uinfo->value.enumerated.item >= items)
  2741. uinfo->value.enumerated.item = items - 1;
  2742. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2743. sizeof(uinfo->value.enumerated.name),
  2744. "ALSA: too long item name '%s'\n",
  2745. names[uinfo->value.enumerated.item]);
  2746. strlcpy(uinfo->value.enumerated.name,
  2747. names[uinfo->value.enumerated.item],
  2748. sizeof(uinfo->value.enumerated.name));
  2749. return 0;
  2750. }
  2751. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2752. struct snd_ctl_elem_info *uinfo)
  2753. {
  2754. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2755. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2756. uinfo->count = 1;
  2757. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2758. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2759. return 0;
  2760. }
  2761. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2762. struct snd_ctl_elem_value *ucontrol)
  2763. {
  2764. u16 fe_id = 0;
  2765. fe_id = ((struct soc_enum *)
  2766. kcontrol->private_value)->shift_l;
  2767. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2768. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2769. return -EINVAL;
  2770. }
  2771. pr_debug("%s: FE %d %s\n", __func__,
  2772. fe_id,
  2773. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2774. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2775. return 0;
  2776. }
  2777. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2778. struct snd_ctl_elem_value *ucontrol)
  2779. {
  2780. u16 fe_id = 0;
  2781. fe_id = ((struct soc_enum *)
  2782. kcontrol->private_value)->shift_l;
  2783. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2784. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2785. return -EINVAL;
  2786. }
  2787. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2788. pr_debug("%s: %s FE %d\n", __func__,
  2789. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2790. fe_id);
  2791. return 0;
  2792. }
  2793. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2794. struct snd_ctl_elem_info *uinfo)
  2795. {
  2796. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2797. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2798. uinfo->count = 1;
  2799. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2800. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2801. return 0;
  2802. }
  2803. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2804. struct snd_ctl_elem_value *ucontrol)
  2805. {
  2806. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2807. u16 fe_id = 0, in_ch = 0;
  2808. fe_id = e->shift_l;
  2809. in_ch = e->shift_r;
  2810. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2811. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2812. return -EINVAL;
  2813. }
  2814. if (in_ch >= ADM_MAX_CHANNELS) {
  2815. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2816. return -EINVAL;
  2817. }
  2818. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2819. return 1;
  2820. }
  2821. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2825. u16 fe_id = 0, in_ch = 0;
  2826. fe_id = e->shift_l;
  2827. in_ch = e->shift_r;
  2828. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2829. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2830. return -EINVAL;
  2831. }
  2832. if (in_ch >= ADM_MAX_CHANNELS) {
  2833. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2834. return -EINVAL;
  2835. }
  2836. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2837. return 1;
  2838. }
  2839. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2840. struct snd_ctl_elem_info *uinfo)
  2841. {
  2842. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2843. uinfo->count = ADM_MAX_CHANNELS;
  2844. uinfo->value.integer.min = 0;
  2845. uinfo->value.integer.max = WEIGHT_0_DB;
  2846. return 0;
  2847. }
  2848. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2849. struct snd_ctl_elem_value *ucontrol)
  2850. {
  2851. u16 fe_id = 0, out_ch = 0;
  2852. int i, weight;
  2853. fe_id = ((struct soc_multi_mixer_control *)
  2854. kcontrol->private_value)->shift;
  2855. out_ch = ((struct soc_multi_mixer_control *)
  2856. kcontrol->private_value)->rshift;
  2857. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2858. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2859. return -EINVAL;
  2860. }
  2861. if (out_ch >= ADM_MAX_CHANNELS) {
  2862. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2863. return -EINVAL;
  2864. }
  2865. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2866. __func__, fe_id,
  2867. ucontrol->value.integer.value[0],
  2868. ucontrol->value.integer.value[1],
  2869. ucontrol->value.integer.value[2],
  2870. ucontrol->value.integer.value[3],
  2871. ucontrol->value.integer.value[4],
  2872. ucontrol->value.integer.value[5],
  2873. ucontrol->value.integer.value[6],
  2874. ucontrol->value.integer.value[7]);
  2875. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2876. weight = ucontrol->value.integer.value[i];
  2877. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2878. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2879. __func__, fe_id, out_ch, i,
  2880. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2881. }
  2882. return 0;
  2883. }
  2884. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. u16 fe_id = 0, out_ch = 0;
  2888. int i;
  2889. fe_id = ((struct soc_multi_mixer_control *)
  2890. kcontrol->private_value)->shift;
  2891. out_ch = ((struct soc_multi_mixer_control *)
  2892. kcontrol->private_value)->rshift;
  2893. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2894. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2895. return -EINVAL;
  2896. }
  2897. if (out_ch >= ADM_MAX_CHANNELS) {
  2898. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2899. return -EINVAL;
  2900. }
  2901. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2902. ucontrol->value.integer.value[i] =
  2903. channel_mixer[fe_id].channel_weight[out_ch][i];
  2904. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2905. __func__, fe_id,
  2906. ucontrol->value.integer.value[0],
  2907. ucontrol->value.integer.value[1],
  2908. ucontrol->value.integer.value[2],
  2909. ucontrol->value.integer.value[3],
  2910. ucontrol->value.integer.value[4],
  2911. ucontrol->value.integer.value[5],
  2912. ucontrol->value.integer.value[6],
  2913. ucontrol->value.integer.value[7]);
  2914. return 0;
  2915. }
  2916. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2917. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2918. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2919. msm_pcm_get_channel_rule_index,
  2920. msm_pcm_put_channel_rule_index),
  2921. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2922. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2923. msm_pcm_get_channel_rule_index,
  2924. msm_pcm_put_channel_rule_index),
  2925. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2926. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2927. msm_pcm_get_channel_rule_index,
  2928. msm_pcm_put_channel_rule_index),
  2929. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2930. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2931. msm_pcm_get_channel_rule_index,
  2932. msm_pcm_put_channel_rule_index),
  2933. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2934. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2935. msm_pcm_get_channel_rule_index,
  2936. msm_pcm_put_channel_rule_index),
  2937. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2938. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2939. msm_pcm_get_channel_rule_index,
  2940. msm_pcm_put_channel_rule_index),
  2941. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2942. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2943. msm_pcm_get_out_chs,
  2944. msm_pcm_put_out_chs),
  2945. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2946. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2947. msm_pcm_get_out_chs,
  2948. msm_pcm_put_out_chs),
  2949. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2950. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2951. msm_pcm_get_out_chs,
  2952. msm_pcm_put_out_chs),
  2953. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2954. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2955. msm_pcm_get_out_chs,
  2956. msm_pcm_put_out_chs),
  2957. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2958. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2959. msm_pcm_get_out_chs,
  2960. msm_pcm_put_out_chs),
  2961. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2962. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2963. msm_pcm_get_out_chs,
  2964. msm_pcm_put_out_chs),
  2965. {
  2966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2968. .name = "MultiMedia1 Channel Mixer",
  2969. .info = msm_pcm_channel_mixer_info,
  2970. .get = msm_pcm_channel_mixer_get,
  2971. .put = msm_pcm_channel_mixer_put,
  2972. .private_value = (unsigned long)&(mm1_channel_mux)
  2973. },
  2974. {
  2975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2977. .name = "MultiMedia2 Channel Mixer",
  2978. .info = msm_pcm_channel_mixer_info,
  2979. .get = msm_pcm_channel_mixer_get,
  2980. .put = msm_pcm_channel_mixer_put,
  2981. .private_value = (unsigned long)&(mm2_channel_mux)
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia3 Channel Mixer",
  2987. .info = msm_pcm_channel_mixer_info,
  2988. .get = msm_pcm_channel_mixer_get,
  2989. .put = msm_pcm_channel_mixer_put,
  2990. .private_value = (unsigned long)&(mm3_channel_mux)
  2991. },
  2992. {
  2993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2995. .name = "MultiMedia4 Channel Mixer",
  2996. .info = msm_pcm_channel_mixer_info,
  2997. .get = msm_pcm_channel_mixer_get,
  2998. .put = msm_pcm_channel_mixer_put,
  2999. .private_value = (unsigned long)&(mm4_channel_mux)
  3000. },
  3001. {
  3002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3004. .name = "MultiMedia1 Output Channel1",
  3005. .info = msm_pcm_channel_weight_info,
  3006. .get = msm_pcm_channel_weight_get,
  3007. .put = msm_pcm_channel_weight_put,
  3008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3009. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3010. },
  3011. {
  3012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3014. .name = "MultiMedia1 Output Channel2",
  3015. .info = msm_pcm_channel_weight_info,
  3016. .get = msm_pcm_channel_weight_get,
  3017. .put = msm_pcm_channel_weight_put,
  3018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3020. },
  3021. {
  3022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3024. .name = "MultiMedia1 Output Channel3",
  3025. .info = msm_pcm_channel_weight_info,
  3026. .get = msm_pcm_channel_weight_get,
  3027. .put = msm_pcm_channel_weight_put,
  3028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3030. },
  3031. {
  3032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3034. .name = "MultiMedia1 Output Channel4",
  3035. .info = msm_pcm_channel_weight_info,
  3036. .get = msm_pcm_channel_weight_get,
  3037. .put = msm_pcm_channel_weight_put,
  3038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3040. },
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 Output Channel5",
  3045. .info = msm_pcm_channel_weight_info,
  3046. .get = msm_pcm_channel_weight_get,
  3047. .put = msm_pcm_channel_weight_put,
  3048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3050. },
  3051. {
  3052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3054. .name = "MultiMedia1 Output Channel6",
  3055. .info = msm_pcm_channel_weight_info,
  3056. .get = msm_pcm_channel_weight_get,
  3057. .put = msm_pcm_channel_weight_put,
  3058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3060. },
  3061. {
  3062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3064. .name = "MultiMedia1 Output Channel7",
  3065. .info = msm_pcm_channel_weight_info,
  3066. .get = msm_pcm_channel_weight_get,
  3067. .put = msm_pcm_channel_weight_put,
  3068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3070. },
  3071. {
  3072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3074. .name = "MultiMedia1 Output Channel8",
  3075. .info = msm_pcm_channel_weight_info,
  3076. .get = msm_pcm_channel_weight_get,
  3077. .put = msm_pcm_channel_weight_put,
  3078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3080. },
  3081. {
  3082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3084. .name = "MultiMedia2 Output Channel1",
  3085. .info = msm_pcm_channel_weight_info,
  3086. .get = msm_pcm_channel_weight_get,
  3087. .put = msm_pcm_channel_weight_put,
  3088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3089. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3090. },
  3091. {
  3092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3094. .name = "MultiMedia2 Output Channel2",
  3095. .info = msm_pcm_channel_weight_info,
  3096. .get = msm_pcm_channel_weight_get,
  3097. .put = msm_pcm_channel_weight_put,
  3098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3099. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3100. },
  3101. {
  3102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3104. .name = "MultiMedia2 Output Channel3",
  3105. .info = msm_pcm_channel_weight_info,
  3106. .get = msm_pcm_channel_weight_get,
  3107. .put = msm_pcm_channel_weight_put,
  3108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3109. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3110. },
  3111. {
  3112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3114. .name = "MultiMedia3 Output Channel1",
  3115. .info = msm_pcm_channel_weight_info,
  3116. .get = msm_pcm_channel_weight_get,
  3117. .put = msm_pcm_channel_weight_put,
  3118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3119. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3120. },
  3121. {
  3122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3124. .name = "MultiMedia3 Output Channel2",
  3125. .info = msm_pcm_channel_weight_info,
  3126. .get = msm_pcm_channel_weight_get,
  3127. .put = msm_pcm_channel_weight_put,
  3128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3129. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3130. },
  3131. {
  3132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3134. .name = "MultiMedia1 Channel1",
  3135. .info = msm_pcm_channel_input_be_info,
  3136. .get = msm_pcm_channel_input_be_get,
  3137. .put = msm_pcm_channel_input_be_put,
  3138. .private_value = (unsigned long)&(mm1_ch1_enum)
  3139. },
  3140. {
  3141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3142. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3143. .name = "MultiMedia1 Channel2",
  3144. .info = msm_pcm_channel_input_be_info,
  3145. .get = msm_pcm_channel_input_be_get,
  3146. .put = msm_pcm_channel_input_be_put,
  3147. .private_value = (unsigned long)&(mm1_ch2_enum)
  3148. },
  3149. {
  3150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3151. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3152. .name = "MultiMedia1 Channel3",
  3153. .info = msm_pcm_channel_input_be_info,
  3154. .get = msm_pcm_channel_input_be_get,
  3155. .put = msm_pcm_channel_input_be_put,
  3156. .private_value = (unsigned long)&(mm1_ch3_enum)
  3157. },
  3158. {
  3159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3161. .name = "MultiMedia1 Channel4",
  3162. .info = msm_pcm_channel_input_be_info,
  3163. .get = msm_pcm_channel_input_be_get,
  3164. .put = msm_pcm_channel_input_be_put,
  3165. .private_value = (unsigned long)&(mm1_ch4_enum)
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia1 Channel5",
  3171. .info = msm_pcm_channel_input_be_info,
  3172. .get = msm_pcm_channel_input_be_get,
  3173. .put = msm_pcm_channel_input_be_put,
  3174. .private_value = (unsigned long)&(mm1_ch5_enum)
  3175. },
  3176. {
  3177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3179. .name = "MultiMedia1 Channel6",
  3180. .info = msm_pcm_channel_input_be_info,
  3181. .get = msm_pcm_channel_input_be_get,
  3182. .put = msm_pcm_channel_input_be_put,
  3183. .private_value = (unsigned long)&(mm1_ch6_enum)
  3184. },
  3185. {
  3186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3188. .name = "MultiMedia1 Channel7",
  3189. .info = msm_pcm_channel_input_be_info,
  3190. .get = msm_pcm_channel_input_be_get,
  3191. .put = msm_pcm_channel_input_be_put,
  3192. .private_value = (unsigned long)&(mm1_ch7_enum)
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia1 Channel8",
  3198. .info = msm_pcm_channel_input_be_info,
  3199. .get = msm_pcm_channel_input_be_get,
  3200. .put = msm_pcm_channel_input_be_put,
  3201. .private_value = (unsigned long)&(mm1_ch8_enum)
  3202. },
  3203. };
  3204. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3205. struct snd_ctl_elem_value *ucontrol)
  3206. {
  3207. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3208. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3209. ucontrol->value.integer.value[0]);
  3210. return 0;
  3211. }
  3212. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3213. struct snd_ctl_elem_value *ucontrol)
  3214. {
  3215. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3216. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3217. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3218. return 0;
  3219. }
  3220. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3221. "Four", "Five", "Six", "Seven", "Eight"};
  3222. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3223. struct snd_ctl_elem_value *ucontrol)
  3224. {
  3225. switch (msm_ec_ref_bit_format) {
  3226. case SNDRV_PCM_FORMAT_S24_LE:
  3227. ucontrol->value.integer.value[0] = 2;
  3228. break;
  3229. case SNDRV_PCM_FORMAT_S16_LE:
  3230. ucontrol->value.integer.value[0] = 1;
  3231. break;
  3232. default:
  3233. ucontrol->value.integer.value[0] = 0;
  3234. break;
  3235. }
  3236. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3237. __func__, ucontrol->value.integer.value[0]);
  3238. return 0;
  3239. }
  3240. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. u16 bit_width = 0;
  3244. switch (ucontrol->value.integer.value[0]) {
  3245. case 2:
  3246. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3247. break;
  3248. case 1:
  3249. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3250. break;
  3251. default:
  3252. msm_ec_ref_bit_format = 0;
  3253. break;
  3254. }
  3255. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3256. bit_width = 16;
  3257. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3258. bit_width = 24;
  3259. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3260. __func__, msm_ec_ref_bit_format);
  3261. adm_ec_ref_rx_bit_width(bit_width);
  3262. return 0;
  3263. }
  3264. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3265. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3269. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3270. __func__, ucontrol->value.integer.value[0]);
  3271. return 0;
  3272. }
  3273. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3274. struct snd_ctl_elem_value *ucontrol)
  3275. {
  3276. switch (ucontrol->value.integer.value[0]) {
  3277. case 0:
  3278. msm_ec_ref_sampling_rate = 0;
  3279. break;
  3280. case 1:
  3281. msm_ec_ref_sampling_rate = 8000;
  3282. break;
  3283. case 2:
  3284. msm_ec_ref_sampling_rate = 16000;
  3285. break;
  3286. case 3:
  3287. msm_ec_ref_sampling_rate = 32000;
  3288. break;
  3289. case 4:
  3290. msm_ec_ref_sampling_rate = 44100;
  3291. break;
  3292. case 5:
  3293. msm_ec_ref_sampling_rate = 48000;
  3294. break;
  3295. case 6:
  3296. msm_ec_ref_sampling_rate = 96000;
  3297. break;
  3298. case 7:
  3299. msm_ec_ref_sampling_rate = 192000;
  3300. break;
  3301. case 8:
  3302. msm_ec_ref_sampling_rate = 384000;
  3303. break;
  3304. default:
  3305. msm_ec_ref_sampling_rate = 48000;
  3306. break;
  3307. }
  3308. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3309. __func__, msm_ec_ref_sampling_rate);
  3310. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3311. return 0;
  3312. }
  3313. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3314. "32000", "44100", "48000", "96000", "192000", "384000"};
  3315. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3316. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3317. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3318. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3319. };
  3320. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3321. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3322. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3323. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3324. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3325. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3326. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3327. };
  3328. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3329. struct snd_ctl_elem_value *ucontrol)
  3330. {
  3331. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3332. mutex_lock(&routing_lock);
  3333. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3334. mutex_unlock(&routing_lock);
  3335. return 0;
  3336. }
  3337. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3338. struct snd_ctl_elem_value *ucontrol)
  3339. {
  3340. int ec_ref_port_id;
  3341. struct snd_soc_dapm_widget *widget =
  3342. snd_soc_dapm_kcontrol_widget(kcontrol);
  3343. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3344. struct snd_soc_dapm_update *update = NULL;
  3345. mutex_lock(&routing_lock);
  3346. switch (ucontrol->value.integer.value[0]) {
  3347. case 0:
  3348. msm_route_ec_ref_rx = 0;
  3349. ec_ref_port_id = AFE_PORT_INVALID;
  3350. break;
  3351. case 1:
  3352. msm_route_ec_ref_rx = 1;
  3353. ec_ref_port_id = SLIMBUS_0_RX;
  3354. break;
  3355. case 2:
  3356. msm_route_ec_ref_rx = 2;
  3357. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3358. break;
  3359. case 3:
  3360. msm_route_ec_ref_rx = 3;
  3361. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3362. break;
  3363. case 4:
  3364. msm_route_ec_ref_rx = 4;
  3365. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3366. break;
  3367. case 5:
  3368. msm_route_ec_ref_rx = 5;
  3369. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3370. break;
  3371. case 6:
  3372. msm_route_ec_ref_rx = 6;
  3373. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3374. break;
  3375. case 7:
  3376. msm_route_ec_ref_rx = 7;
  3377. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3378. break;
  3379. case 9:
  3380. msm_route_ec_ref_rx = 9;
  3381. ec_ref_port_id = SLIMBUS_5_RX;
  3382. break;
  3383. case 10:
  3384. msm_route_ec_ref_rx = 10;
  3385. ec_ref_port_id = SLIMBUS_1_TX;
  3386. break;
  3387. case 11:
  3388. msm_route_ec_ref_rx = 11;
  3389. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3390. break;
  3391. case 12:
  3392. msm_route_ec_ref_rx = 12;
  3393. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3394. break;
  3395. case 13:
  3396. msm_route_ec_ref_rx = 13;
  3397. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3398. break;
  3399. case 14:
  3400. msm_route_ec_ref_rx = 14;
  3401. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3402. break;
  3403. case 15:
  3404. msm_route_ec_ref_rx = 15;
  3405. ec_ref_port_id = SLIMBUS_6_RX;
  3406. break;
  3407. case 16:
  3408. msm_route_ec_ref_rx = 16;
  3409. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3410. break;
  3411. case 17:
  3412. msm_route_ec_ref_rx = 17;
  3413. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3414. break;
  3415. case 18:
  3416. msm_route_ec_ref_rx = 18;
  3417. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3418. break;
  3419. case 19:
  3420. msm_route_ec_ref_rx = 19;
  3421. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3422. break;
  3423. case 20:
  3424. msm_route_ec_ref_rx = 20;
  3425. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3426. break;
  3427. case 21:
  3428. msm_route_ec_ref_rx = 21;
  3429. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3430. break;
  3431. case 22:
  3432. msm_route_ec_ref_rx = 22;
  3433. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3434. break;
  3435. case 23:
  3436. msm_route_ec_ref_rx = 23;
  3437. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3438. break;
  3439. case 24:
  3440. msm_route_ec_ref_rx = 24;
  3441. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3442. break;
  3443. case 25:
  3444. msm_route_ec_ref_rx = 25;
  3445. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3446. break;
  3447. case 26:
  3448. msm_route_ec_ref_rx = 26;
  3449. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3450. break;
  3451. case 27:
  3452. msm_route_ec_ref_rx = 27;
  3453. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3454. break;
  3455. case 28:
  3456. msm_route_ec_ref_rx = 28;
  3457. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3458. break;
  3459. default:
  3460. msm_route_ec_ref_rx = 0; /* NONE */
  3461. pr_err("%s EC ref rx %ld not valid\n",
  3462. __func__, ucontrol->value.integer.value[0]);
  3463. ec_ref_port_id = AFE_PORT_INVALID;
  3464. break;
  3465. }
  3466. adm_ec_ref_rx_id(ec_ref_port_id);
  3467. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3468. __func__, msm_route_ec_ref_rx);
  3469. mutex_unlock(&routing_lock);
  3470. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3471. msm_route_ec_ref_rx, e, update);
  3472. return 0;
  3473. }
  3474. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3475. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3476. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3477. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3478. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3479. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3480. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3481. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3482. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2"
  3483. };
  3484. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3485. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3486. };
  3487. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3488. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3489. msm_route_ec_ref_rx_enum[0],
  3490. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3491. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3492. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3493. msm_route_ec_ref_rx_enum[0],
  3494. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3495. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3496. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3497. msm_route_ec_ref_rx_enum[0],
  3498. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3499. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3500. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3501. msm_route_ec_ref_rx_enum[0],
  3502. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3503. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3504. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3505. msm_route_ec_ref_rx_enum[0],
  3506. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3507. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3508. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3509. msm_route_ec_ref_rx_enum[0],
  3510. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3511. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3512. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3513. msm_route_ec_ref_rx_enum[0],
  3514. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3515. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3516. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3517. msm_route_ec_ref_rx_enum[0],
  3518. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3519. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3520. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3521. msm_route_ec_ref_rx_enum[0],
  3522. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3523. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3524. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3525. msm_route_ec_ref_rx_enum[0],
  3526. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3527. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3528. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3529. msm_route_ec_ref_rx_enum[0],
  3530. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3531. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3532. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3533. msm_route_ec_ref_rx_enum[0],
  3534. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3535. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3536. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3537. msm_route_ec_ref_rx_enum[0],
  3538. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3539. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3540. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3541. msm_route_ec_ref_rx_enum[0],
  3542. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3543. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3544. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3545. msm_route_ec_ref_rx_enum[0],
  3546. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3547. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3548. struct snd_ctl_elem_value *ucontrol)
  3549. {
  3550. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3551. mutex_lock(&routing_lock);
  3552. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3553. mutex_unlock(&routing_lock);
  3554. return 0;
  3555. }
  3556. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3557. struct snd_ctl_elem_value *ucontrol)
  3558. {
  3559. struct snd_soc_dapm_widget *widget =
  3560. snd_soc_dapm_kcontrol_widget(kcontrol);
  3561. int mux = ucontrol->value.enumerated.item[0];
  3562. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3563. int ret = 1;
  3564. bool state = true;
  3565. uint16_t ext_ec_ref_port_id;
  3566. struct snd_soc_dapm_update *update = NULL;
  3567. if (mux >= e->items) {
  3568. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3569. return -EINVAL;
  3570. }
  3571. mutex_lock(&routing_lock);
  3572. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3573. switch (msm_route_ext_ec_ref) {
  3574. case EXT_EC_REF_PRI_MI2S_TX:
  3575. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3576. break;
  3577. case EXT_EC_REF_SEC_MI2S_TX:
  3578. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3579. break;
  3580. case EXT_EC_REF_TERT_MI2S_TX:
  3581. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3582. break;
  3583. case EXT_EC_REF_QUAT_MI2S_TX:
  3584. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3585. break;
  3586. case EXT_EC_REF_QUIN_MI2S_TX:
  3587. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3588. break;
  3589. case EXT_EC_REF_SLIM_1_TX:
  3590. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3591. break;
  3592. case EXT_EC_REF_SEC_TDM_TX:
  3593. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3594. break;
  3595. case EXT_EC_REF_NONE:
  3596. default:
  3597. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3598. state = false;
  3599. break;
  3600. }
  3601. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3602. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3603. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3604. mutex_unlock(&routing_lock);
  3605. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3606. update);
  3607. } else {
  3608. ret = -EINVAL;
  3609. mutex_unlock(&routing_lock);
  3610. }
  3611. return ret;
  3612. }
  3613. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3614. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3615. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3616. "SLIM_1_TX", "SEC_TDM_TX"};
  3617. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3618. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3619. };
  3620. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3621. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3622. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3623. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3624. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3625. MSM_BACKEND_DAI_PRI_I2S_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3629. MSM_BACKEND_DAI_PRI_I2S_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_PRI_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_PRI_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_PRI_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_PRI_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_PRI_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_PRI_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3657. MSM_BACKEND_DAI_PRI_I2S_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3661. MSM_BACKEND_DAI_PRI_I2S_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3665. MSM_BACKEND_DAI_PRI_I2S_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3669. MSM_BACKEND_DAI_PRI_I2S_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3673. MSM_BACKEND_DAI_PRI_I2S_RX,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3675. msm_routing_put_audio_mixer),
  3676. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3677. MSM_BACKEND_DAI_PRI_I2S_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3681. MSM_BACKEND_DAI_PRI_I2S_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3685. MSM_BACKEND_DAI_PRI_I2S_RX,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3687. msm_routing_put_audio_mixer),
  3688. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3689. MSM_BACKEND_DAI_PRI_I2S_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3693. MSM_BACKEND_DAI_PRI_I2S_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3697. MSM_BACKEND_DAI_PRI_I2S_RX,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3699. msm_routing_put_audio_mixer),
  3700. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3701. MSM_BACKEND_DAI_PRI_I2S_RX,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3703. msm_routing_put_audio_mixer),
  3704. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3705. MSM_BACKEND_DAI_PRI_I2S_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. };
  3709. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_SEC_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_SEC_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SEC_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SEC_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SEC_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SEC_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SEC_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SEC_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_SEC_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_SEC_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_SEC_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_SEC_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_SEC_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_SEC_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_SEC_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_SEC_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_SEC_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3779. MSM_BACKEND_DAI_SEC_I2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3783. MSM_BACKEND_DAI_SEC_I2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3787. MSM_BACKEND_DAI_SEC_I2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3791. MSM_BACKEND_DAI_SEC_I2S_RX,
  3792. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3793. msm_routing_put_audio_mixer),
  3794. };
  3795. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3796. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SPDIF_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SPDIF_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SPDIF_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SPDIF_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SPDIF_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SPDIF_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SPDIF_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SPDIF_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SPDIF_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SPDIF_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SPDIF_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SPDIF_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SPDIF_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SPDIF_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SPDIF_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SPDIF_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SPDIF_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3865. MSM_BACKEND_DAI_SPDIF_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3869. MSM_BACKEND_DAI_SPDIF_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3873. MSM_BACKEND_DAI_SPDIF_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3877. MSM_BACKEND_DAI_SPDIF_RX,
  3878. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3879. msm_routing_put_audio_mixer),
  3880. };
  3881. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3882. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3943. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. };
  3947. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. };
  4033. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4034. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4111. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4115. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. };
  4119. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4120. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_MI2S_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4197. MSM_BACKEND_DAI_MI2S_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4201. MSM_BACKEND_DAI_MI2S_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. };
  4205. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4206. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4283. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4287. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. };
  4291. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4292. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4373. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. };
  4377. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4378. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. };
  4455. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. };
  4461. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4462. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. };
  4547. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. };
  4633. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4634. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. };
  4699. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4700. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. };
  4765. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_HDMI_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_HDMI_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_HDMI_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_HDMI_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_HDMI_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_HDMI_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_HDMI_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_HDMI_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_HDMI_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_HDMI_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_HDMI_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_HDMI_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_HDMI_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_HDMI_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_HDMI_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_HDMI_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_HDMI_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_HDMI_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_HDMI_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_HDMI_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_HDMI_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. };
  4851. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4852. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. };
  4917. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4918. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. };
  4983. /* incall music delivery mixer */
  4984. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  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_VOICE_PLAYBACK_TX,
  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_VOICE_PLAYBACK_TX,
  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_VOICE_PLAYBACK_TX,
  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 incall_music2_delivery_mixer_controls[] = {
  5003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  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_VOICE2_PLAYBACK_TX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. };
  5020. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. };
  5038. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5039. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. };
  5104. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. };
  5170. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. };
  5236. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5298. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. };
  5302. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_USB_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_USB_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_USB_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_USB_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_USB_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_USB_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_USB_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_USB_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_USB_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_USB_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_USB_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_USB_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_USB_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_USB_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_USB_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_USB_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. };
  5368. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5369. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. };
  5454. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. };
  5520. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_INT_FM_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_INT_FM_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_FM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_FM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_FM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_FM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_FM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_FM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_INT_FM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_INT_FM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_INT_FM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_INT_FM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_INT_FM_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_INT_FM_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_INT_FM_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_INT_FM_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_INT_FM_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_INT_FM_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_INT_FM_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_INT_FM_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_INT_FM_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. };
  5606. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_AFE_PCM_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_AFE_PCM_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_AFE_PCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_AFE_PCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_AFE_PCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_AFE_PCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_AFE_PCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_AFE_PCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_AFE_PCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_AFE_PCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_AFE_PCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_AFE_PCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_AFE_PCM_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_AFE_PCM_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_AFE_PCM_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_AFE_PCM_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_AFE_PCM_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_AFE_PCM_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_AFE_PCM_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_AFE_PCM_RX,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_AFE_PCM_RX,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. };
  5692. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_AUXPCM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_AUXPCM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_AUXPCM_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_AUXPCM_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_AUXPCM_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_AUXPCM_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_AUXPCM_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_AUXPCM_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_AUXPCM_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_AUXPCM_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_AUXPCM_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_AUXPCM_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_AUXPCM_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_AUXPCM_RX,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_AUXPCM_RX,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. };
  5778. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. };
  5864. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. };
  5930. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5931. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. };
  5996. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. };
  6062. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. };
  6128. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6129. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. };
  6194. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. };
  6260. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. };
  6326. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. };
  6392. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. };
  6458. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. };
  6524. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6525. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. };
  6590. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6591. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. };
  6656. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. };
  6722. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. };
  6788. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. };
  6854. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6855. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. };
  6920. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. };
  6986. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. };
  7052. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7053. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. };
  7118. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7119. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. };
  7188. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7189. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. };
  7254. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7255. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. };
  7324. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7325. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. };
  7394. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7395. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. };
  7464. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7465. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. };
  7534. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. };
  7600. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7601. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. };
  7670. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. };
  7740. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. };
  7810. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7811. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_PRI_I2S_TX,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_MI2S_TX,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_AUXPCM_TX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_INT_FM_TX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_AFE_PCM_TX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_USB_TX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. };
  8012. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8013. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_INT_FM_TX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_MI2S_TX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_USB_TX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. };
  8170. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_INT_FM_TX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_MI2S_TX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_AFE_PCM_TX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_AUXPCM_TX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. };
  8328. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8329. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_TX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_AFE_PCM_TX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  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_0", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_USB_TX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. };
  8482. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8483. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_INT_FM_TX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_MI2S_TX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AFE_PCM_TX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AUXPCM_TX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_USB_TX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. };
  8660. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8661. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_INT_FM_TX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_AUXPCM_TX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_USB_TX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. };
  8818. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8819. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_INT_FM_TX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_AFE_PCM_TX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_USB_TX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. };
  8980. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_INT_FM_TX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_AFE_PCM_TX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_USB_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_MI2S_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_AUXPCM_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. };
  9142. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9143. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_INT_FM_TX,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_AFE_PCM_TX,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. };
  9244. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9245. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_INT_FM_TX,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_AFE_PCM_TX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_USB_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_MI2S_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_AUXPCM_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. };
  9370. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9371. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_INT_FM_TX,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_AFE_PCM_TX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. };
  9432. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9433. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_INT_FM_TX,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_AFE_PCM_TX,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. };
  9494. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9495. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_INT_FM_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_AFE_PCM_TX,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. };
  9556. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. };
  9678. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9679. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_INT_FM_TX,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_AFE_PCM_TX,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. };
  9740. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9741. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_INT_FM_TX,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_AFE_PCM_TX,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. };
  9802. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9803. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_PRI_I2S_RX,
  9805. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9806. msm_routing_put_voice_mixer),
  9807. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_PRI_I2S_RX,
  9809. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9810. msm_routing_put_voice_mixer),
  9811. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_PRI_I2S_RX,
  9813. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9814. msm_routing_put_voice_mixer),
  9815. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_PRI_I2S_RX,
  9817. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9818. msm_routing_put_voice_mixer),
  9819. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_PRI_I2S_RX,
  9821. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9822. msm_routing_put_voice_mixer),
  9823. };
  9824. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9825. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEC_I2S_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_SEC_I2S_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_SEC_I2S_RX,
  9835. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9836. msm_routing_put_voice_mixer),
  9837. };
  9838. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9839. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9841. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9842. msm_routing_put_voice_mixer),
  9843. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9845. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9846. msm_routing_put_voice_mixer),
  9847. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9850. msm_routing_put_voice_mixer),
  9851. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9853. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9854. msm_routing_put_voice_mixer),
  9855. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9857. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9858. msm_routing_put_voice_mixer),
  9859. };
  9860. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9861. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9863. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9864. msm_routing_put_voice_mixer),
  9865. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9867. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9868. msm_routing_put_voice_mixer),
  9869. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9871. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9872. msm_routing_put_voice_mixer),
  9873. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9875. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9876. msm_routing_put_voice_mixer),
  9877. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9879. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9880. msm_routing_put_voice_mixer),
  9881. };
  9882. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9883. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9885. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9886. msm_routing_put_voice_mixer),
  9887. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9889. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9890. msm_routing_put_voice_mixer),
  9891. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9894. msm_routing_put_voice_mixer),
  9895. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9897. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9898. msm_routing_put_voice_mixer),
  9899. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9901. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9902. msm_routing_put_voice_mixer),
  9903. };
  9904. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9905. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_USB_RX,
  9907. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9908. msm_routing_put_voice_mixer),
  9909. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_USB_RX,
  9911. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9912. msm_routing_put_voice_mixer),
  9913. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_USB_RX,
  9915. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9916. msm_routing_put_voice_mixer),
  9917. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_USB_RX,
  9919. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9920. msm_routing_put_voice_mixer),
  9921. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_USB_RX,
  9923. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9924. msm_routing_put_voice_mixer),
  9925. };
  9926. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9927. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9929. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9930. msm_routing_put_voice_mixer),
  9931. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9933. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9934. msm_routing_put_voice_mixer),
  9935. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9937. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9938. msm_routing_put_voice_mixer),
  9939. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9941. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9942. msm_routing_put_voice_mixer),
  9943. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9945. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9946. msm_routing_put_voice_mixer),
  9947. };
  9948. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9949. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9951. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9952. msm_routing_put_voice_mixer),
  9953. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9955. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9956. msm_routing_put_voice_mixer),
  9957. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9959. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9960. msm_routing_put_voice_mixer),
  9961. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9963. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9964. msm_routing_put_voice_mixer),
  9965. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9967. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9968. msm_routing_put_voice_mixer),
  9969. };
  9970. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9971. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9973. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9974. msm_routing_put_voice_mixer),
  9975. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9977. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9978. msm_routing_put_voice_mixer),
  9979. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9981. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9982. msm_routing_put_voice_mixer),
  9983. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9985. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9986. msm_routing_put_voice_mixer),
  9987. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9989. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9990. msm_routing_put_voice_mixer),
  9991. };
  9992. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9993. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_MI2S_RX,
  9995. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9996. msm_routing_put_voice_mixer),
  9997. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_MI2S_RX,
  9999. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10000. msm_routing_put_voice_mixer),
  10001. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_MI2S_RX,
  10003. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10004. msm_routing_put_voice_mixer),
  10005. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_MI2S_RX,
  10007. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10008. msm_routing_put_voice_mixer),
  10009. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_MI2S_RX,
  10011. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10012. msm_routing_put_voice_mixer),
  10013. };
  10014. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10015. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10017. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10018. msm_routing_put_voice_mixer),
  10019. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10021. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10022. msm_routing_put_voice_mixer),
  10023. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10025. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10026. msm_routing_put_voice_mixer),
  10027. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10029. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10030. msm_routing_put_voice_mixer),
  10031. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10033. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10034. msm_routing_put_voice_mixer),
  10035. };
  10036. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10037. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10039. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10040. msm_routing_put_voice_mixer),
  10041. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10043. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10044. msm_routing_put_voice_mixer),
  10045. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10047. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10048. msm_routing_put_voice_mixer),
  10049. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10051. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10052. msm_routing_put_voice_mixer),
  10053. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10055. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10056. msm_routing_put_voice_mixer),
  10057. };
  10058. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10059. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10062. msm_routing_put_voice_mixer),
  10063. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10065. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10066. msm_routing_put_voice_mixer),
  10067. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10069. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10070. msm_routing_put_voice_mixer),
  10071. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10073. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10074. msm_routing_put_voice_mixer),
  10075. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10077. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10078. msm_routing_put_voice_mixer),
  10079. };
  10080. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10081. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10083. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10084. msm_routing_put_voice_mixer),
  10085. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10087. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10088. msm_routing_put_voice_mixer),
  10089. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10091. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10092. msm_routing_put_voice_mixer),
  10093. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10095. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10096. msm_routing_put_voice_mixer),
  10097. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10099. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10100. msm_routing_put_voice_mixer),
  10101. };
  10102. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10103. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10106. msm_routing_put_voice_mixer),
  10107. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10109. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10110. msm_routing_put_voice_mixer),
  10111. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10113. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10114. msm_routing_put_voice_mixer),
  10115. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10117. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10118. msm_routing_put_voice_mixer),
  10119. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10121. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10122. msm_routing_put_voice_mixer),
  10123. };
  10124. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10125. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10127. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10128. msm_routing_put_voice_mixer),
  10129. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10131. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10132. msm_routing_put_voice_mixer),
  10133. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10135. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10136. msm_routing_put_voice_mixer),
  10137. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10139. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10140. msm_routing_put_voice_mixer),
  10141. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10143. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10144. msm_routing_put_voice_mixer),
  10145. };
  10146. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10147. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_AFE_PCM_RX,
  10149. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10150. msm_routing_put_voice_mixer),
  10151. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_AFE_PCM_RX,
  10153. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10154. msm_routing_put_voice_mixer),
  10155. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_AFE_PCM_RX,
  10157. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10158. msm_routing_put_voice_mixer),
  10159. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_AFE_PCM_RX,
  10161. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10162. msm_routing_put_voice_mixer),
  10163. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_AFE_PCM_RX,
  10165. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10166. msm_routing_put_voice_mixer),
  10167. };
  10168. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10169. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_AUXPCM_RX,
  10171. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10172. msm_routing_put_voice_mixer),
  10173. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_AUXPCM_RX,
  10175. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10176. msm_routing_put_voice_mixer),
  10177. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_AUXPCM_RX,
  10179. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10180. msm_routing_put_voice_mixer),
  10181. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_AUXPCM_RX,
  10183. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10184. msm_routing_put_voice_mixer),
  10185. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_AUXPCM_RX,
  10187. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10188. msm_routing_put_voice_mixer),
  10189. };
  10190. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10191. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10193. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10194. msm_routing_put_voice_mixer),
  10195. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10197. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10198. msm_routing_put_voice_mixer),
  10199. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10201. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10202. msm_routing_put_voice_mixer),
  10203. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10205. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10206. msm_routing_put_voice_mixer),
  10207. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10209. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10210. msm_routing_put_voice_mixer),
  10211. };
  10212. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10213. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10215. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10216. msm_routing_put_voice_mixer),
  10217. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10219. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10220. msm_routing_put_voice_mixer),
  10221. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10223. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10224. msm_routing_put_voice_mixer),
  10225. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10227. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10228. msm_routing_put_voice_mixer),
  10229. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10231. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10232. msm_routing_put_voice_mixer),
  10233. };
  10234. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10235. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10238. msm_routing_put_voice_mixer),
  10239. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10241. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10242. msm_routing_put_voice_mixer),
  10243. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10246. msm_routing_put_voice_mixer),
  10247. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10249. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10250. msm_routing_put_voice_mixer),
  10251. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10253. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10254. msm_routing_put_voice_mixer),
  10255. };
  10256. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10257. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10259. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10260. msm_routing_put_voice_mixer),
  10261. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10263. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10264. msm_routing_put_voice_mixer),
  10265. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10267. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10268. msm_routing_put_voice_mixer),
  10269. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10271. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10272. msm_routing_put_voice_mixer),
  10273. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10275. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10276. msm_routing_put_voice_mixer),
  10277. };
  10278. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10279. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_HDMI_RX,
  10281. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10282. msm_routing_put_voice_mixer),
  10283. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_HDMI_RX,
  10285. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10286. msm_routing_put_voice_mixer),
  10287. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_HDMI_RX,
  10289. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10290. msm_routing_put_voice_mixer),
  10291. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_HDMI_RX,
  10293. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10294. msm_routing_put_voice_mixer),
  10295. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_HDMI_RX,
  10297. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10298. msm_routing_put_voice_mixer),
  10299. };
  10300. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10301. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10303. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10304. msm_routing_put_voice_mixer),
  10305. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10307. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10308. msm_routing_put_voice_mixer),
  10309. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10311. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10312. msm_routing_put_voice_mixer),
  10313. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10315. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10316. msm_routing_put_voice_mixer),
  10317. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10319. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10320. msm_routing_put_voice_mixer),
  10321. };
  10322. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10323. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10325. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10326. msm_routing_put_voice_mixer),
  10327. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10329. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10330. msm_routing_put_voice_mixer),
  10331. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10333. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10334. msm_routing_put_voice_mixer),
  10335. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10337. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10338. msm_routing_put_voice_mixer),
  10339. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10341. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10342. msm_routing_put_voice_mixer),
  10343. };
  10344. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10345. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10347. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10348. msm_routing_put_voice_mixer),
  10349. };
  10350. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10351. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10353. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10354. msm_routing_put_voice_mixer),
  10355. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10357. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10358. msm_routing_put_voice_mixer),
  10359. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10361. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10362. msm_routing_put_voice_mixer),
  10363. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10365. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10366. msm_routing_put_voice_mixer),
  10367. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10369. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10370. msm_routing_put_voice_mixer),
  10371. };
  10372. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10373. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10375. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10376. msm_routing_put_voice_mixer),
  10377. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10379. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10380. msm_routing_put_voice_mixer),
  10381. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10383. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10384. msm_routing_put_voice_mixer),
  10385. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10387. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10388. msm_routing_put_voice_mixer),
  10389. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10391. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10392. msm_routing_put_voice_mixer),
  10393. };
  10394. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10395. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_EXTPROC_RX,
  10397. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10398. msm_routing_put_voice_mixer),
  10399. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_EXTPROC_RX,
  10401. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10402. msm_routing_put_voice_mixer),
  10403. };
  10404. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10405. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10407. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10408. msm_routing_put_voice_mixer),
  10409. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10411. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10412. msm_routing_put_voice_mixer),
  10413. };
  10414. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10415. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10417. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10418. msm_routing_put_voice_mixer),
  10419. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10421. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10422. msm_routing_put_voice_mixer),
  10423. };
  10424. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10425. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_PRI_I2S_TX,
  10427. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10428. msm_routing_put_voice_mixer),
  10429. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_MI2S_TX,
  10431. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10432. msm_routing_put_voice_mixer),
  10433. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10435. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10436. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10438. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10439. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10441. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10442. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10443. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10444. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10445. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10447. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10448. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10450. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10451. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10453. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10454. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10456. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10457. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10459. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10460. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10462. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10463. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10465. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10466. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10467. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10468. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10469. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10471. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10472. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_USB_TX,
  10474. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10475. msm_routing_put_voice_mixer),
  10476. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10478. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10479. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10481. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10484. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10485. };
  10486. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10487. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_PRI_I2S_TX,
  10489. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10490. msm_routing_put_voice_mixer),
  10491. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_MI2S_TX,
  10493. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10494. msm_routing_put_voice_mixer),
  10495. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10497. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10498. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10501. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10503. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10504. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10506. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10507. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10509. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10510. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10512. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10513. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10515. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10516. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10518. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10519. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10521. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10522. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10524. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10525. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10527. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10528. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10530. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10531. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10533. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10534. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10536. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10539. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10540. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10542. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10543. };
  10544. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10545. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_PRI_I2S_TX,
  10547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_MI2S_TX,
  10551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10555. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10556. msm_routing_put_voice_mixer),
  10557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10560. msm_routing_put_voice_mixer),
  10561. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_AFE_PCM_TX,
  10563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10564. msm_routing_put_voice_mixer),
  10565. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_AUXPCM_TX,
  10567. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10568. msm_routing_put_voice_mixer),
  10569. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10571. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10572. msm_routing_put_voice_mixer),
  10573. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10576. msm_routing_put_voice_mixer),
  10577. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10580. msm_routing_put_voice_mixer),
  10581. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10583. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10584. msm_routing_put_voice_mixer),
  10585. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10587. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10588. msm_routing_put_voice_mixer),
  10589. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10591. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10592. msm_routing_put_voice_mixer),
  10593. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10595. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10596. msm_routing_put_voice_mixer),
  10597. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10599. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10600. msm_routing_put_voice_mixer),
  10601. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10604. msm_routing_put_voice_mixer),
  10605. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_USB_TX,
  10607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10608. msm_routing_put_voice_mixer),
  10609. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10611. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10614. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10615. };
  10616. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10617. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_EXTPROC_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("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_INT_BT_SCO_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("SLIM_1_TX", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_EXTPROC_EC_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("MI2S_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_MI2S_TX,
  10635. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10636. msm_routing_put_voice_stub_mixer),
  10637. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10639. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10640. msm_routing_put_voice_stub_mixer),
  10641. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10643. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10644. msm_routing_put_voice_stub_mixer),
  10645. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_INT3_MI2S_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("QUAT_MI2S_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_QUATERNARY_MI2S_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("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_AUXPCM_TX,
  10655. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10656. msm_routing_put_voice_stub_mixer),
  10657. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10659. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10660. msm_routing_put_voice_stub_mixer),
  10661. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10663. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10664. msm_routing_put_voice_stub_mixer),
  10665. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10667. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10668. msm_routing_put_voice_stub_mixer),
  10669. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10671. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10672. msm_routing_put_voice_stub_mixer),
  10673. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10675. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10676. msm_routing_put_voice_stub_mixer),
  10677. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10679. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10680. msm_routing_put_voice_stub_mixer),
  10681. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_AFE_PCM_TX,
  10683. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10684. msm_routing_put_voice_stub_mixer),
  10685. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10687. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10688. msm_routing_put_voice_stub_mixer),
  10689. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10691. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10692. msm_routing_put_voice_stub_mixer),
  10693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10695. 1, 0, msm_routing_get_voice_stub_mixer,
  10696. msm_routing_put_voice_stub_mixer),
  10697. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10699. 1, 0, msm_routing_get_voice_stub_mixer,
  10700. msm_routing_put_voice_stub_mixer),
  10701. };
  10702. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10703. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_EXTPROC_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("SLIM_1_TX", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_EXTPROC_EC_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("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_AUXPCM_TX,
  10717. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10718. msm_routing_put_voice_stub_mixer),
  10719. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10721. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10722. msm_routing_put_voice_stub_mixer),
  10723. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10725. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10726. msm_routing_put_voice_stub_mixer),
  10727. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10729. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10730. msm_routing_put_voice_stub_mixer),
  10731. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10733. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10734. msm_routing_put_voice_stub_mixer),
  10735. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10737. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10738. msm_routing_put_voice_stub_mixer),
  10739. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10741. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10742. msm_routing_put_voice_stub_mixer),
  10743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_AFE_PCM_TX,
  10745. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10746. msm_routing_put_voice_stub_mixer),
  10747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10749. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10750. msm_routing_put_voice_stub_mixer),
  10751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10753. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10754. msm_routing_put_voice_stub_mixer),
  10755. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10757. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10758. msm_routing_put_voice_stub_mixer),
  10759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10761. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10762. msm_routing_put_voice_stub_mixer),
  10763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10765. 1, 0, msm_routing_get_voice_stub_mixer,
  10766. msm_routing_put_voice_stub_mixer),
  10767. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10769. 1, 0, msm_routing_get_voice_stub_mixer,
  10770. msm_routing_put_voice_stub_mixer),
  10771. };
  10772. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10773. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_EXTPROC_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("SLIM_1_TX", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_SLIMBUS_1_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("STUB_1_TX_HL", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_EXTPROC_EC_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("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_AUXPCM_TX,
  10787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10788. msm_routing_put_voice_stub_mixer),
  10789. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10791. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10792. msm_routing_put_voice_stub_mixer),
  10793. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10796. msm_routing_put_voice_stub_mixer),
  10797. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10799. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10800. msm_routing_put_voice_stub_mixer),
  10801. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10803. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10804. msm_routing_put_voice_stub_mixer),
  10805. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10807. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10808. msm_routing_put_voice_stub_mixer),
  10809. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10811. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10812. msm_routing_put_voice_stub_mixer),
  10813. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_AFE_PCM_TX,
  10815. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10816. msm_routing_put_voice_stub_mixer),
  10817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10819. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10820. msm_routing_put_voice_stub_mixer),
  10821. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10823. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10824. msm_routing_put_voice_stub_mixer),
  10825. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10827. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10828. msm_routing_put_voice_stub_mixer),
  10829. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10831. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10832. msm_routing_put_voice_stub_mixer),
  10833. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10835. 1, 0, msm_routing_get_voice_stub_mixer,
  10836. msm_routing_put_voice_stub_mixer),
  10837. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10839. 1, 0, msm_routing_get_voice_stub_mixer,
  10840. msm_routing_put_voice_stub_mixer),
  10841. };
  10842. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10843. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_PRI_I2S_TX,
  10845. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10846. msm_routing_put_voice_mixer),
  10847. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10850. msm_routing_put_voice_mixer),
  10851. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10853. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10854. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10855. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_AFE_PCM_TX,
  10857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10858. msm_routing_put_voice_mixer),
  10859. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_AUXPCM_TX,
  10861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10862. msm_routing_put_voice_mixer),
  10863. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10866. msm_routing_put_voice_mixer),
  10867. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10870. msm_routing_put_voice_mixer),
  10871. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10874. msm_routing_put_voice_mixer),
  10875. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10878. msm_routing_put_voice_mixer),
  10879. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_MI2S_TX,
  10881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10882. msm_routing_put_voice_mixer),
  10883. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10886. msm_routing_put_voice_mixer),
  10887. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10890. msm_routing_put_voice_mixer),
  10891. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10894. msm_routing_put_voice_mixer),
  10895. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10898. msm_routing_put_voice_mixer),
  10899. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10902. msm_routing_put_voice_mixer),
  10903. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_USB_TX,
  10905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10906. msm_routing_put_voice_mixer),
  10907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10909. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10912. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10913. };
  10914. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10915. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10917. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10918. msm_routing_put_port_mixer),
  10919. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10921. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10922. msm_routing_put_port_mixer),
  10923. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10926. msm_routing_put_port_mixer),
  10927. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10930. msm_routing_put_port_mixer),
  10931. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10933. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10934. msm_routing_put_port_mixer),
  10935. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10937. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10938. msm_routing_put_port_mixer),
  10939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10941. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10942. msm_routing_put_port_mixer),
  10943. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10945. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10946. msm_routing_put_port_mixer),
  10947. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10949. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10950. msm_routing_put_port_mixer),
  10951. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10953. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10954. msm_routing_put_port_mixer),
  10955. };
  10956. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10957. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10959. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10960. msm_routing_put_port_mixer),
  10961. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10963. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10964. msm_routing_put_port_mixer),
  10965. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10967. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10968. msm_routing_put_port_mixer),
  10969. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10971. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10972. msm_routing_put_port_mixer),
  10973. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10975. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10976. msm_routing_put_port_mixer),
  10977. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10979. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10980. msm_routing_put_port_mixer),
  10981. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10983. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10984. msm_routing_put_port_mixer),
  10985. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10987. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10988. msm_routing_put_port_mixer),
  10989. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10991. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10992. msm_routing_put_port_mixer),
  10993. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10995. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10996. msm_routing_put_port_mixer),
  10997. };
  10998. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10999. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11001. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11002. msm_routing_put_port_mixer),
  11003. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11005. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11006. msm_routing_put_port_mixer),
  11007. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11009. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11010. msm_routing_put_port_mixer),
  11011. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11013. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11014. msm_routing_put_port_mixer),
  11015. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11017. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11018. msm_routing_put_port_mixer),
  11019. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11021. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11022. msm_routing_put_port_mixer),
  11023. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11025. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11026. msm_routing_put_port_mixer),
  11027. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11029. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11030. msm_routing_put_port_mixer),
  11031. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11033. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11034. msm_routing_put_port_mixer),
  11035. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11037. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11038. msm_routing_put_port_mixer),
  11039. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11041. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11042. msm_routing_put_port_mixer),
  11043. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11045. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11046. msm_routing_put_port_mixer),
  11047. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11049. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11050. msm_routing_put_port_mixer),
  11051. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11053. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11054. msm_routing_put_port_mixer),
  11055. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11057. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11058. msm_routing_put_port_mixer),
  11059. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11061. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11062. msm_routing_put_port_mixer),
  11063. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11065. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11066. msm_routing_put_port_mixer),
  11067. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11069. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11070. msm_routing_put_port_mixer),
  11071. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11073. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11074. msm_routing_put_port_mixer),
  11075. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11077. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11078. msm_routing_put_port_mixer),
  11079. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11082. msm_routing_put_port_mixer),
  11083. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11085. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11086. msm_routing_put_port_mixer),
  11087. };
  11088. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11089. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_AUXPCM_RX,
  11091. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11092. msm_routing_put_port_mixer),
  11093. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_AUXPCM_RX,
  11095. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11096. msm_routing_put_port_mixer),
  11097. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_AUXPCM_RX,
  11099. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11100. msm_routing_put_port_mixer),
  11101. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_AUXPCM_RX,
  11103. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11104. msm_routing_put_port_mixer),
  11105. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_AUXPCM_RX,
  11107. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11108. msm_routing_put_port_mixer),
  11109. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_AUXPCM_RX,
  11111. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11112. msm_routing_put_port_mixer),
  11113. };
  11114. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11115. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11117. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11118. msm_routing_put_port_mixer),
  11119. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11121. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11122. msm_routing_put_port_mixer),
  11123. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11125. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11126. msm_routing_put_port_mixer),
  11127. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11129. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11130. msm_routing_put_port_mixer),
  11131. };
  11132. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11133. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11135. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11139. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11140. msm_routing_put_port_mixer),
  11141. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11143. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11144. msm_routing_put_port_mixer),
  11145. };
  11146. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11147. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11149. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11153. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11154. msm_routing_put_port_mixer),
  11155. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11157. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11158. msm_routing_put_port_mixer),
  11159. };
  11160. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11161. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11163. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11164. msm_routing_put_port_mixer),
  11165. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11167. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11168. msm_routing_put_port_mixer),
  11169. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11171. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11172. msm_routing_put_port_mixer),
  11173. };
  11174. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11177. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11181. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11182. msm_routing_put_port_mixer),
  11183. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11185. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11186. msm_routing_put_port_mixer),
  11187. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11189. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11190. msm_routing_put_port_mixer),
  11191. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11193. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11194. msm_routing_put_port_mixer),
  11195. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11197. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11198. msm_routing_put_port_mixer),
  11199. };
  11200. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11201. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11203. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11204. msm_routing_put_port_mixer),
  11205. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11207. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11211. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11212. msm_routing_put_port_mixer),
  11213. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11215. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11216. msm_routing_put_port_mixer),
  11217. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11219. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11220. msm_routing_put_port_mixer),
  11221. };
  11222. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11223. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11225. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11226. msm_routing_put_port_mixer),
  11227. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11229. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11230. msm_routing_put_port_mixer),
  11231. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11233. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11234. msm_routing_put_port_mixer),
  11235. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11237. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11238. msm_routing_put_port_mixer),
  11239. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11241. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11242. msm_routing_put_port_mixer),
  11243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11246. msm_routing_put_port_mixer),
  11247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11250. msm_routing_put_port_mixer),
  11251. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11253. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11254. msm_routing_put_port_mixer),
  11255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11257. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11258. msm_routing_put_port_mixer),
  11259. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11261. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11262. msm_routing_put_port_mixer),
  11263. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11265. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11266. msm_routing_put_port_mixer),
  11267. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11269. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11270. msm_routing_put_port_mixer),
  11271. };
  11272. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11273. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11275. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11276. msm_routing_put_port_mixer),
  11277. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11279. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11280. msm_routing_put_port_mixer),
  11281. };
  11282. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11283. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_AFE_PCM_RX,
  11285. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11286. msm_routing_put_port_mixer),
  11287. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_AFE_PCM_RX,
  11289. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11290. msm_routing_put_port_mixer),
  11291. };
  11292. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11293. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_HDMI_RX,
  11295. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11296. msm_routing_put_port_mixer),
  11297. };
  11298. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11299. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11301. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11302. msm_routing_put_port_mixer),
  11303. };
  11304. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11305. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11307. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11308. msm_routing_put_port_mixer),
  11309. };
  11310. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11311. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SEC_I2S_RX,
  11313. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11314. msm_routing_put_port_mixer),
  11315. };
  11316. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11317. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_MI2S_RX,
  11319. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11320. msm_routing_put_port_mixer),
  11321. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_MI2S_RX,
  11323. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11324. msm_routing_put_port_mixer),
  11325. };
  11326. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11327. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11329. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11333. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11334. msm_routing_put_port_mixer),
  11335. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11337. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11338. msm_routing_put_port_mixer),
  11339. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11341. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11342. msm_routing_put_port_mixer),
  11343. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11345. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11346. msm_routing_put_port_mixer),
  11347. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11349. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11353. MSM_BACKEND_DAI_QUINARY_MI2S_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_PRI_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("SLIM_8_TX", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11361. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11362. msm_routing_put_port_mixer),
  11363. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11365. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11366. msm_routing_put_port_mixer),
  11367. };
  11368. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11369. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_USB_RX,
  11371. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11372. msm_routing_put_port_mixer),
  11373. };
  11374. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11377. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11378. msm_routing_put_port_mixer),
  11379. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11381. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11382. msm_routing_put_port_mixer),
  11383. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11385. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11386. msm_routing_put_port_mixer),
  11387. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11389. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11390. msm_routing_put_port_mixer),
  11391. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11393. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11394. msm_routing_put_port_mixer),
  11395. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11397. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11398. msm_routing_put_port_mixer),
  11399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11402. msm_routing_put_port_mixer),
  11403. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11405. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11406. msm_routing_put_port_mixer),
  11407. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11409. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11410. msm_routing_put_port_mixer),
  11411. };
  11412. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11413. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11415. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11419. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11420. msm_routing_put_port_mixer),
  11421. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11423. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11424. msm_routing_put_port_mixer),
  11425. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11427. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11428. msm_routing_put_port_mixer),
  11429. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11431. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11432. msm_routing_put_port_mixer),
  11433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11435. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11439. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11440. msm_routing_put_port_mixer),
  11441. };
  11442. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11443. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11445. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11446. msm_routing_get_port_mixer,
  11447. msm_routing_put_port_mixer),
  11448. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11450. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11451. msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11455. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11456. msm_routing_get_port_mixer,
  11457. msm_routing_put_port_mixer),
  11458. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11460. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11461. msm_routing_get_port_mixer,
  11462. msm_routing_put_port_mixer),
  11463. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11465. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11466. msm_routing_get_port_mixer,
  11467. msm_routing_put_port_mixer),
  11468. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11470. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11471. msm_routing_get_port_mixer,
  11472. msm_routing_put_port_mixer),
  11473. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11475. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11476. msm_routing_get_port_mixer,
  11477. msm_routing_put_port_mixer),
  11478. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11480. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11481. msm_routing_get_port_mixer,
  11482. msm_routing_put_port_mixer),
  11483. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11485. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11486. msm_routing_get_port_mixer,
  11487. msm_routing_put_port_mixer),
  11488. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11490. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11491. msm_routing_get_port_mixer,
  11492. msm_routing_put_port_mixer),
  11493. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11495. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11496. msm_routing_get_port_mixer,
  11497. msm_routing_put_port_mixer),
  11498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11501. msm_routing_get_port_mixer,
  11502. msm_routing_put_port_mixer),
  11503. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11505. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11506. msm_routing_get_port_mixer,
  11507. msm_routing_put_port_mixer),
  11508. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11510. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11511. msm_routing_get_port_mixer,
  11512. msm_routing_put_port_mixer),
  11513. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11515. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11516. msm_routing_get_port_mixer,
  11517. msm_routing_put_port_mixer),
  11518. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11520. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11521. msm_routing_get_port_mixer,
  11522. msm_routing_put_port_mixer),
  11523. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11525. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11526. msm_routing_get_port_mixer,
  11527. msm_routing_put_port_mixer),
  11528. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11530. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11531. msm_routing_get_port_mixer,
  11532. msm_routing_put_port_mixer),
  11533. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11535. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11536. msm_routing_get_port_mixer,
  11537. msm_routing_put_port_mixer),
  11538. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11541. msm_routing_get_port_mixer,
  11542. msm_routing_put_port_mixer),
  11543. };
  11544. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11545. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11547. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11548. msm_routing_get_port_mixer,
  11549. msm_routing_put_port_mixer),
  11550. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11552. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11553. msm_routing_get_port_mixer,
  11554. msm_routing_put_port_mixer),
  11555. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11557. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11558. msm_routing_get_port_mixer,
  11559. msm_routing_put_port_mixer),
  11560. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11562. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11563. msm_routing_get_port_mixer,
  11564. msm_routing_put_port_mixer),
  11565. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11567. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11568. msm_routing_get_port_mixer,
  11569. msm_routing_put_port_mixer),
  11570. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11572. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11573. msm_routing_get_port_mixer,
  11574. msm_routing_put_port_mixer),
  11575. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11577. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11578. msm_routing_get_port_mixer,
  11579. msm_routing_put_port_mixer),
  11580. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11582. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11583. msm_routing_get_port_mixer,
  11584. msm_routing_put_port_mixer),
  11585. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11587. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11588. msm_routing_get_port_mixer,
  11589. msm_routing_put_port_mixer),
  11590. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11592. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11593. msm_routing_get_port_mixer,
  11594. msm_routing_put_port_mixer),
  11595. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11597. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11598. msm_routing_get_port_mixer,
  11599. msm_routing_put_port_mixer),
  11600. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11602. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11603. msm_routing_get_port_mixer,
  11604. msm_routing_put_port_mixer),
  11605. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11607. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11608. msm_routing_get_port_mixer,
  11609. msm_routing_put_port_mixer),
  11610. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11611. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11612. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11613. msm_routing_get_port_mixer,
  11614. msm_routing_put_port_mixer),
  11615. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11617. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11618. msm_routing_get_port_mixer,
  11619. msm_routing_put_port_mixer),
  11620. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11623. msm_routing_get_port_mixer,
  11624. msm_routing_put_port_mixer),
  11625. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11627. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11628. msm_routing_get_port_mixer,
  11629. msm_routing_put_port_mixer),
  11630. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11632. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11633. msm_routing_get_port_mixer,
  11634. msm_routing_put_port_mixer),
  11635. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11637. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11638. msm_routing_get_port_mixer,
  11639. msm_routing_put_port_mixer),
  11640. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11643. msm_routing_get_port_mixer,
  11644. msm_routing_put_port_mixer),
  11645. };
  11646. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11647. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11649. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11650. msm_routing_get_port_mixer,
  11651. msm_routing_put_port_mixer),
  11652. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11654. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11655. msm_routing_get_port_mixer,
  11656. msm_routing_put_port_mixer),
  11657. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11659. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11660. msm_routing_get_port_mixer,
  11661. msm_routing_put_port_mixer),
  11662. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11664. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11665. msm_routing_get_port_mixer,
  11666. msm_routing_put_port_mixer),
  11667. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11669. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11670. msm_routing_get_port_mixer,
  11671. msm_routing_put_port_mixer),
  11672. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11674. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11675. msm_routing_get_port_mixer,
  11676. msm_routing_put_port_mixer),
  11677. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11679. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11680. msm_routing_get_port_mixer,
  11681. msm_routing_put_port_mixer),
  11682. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11684. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11685. msm_routing_get_port_mixer,
  11686. msm_routing_put_port_mixer),
  11687. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11689. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11690. msm_routing_get_port_mixer,
  11691. msm_routing_put_port_mixer),
  11692. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11694. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11695. msm_routing_get_port_mixer,
  11696. msm_routing_put_port_mixer),
  11697. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11699. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11700. msm_routing_get_port_mixer,
  11701. msm_routing_put_port_mixer),
  11702. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11704. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11705. msm_routing_get_port_mixer,
  11706. msm_routing_put_port_mixer),
  11707. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11709. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11710. msm_routing_get_port_mixer,
  11711. msm_routing_put_port_mixer),
  11712. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11714. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11715. msm_routing_get_port_mixer,
  11716. msm_routing_put_port_mixer),
  11717. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11719. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11720. msm_routing_get_port_mixer,
  11721. msm_routing_put_port_mixer),
  11722. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11724. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11725. msm_routing_get_port_mixer,
  11726. msm_routing_put_port_mixer),
  11727. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11729. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11730. msm_routing_get_port_mixer,
  11731. msm_routing_put_port_mixer),
  11732. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11734. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11735. msm_routing_get_port_mixer,
  11736. msm_routing_put_port_mixer),
  11737. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11739. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11740. msm_routing_get_port_mixer,
  11741. msm_routing_put_port_mixer),
  11742. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11744. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11745. msm_routing_get_port_mixer,
  11746. msm_routing_put_port_mixer),
  11747. };
  11748. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11749. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11751. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11752. msm_routing_get_port_mixer,
  11753. msm_routing_put_port_mixer),
  11754. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11756. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11757. msm_routing_get_port_mixer,
  11758. msm_routing_put_port_mixer),
  11759. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11762. msm_routing_get_port_mixer,
  11763. msm_routing_put_port_mixer),
  11764. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11766. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11767. msm_routing_get_port_mixer,
  11768. msm_routing_put_port_mixer),
  11769. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11771. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11772. msm_routing_get_port_mixer,
  11773. msm_routing_put_port_mixer),
  11774. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11776. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11777. msm_routing_get_port_mixer,
  11778. msm_routing_put_port_mixer),
  11779. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11781. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11782. msm_routing_get_port_mixer,
  11783. msm_routing_put_port_mixer),
  11784. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11786. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11787. msm_routing_get_port_mixer,
  11788. msm_routing_put_port_mixer),
  11789. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11791. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11792. msm_routing_get_port_mixer,
  11793. msm_routing_put_port_mixer),
  11794. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11796. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11797. msm_routing_get_port_mixer,
  11798. msm_routing_put_port_mixer),
  11799. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11801. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11802. msm_routing_get_port_mixer,
  11803. msm_routing_put_port_mixer),
  11804. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11806. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11807. msm_routing_get_port_mixer,
  11808. msm_routing_put_port_mixer),
  11809. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11811. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11812. msm_routing_get_port_mixer,
  11813. msm_routing_put_port_mixer),
  11814. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11816. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11817. msm_routing_get_port_mixer,
  11818. msm_routing_put_port_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11821. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11822. msm_routing_get_port_mixer,
  11823. msm_routing_put_port_mixer),
  11824. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11826. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11827. msm_routing_get_port_mixer,
  11828. msm_routing_put_port_mixer),
  11829. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11831. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11832. msm_routing_get_port_mixer,
  11833. msm_routing_put_port_mixer),
  11834. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11836. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11837. msm_routing_get_port_mixer,
  11838. msm_routing_put_port_mixer),
  11839. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11841. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11842. msm_routing_get_port_mixer,
  11843. msm_routing_put_port_mixer),
  11844. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11846. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11847. msm_routing_get_port_mixer,
  11848. msm_routing_put_port_mixer),
  11849. };
  11850. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11851. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11853. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11854. msm_routing_get_port_mixer,
  11855. msm_routing_put_port_mixer),
  11856. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11858. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11859. msm_routing_get_port_mixer,
  11860. msm_routing_put_port_mixer),
  11861. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11863. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11864. msm_routing_get_port_mixer,
  11865. msm_routing_put_port_mixer),
  11866. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11868. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11869. msm_routing_get_port_mixer,
  11870. msm_routing_put_port_mixer),
  11871. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11873. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11874. msm_routing_get_port_mixer,
  11875. msm_routing_put_port_mixer),
  11876. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11878. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11879. msm_routing_get_port_mixer,
  11880. msm_routing_put_port_mixer),
  11881. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11883. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11884. msm_routing_get_port_mixer,
  11885. msm_routing_put_port_mixer),
  11886. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11888. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11889. msm_routing_get_port_mixer,
  11890. msm_routing_put_port_mixer),
  11891. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11893. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11894. msm_routing_get_port_mixer,
  11895. msm_routing_put_port_mixer),
  11896. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11898. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11899. msm_routing_get_port_mixer,
  11900. msm_routing_put_port_mixer),
  11901. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11903. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11904. msm_routing_get_port_mixer,
  11905. msm_routing_put_port_mixer),
  11906. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11908. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11909. msm_routing_get_port_mixer,
  11910. msm_routing_put_port_mixer),
  11911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11914. msm_routing_get_port_mixer,
  11915. msm_routing_put_port_mixer),
  11916. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11918. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11919. msm_routing_get_port_mixer,
  11920. msm_routing_put_port_mixer),
  11921. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11923. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11924. msm_routing_get_port_mixer,
  11925. msm_routing_put_port_mixer),
  11926. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11928. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11929. msm_routing_get_port_mixer,
  11930. msm_routing_put_port_mixer),
  11931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11933. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11934. msm_routing_get_port_mixer,
  11935. msm_routing_put_port_mixer),
  11936. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11938. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11939. msm_routing_get_port_mixer,
  11940. msm_routing_put_port_mixer),
  11941. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11943. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11944. msm_routing_get_port_mixer,
  11945. msm_routing_put_port_mixer),
  11946. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11948. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11949. msm_routing_get_port_mixer,
  11950. msm_routing_put_port_mixer),
  11951. };
  11952. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11953. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11955. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11956. msm_routing_get_port_mixer,
  11957. msm_routing_put_port_mixer),
  11958. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11960. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11961. msm_routing_get_port_mixer,
  11962. msm_routing_put_port_mixer),
  11963. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11965. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11966. msm_routing_get_port_mixer,
  11967. msm_routing_put_port_mixer),
  11968. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11970. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11971. msm_routing_get_port_mixer,
  11972. msm_routing_put_port_mixer),
  11973. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11975. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11976. msm_routing_get_port_mixer,
  11977. msm_routing_put_port_mixer),
  11978. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11980. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11981. msm_routing_get_port_mixer,
  11982. msm_routing_put_port_mixer),
  11983. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11985. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11986. msm_routing_get_port_mixer,
  11987. msm_routing_put_port_mixer),
  11988. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11990. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11991. msm_routing_get_port_mixer,
  11992. msm_routing_put_port_mixer),
  11993. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11995. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11996. msm_routing_get_port_mixer,
  11997. msm_routing_put_port_mixer),
  11998. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12000. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12001. msm_routing_get_port_mixer,
  12002. msm_routing_put_port_mixer),
  12003. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12005. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12006. msm_routing_get_port_mixer,
  12007. msm_routing_put_port_mixer),
  12008. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12010. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12011. msm_routing_get_port_mixer,
  12012. msm_routing_put_port_mixer),
  12013. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12015. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12016. msm_routing_get_port_mixer,
  12017. msm_routing_put_port_mixer),
  12018. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12020. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12021. msm_routing_get_port_mixer,
  12022. msm_routing_put_port_mixer),
  12023. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12025. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12026. msm_routing_get_port_mixer,
  12027. msm_routing_put_port_mixer),
  12028. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12030. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12031. msm_routing_get_port_mixer,
  12032. msm_routing_put_port_mixer),
  12033. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12035. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12036. msm_routing_get_port_mixer,
  12037. msm_routing_put_port_mixer),
  12038. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12040. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12041. msm_routing_get_port_mixer,
  12042. msm_routing_put_port_mixer),
  12043. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12045. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12046. msm_routing_get_port_mixer,
  12047. msm_routing_put_port_mixer),
  12048. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12050. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12051. msm_routing_get_port_mixer,
  12052. msm_routing_put_port_mixer),
  12053. };
  12054. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12055. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12057. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12058. msm_routing_get_port_mixer,
  12059. msm_routing_put_port_mixer),
  12060. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12062. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12063. msm_routing_get_port_mixer,
  12064. msm_routing_put_port_mixer),
  12065. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12067. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12068. msm_routing_get_port_mixer,
  12069. msm_routing_put_port_mixer),
  12070. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12072. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12073. msm_routing_get_port_mixer,
  12074. msm_routing_put_port_mixer),
  12075. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12077. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12078. msm_routing_get_port_mixer,
  12079. msm_routing_put_port_mixer),
  12080. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12082. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12083. msm_routing_get_port_mixer,
  12084. msm_routing_put_port_mixer),
  12085. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12087. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12088. msm_routing_get_port_mixer,
  12089. msm_routing_put_port_mixer),
  12090. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12092. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12093. msm_routing_get_port_mixer,
  12094. msm_routing_put_port_mixer),
  12095. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12097. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12098. msm_routing_get_port_mixer,
  12099. msm_routing_put_port_mixer),
  12100. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12102. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12103. msm_routing_get_port_mixer,
  12104. msm_routing_put_port_mixer),
  12105. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12107. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12108. msm_routing_get_port_mixer,
  12109. msm_routing_put_port_mixer),
  12110. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12112. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12113. msm_routing_get_port_mixer,
  12114. msm_routing_put_port_mixer),
  12115. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12117. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12118. msm_routing_get_port_mixer,
  12119. msm_routing_put_port_mixer),
  12120. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12122. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12123. msm_routing_get_port_mixer,
  12124. msm_routing_put_port_mixer),
  12125. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12127. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12128. msm_routing_get_port_mixer,
  12129. msm_routing_put_port_mixer),
  12130. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12132. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12133. msm_routing_get_port_mixer,
  12134. msm_routing_put_port_mixer),
  12135. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12137. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12138. msm_routing_get_port_mixer,
  12139. msm_routing_put_port_mixer),
  12140. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12142. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12143. msm_routing_get_port_mixer,
  12144. msm_routing_put_port_mixer),
  12145. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12147. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12148. msm_routing_get_port_mixer,
  12149. msm_routing_put_port_mixer),
  12150. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12152. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12153. msm_routing_get_port_mixer,
  12154. msm_routing_put_port_mixer),
  12155. };
  12156. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12157. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12159. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12160. msm_routing_get_port_mixer,
  12161. msm_routing_put_port_mixer),
  12162. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12164. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12165. msm_routing_get_port_mixer,
  12166. msm_routing_put_port_mixer),
  12167. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12169. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12170. msm_routing_get_port_mixer,
  12171. msm_routing_put_port_mixer),
  12172. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12174. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12175. msm_routing_get_port_mixer,
  12176. msm_routing_put_port_mixer),
  12177. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12179. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12180. msm_routing_get_port_mixer,
  12181. msm_routing_put_port_mixer),
  12182. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12184. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12185. msm_routing_get_port_mixer,
  12186. msm_routing_put_port_mixer),
  12187. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12189. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12190. msm_routing_get_port_mixer,
  12191. msm_routing_put_port_mixer),
  12192. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12194. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12195. msm_routing_get_port_mixer,
  12196. msm_routing_put_port_mixer),
  12197. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12199. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12200. msm_routing_get_port_mixer,
  12201. msm_routing_put_port_mixer),
  12202. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12204. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12205. msm_routing_get_port_mixer,
  12206. msm_routing_put_port_mixer),
  12207. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12209. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12210. msm_routing_get_port_mixer,
  12211. msm_routing_put_port_mixer),
  12212. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12214. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12215. msm_routing_get_port_mixer,
  12216. msm_routing_put_port_mixer),
  12217. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12219. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12220. msm_routing_get_port_mixer,
  12221. msm_routing_put_port_mixer),
  12222. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12224. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12225. msm_routing_get_port_mixer,
  12226. msm_routing_put_port_mixer),
  12227. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12229. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12230. msm_routing_get_port_mixer,
  12231. msm_routing_put_port_mixer),
  12232. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12234. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12235. msm_routing_get_port_mixer,
  12236. msm_routing_put_port_mixer),
  12237. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12239. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12240. msm_routing_get_port_mixer,
  12241. msm_routing_put_port_mixer),
  12242. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12244. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12245. msm_routing_get_port_mixer,
  12246. msm_routing_put_port_mixer),
  12247. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12249. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12250. msm_routing_get_port_mixer,
  12251. msm_routing_put_port_mixer),
  12252. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12254. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12255. msm_routing_get_port_mixer,
  12256. msm_routing_put_port_mixer),
  12257. };
  12258. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12259. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12261. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12262. msm_routing_get_port_mixer,
  12263. msm_routing_put_port_mixer),
  12264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12267. msm_routing_get_port_mixer,
  12268. msm_routing_put_port_mixer),
  12269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12271. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12272. msm_routing_get_port_mixer,
  12273. msm_routing_put_port_mixer),
  12274. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12276. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12277. msm_routing_get_port_mixer,
  12278. msm_routing_put_port_mixer),
  12279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12281. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12282. msm_routing_get_port_mixer,
  12283. msm_routing_put_port_mixer),
  12284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12286. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12287. msm_routing_get_port_mixer,
  12288. msm_routing_put_port_mixer),
  12289. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12291. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12292. msm_routing_get_port_mixer,
  12293. msm_routing_put_port_mixer),
  12294. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12296. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12297. msm_routing_get_port_mixer,
  12298. msm_routing_put_port_mixer),
  12299. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12301. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12302. msm_routing_get_port_mixer,
  12303. msm_routing_put_port_mixer),
  12304. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12306. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12307. msm_routing_get_port_mixer,
  12308. msm_routing_put_port_mixer),
  12309. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12311. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12312. msm_routing_get_port_mixer,
  12313. msm_routing_put_port_mixer),
  12314. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12316. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12317. msm_routing_get_port_mixer,
  12318. msm_routing_put_port_mixer),
  12319. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12321. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12322. msm_routing_get_port_mixer,
  12323. msm_routing_put_port_mixer),
  12324. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12326. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12327. msm_routing_get_port_mixer,
  12328. msm_routing_put_port_mixer),
  12329. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12331. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12332. msm_routing_get_port_mixer,
  12333. msm_routing_put_port_mixer),
  12334. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12336. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12337. msm_routing_get_port_mixer,
  12338. msm_routing_put_port_mixer),
  12339. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12341. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12342. msm_routing_get_port_mixer,
  12343. msm_routing_put_port_mixer),
  12344. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12346. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12347. msm_routing_get_port_mixer,
  12348. msm_routing_put_port_mixer),
  12349. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12351. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12352. msm_routing_get_port_mixer,
  12353. msm_routing_put_port_mixer),
  12354. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12356. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12357. msm_routing_get_port_mixer,
  12358. msm_routing_put_port_mixer),
  12359. };
  12360. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12361. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12363. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12364. msm_routing_get_port_mixer,
  12365. msm_routing_put_port_mixer),
  12366. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12368. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12369. msm_routing_get_port_mixer,
  12370. msm_routing_put_port_mixer),
  12371. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12374. msm_routing_get_port_mixer,
  12375. msm_routing_put_port_mixer),
  12376. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12378. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12379. msm_routing_get_port_mixer,
  12380. msm_routing_put_port_mixer),
  12381. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12383. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12384. msm_routing_get_port_mixer,
  12385. msm_routing_put_port_mixer),
  12386. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12388. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12389. msm_routing_get_port_mixer,
  12390. msm_routing_put_port_mixer),
  12391. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12393. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12394. msm_routing_get_port_mixer,
  12395. msm_routing_put_port_mixer),
  12396. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12398. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12399. msm_routing_get_port_mixer,
  12400. msm_routing_put_port_mixer),
  12401. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12403. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12404. msm_routing_get_port_mixer,
  12405. msm_routing_put_port_mixer),
  12406. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12408. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12409. msm_routing_get_port_mixer,
  12410. msm_routing_put_port_mixer),
  12411. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12413. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12414. msm_routing_get_port_mixer,
  12415. msm_routing_put_port_mixer),
  12416. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12418. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12419. msm_routing_get_port_mixer,
  12420. msm_routing_put_port_mixer),
  12421. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12423. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12424. msm_routing_get_port_mixer,
  12425. msm_routing_put_port_mixer),
  12426. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12428. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12429. msm_routing_get_port_mixer,
  12430. msm_routing_put_port_mixer),
  12431. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12433. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12434. msm_routing_get_port_mixer,
  12435. msm_routing_put_port_mixer),
  12436. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12438. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12439. msm_routing_get_port_mixer,
  12440. msm_routing_put_port_mixer),
  12441. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12443. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12444. msm_routing_get_port_mixer,
  12445. msm_routing_put_port_mixer),
  12446. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12448. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12449. msm_routing_get_port_mixer,
  12450. msm_routing_put_port_mixer),
  12451. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12453. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12454. msm_routing_get_port_mixer,
  12455. msm_routing_put_port_mixer),
  12456. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12458. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12459. msm_routing_get_port_mixer,
  12460. msm_routing_put_port_mixer),
  12461. };
  12462. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12463. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12465. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12466. msm_routing_get_port_mixer,
  12467. msm_routing_put_port_mixer),
  12468. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12470. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12471. msm_routing_get_port_mixer,
  12472. msm_routing_put_port_mixer),
  12473. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12476. msm_routing_get_port_mixer,
  12477. msm_routing_put_port_mixer),
  12478. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12480. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12481. msm_routing_get_port_mixer,
  12482. msm_routing_put_port_mixer),
  12483. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12485. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12486. msm_routing_get_port_mixer,
  12487. msm_routing_put_port_mixer),
  12488. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12490. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12491. msm_routing_get_port_mixer,
  12492. msm_routing_put_port_mixer),
  12493. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12495. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12496. msm_routing_get_port_mixer,
  12497. msm_routing_put_port_mixer),
  12498. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12500. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12501. msm_routing_get_port_mixer,
  12502. msm_routing_put_port_mixer),
  12503. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12505. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12506. msm_routing_get_port_mixer,
  12507. msm_routing_put_port_mixer),
  12508. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12510. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12511. msm_routing_get_port_mixer,
  12512. msm_routing_put_port_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12515. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12516. msm_routing_get_port_mixer,
  12517. msm_routing_put_port_mixer),
  12518. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12520. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12521. msm_routing_get_port_mixer,
  12522. msm_routing_put_port_mixer),
  12523. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12525. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12526. msm_routing_get_port_mixer,
  12527. msm_routing_put_port_mixer),
  12528. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12531. msm_routing_get_port_mixer,
  12532. msm_routing_put_port_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12535. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12536. msm_routing_get_port_mixer,
  12537. msm_routing_put_port_mixer),
  12538. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12540. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12541. msm_routing_get_port_mixer,
  12542. msm_routing_put_port_mixer),
  12543. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12545. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12546. msm_routing_get_port_mixer,
  12547. msm_routing_put_port_mixer),
  12548. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12551. msm_routing_get_port_mixer,
  12552. msm_routing_put_port_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12555. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12556. msm_routing_get_port_mixer,
  12557. msm_routing_put_port_mixer),
  12558. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12560. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12561. msm_routing_get_port_mixer,
  12562. msm_routing_put_port_mixer),
  12563. };
  12564. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12565. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12567. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12568. msm_routing_get_port_mixer,
  12569. msm_routing_put_port_mixer),
  12570. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12572. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12573. msm_routing_get_port_mixer,
  12574. msm_routing_put_port_mixer),
  12575. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12577. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12578. msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12582. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12583. msm_routing_get_port_mixer,
  12584. msm_routing_put_port_mixer),
  12585. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12587. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12588. msm_routing_get_port_mixer,
  12589. msm_routing_put_port_mixer),
  12590. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12592. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12593. msm_routing_get_port_mixer,
  12594. msm_routing_put_port_mixer),
  12595. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12597. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12598. msm_routing_get_port_mixer,
  12599. msm_routing_put_port_mixer),
  12600. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12602. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12603. msm_routing_get_port_mixer,
  12604. msm_routing_put_port_mixer),
  12605. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12607. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12608. msm_routing_get_port_mixer,
  12609. msm_routing_put_port_mixer),
  12610. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12612. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12613. msm_routing_get_port_mixer,
  12614. msm_routing_put_port_mixer),
  12615. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12617. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12618. msm_routing_get_port_mixer,
  12619. msm_routing_put_port_mixer),
  12620. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12623. msm_routing_get_port_mixer,
  12624. msm_routing_put_port_mixer),
  12625. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12627. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12628. msm_routing_get_port_mixer,
  12629. msm_routing_put_port_mixer),
  12630. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12632. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12633. msm_routing_get_port_mixer,
  12634. msm_routing_put_port_mixer),
  12635. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12637. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12638. msm_routing_get_port_mixer,
  12639. msm_routing_put_port_mixer),
  12640. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12642. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12643. msm_routing_get_port_mixer,
  12644. msm_routing_put_port_mixer),
  12645. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12647. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12648. msm_routing_get_port_mixer,
  12649. msm_routing_put_port_mixer),
  12650. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12652. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12653. msm_routing_get_port_mixer,
  12654. msm_routing_put_port_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12657. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12658. msm_routing_get_port_mixer,
  12659. msm_routing_put_port_mixer),
  12660. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12662. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12663. msm_routing_get_port_mixer,
  12664. msm_routing_put_port_mixer),
  12665. };
  12666. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12667. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12669. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12670. msm_routing_get_port_mixer,
  12671. msm_routing_put_port_mixer),
  12672. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12675. msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12679. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12680. msm_routing_get_port_mixer,
  12681. msm_routing_put_port_mixer),
  12682. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12684. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12685. msm_routing_get_port_mixer,
  12686. msm_routing_put_port_mixer),
  12687. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12689. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12690. msm_routing_get_port_mixer,
  12691. msm_routing_put_port_mixer),
  12692. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12694. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12695. msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12699. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12700. msm_routing_get_port_mixer,
  12701. msm_routing_put_port_mixer),
  12702. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12704. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12705. msm_routing_get_port_mixer,
  12706. msm_routing_put_port_mixer),
  12707. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12709. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12710. msm_routing_get_port_mixer,
  12711. msm_routing_put_port_mixer),
  12712. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12714. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12715. msm_routing_get_port_mixer,
  12716. msm_routing_put_port_mixer),
  12717. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12719. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12720. msm_routing_get_port_mixer,
  12721. msm_routing_put_port_mixer),
  12722. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12724. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12725. msm_routing_get_port_mixer,
  12726. msm_routing_put_port_mixer),
  12727. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12729. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12730. msm_routing_get_port_mixer,
  12731. msm_routing_put_port_mixer),
  12732. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12734. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12735. msm_routing_get_port_mixer,
  12736. msm_routing_put_port_mixer),
  12737. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12739. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12740. msm_routing_get_port_mixer,
  12741. msm_routing_put_port_mixer),
  12742. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12744. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12745. msm_routing_get_port_mixer,
  12746. msm_routing_put_port_mixer),
  12747. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12749. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12750. msm_routing_get_port_mixer,
  12751. msm_routing_put_port_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12754. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12755. msm_routing_get_port_mixer,
  12756. msm_routing_put_port_mixer),
  12757. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12759. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12760. msm_routing_get_port_mixer,
  12761. msm_routing_put_port_mixer),
  12762. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12765. msm_routing_get_port_mixer,
  12766. msm_routing_put_port_mixer),
  12767. };
  12768. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12769. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12771. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12772. msm_routing_get_port_mixer,
  12773. msm_routing_put_port_mixer),
  12774. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12776. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12777. msm_routing_get_port_mixer,
  12778. msm_routing_put_port_mixer),
  12779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12781. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12782. msm_routing_get_port_mixer,
  12783. msm_routing_put_port_mixer),
  12784. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12786. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12787. msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12791. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12792. msm_routing_get_port_mixer,
  12793. msm_routing_put_port_mixer),
  12794. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12796. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12797. msm_routing_get_port_mixer,
  12798. msm_routing_put_port_mixer),
  12799. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12801. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12802. msm_routing_get_port_mixer,
  12803. msm_routing_put_port_mixer),
  12804. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12806. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12807. msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12811. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12812. msm_routing_get_port_mixer,
  12813. msm_routing_put_port_mixer),
  12814. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12816. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12817. msm_routing_get_port_mixer,
  12818. msm_routing_put_port_mixer),
  12819. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12821. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12822. msm_routing_get_port_mixer,
  12823. msm_routing_put_port_mixer),
  12824. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12826. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12827. msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12831. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12832. msm_routing_get_port_mixer,
  12833. msm_routing_put_port_mixer),
  12834. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12836. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12837. msm_routing_get_port_mixer,
  12838. msm_routing_put_port_mixer),
  12839. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12841. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12842. msm_routing_get_port_mixer,
  12843. msm_routing_put_port_mixer),
  12844. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12846. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12847. msm_routing_get_port_mixer,
  12848. msm_routing_put_port_mixer),
  12849. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12851. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12852. msm_routing_get_port_mixer,
  12853. msm_routing_put_port_mixer),
  12854. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12856. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12857. msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12861. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12862. msm_routing_get_port_mixer,
  12863. msm_routing_put_port_mixer),
  12864. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12866. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12867. msm_routing_get_port_mixer,
  12868. msm_routing_put_port_mixer),
  12869. };
  12870. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12871. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12873. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12874. msm_routing_get_port_mixer,
  12875. msm_routing_put_port_mixer),
  12876. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12878. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12879. msm_routing_get_port_mixer,
  12880. msm_routing_put_port_mixer),
  12881. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12883. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12884. msm_routing_get_port_mixer,
  12885. msm_routing_put_port_mixer),
  12886. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12888. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12889. msm_routing_get_port_mixer,
  12890. msm_routing_put_port_mixer),
  12891. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12893. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12894. msm_routing_get_port_mixer,
  12895. msm_routing_put_port_mixer),
  12896. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12898. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12899. msm_routing_get_port_mixer,
  12900. msm_routing_put_port_mixer),
  12901. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12903. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12904. msm_routing_get_port_mixer,
  12905. msm_routing_put_port_mixer),
  12906. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12908. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12909. msm_routing_get_port_mixer,
  12910. msm_routing_put_port_mixer),
  12911. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12913. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12914. msm_routing_get_port_mixer,
  12915. msm_routing_put_port_mixer),
  12916. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12918. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12919. msm_routing_get_port_mixer,
  12920. msm_routing_put_port_mixer),
  12921. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12923. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12924. msm_routing_get_port_mixer,
  12925. msm_routing_put_port_mixer),
  12926. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12928. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12929. msm_routing_get_port_mixer,
  12930. msm_routing_put_port_mixer),
  12931. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12933. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12934. msm_routing_get_port_mixer,
  12935. msm_routing_put_port_mixer),
  12936. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12938. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12939. msm_routing_get_port_mixer,
  12940. msm_routing_put_port_mixer),
  12941. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12943. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12944. msm_routing_get_port_mixer,
  12945. msm_routing_put_port_mixer),
  12946. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12948. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12949. msm_routing_get_port_mixer,
  12950. msm_routing_put_port_mixer),
  12951. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12953. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12954. msm_routing_get_port_mixer,
  12955. msm_routing_put_port_mixer),
  12956. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12958. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12959. msm_routing_get_port_mixer,
  12960. msm_routing_put_port_mixer),
  12961. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12963. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12964. msm_routing_get_port_mixer,
  12965. msm_routing_put_port_mixer),
  12966. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12968. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12969. msm_routing_get_port_mixer,
  12970. msm_routing_put_port_mixer),
  12971. };
  12972. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12975. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12976. msm_routing_get_port_mixer,
  12977. msm_routing_put_port_mixer),
  12978. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12980. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12981. msm_routing_get_port_mixer,
  12982. msm_routing_put_port_mixer),
  12983. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12985. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12986. msm_routing_get_port_mixer,
  12987. msm_routing_put_port_mixer),
  12988. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12990. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12991. msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12995. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12996. msm_routing_get_port_mixer,
  12997. msm_routing_put_port_mixer),
  12998. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13000. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13001. msm_routing_get_port_mixer,
  13002. msm_routing_put_port_mixer),
  13003. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13005. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13006. msm_routing_get_port_mixer,
  13007. msm_routing_put_port_mixer),
  13008. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13010. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13011. msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13015. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13016. msm_routing_get_port_mixer,
  13017. msm_routing_put_port_mixer),
  13018. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13020. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13021. msm_routing_get_port_mixer,
  13022. msm_routing_put_port_mixer),
  13023. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13025. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13026. msm_routing_get_port_mixer,
  13027. msm_routing_put_port_mixer),
  13028. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13029. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13030. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13031. msm_routing_get_port_mixer,
  13032. msm_routing_put_port_mixer),
  13033. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13035. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13036. msm_routing_get_port_mixer,
  13037. msm_routing_put_port_mixer),
  13038. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13040. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13041. msm_routing_get_port_mixer,
  13042. msm_routing_put_port_mixer),
  13043. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13045. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13046. msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13050. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13051. msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13055. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13056. msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13060. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13061. msm_routing_get_port_mixer,
  13062. msm_routing_put_port_mixer),
  13063. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13065. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13066. msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13070. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13071. msm_routing_get_port_mixer,
  13072. msm_routing_put_port_mixer),
  13073. };
  13074. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13075. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13077. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13078. msm_routing_get_port_mixer,
  13079. msm_routing_put_port_mixer),
  13080. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13082. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13083. msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13088. msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13092. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13093. msm_routing_get_port_mixer,
  13094. msm_routing_put_port_mixer),
  13095. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13097. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13098. msm_routing_get_port_mixer,
  13099. msm_routing_put_port_mixer),
  13100. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13102. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13103. msm_routing_get_port_mixer,
  13104. msm_routing_put_port_mixer),
  13105. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13107. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13108. msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13112. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13113. msm_routing_get_port_mixer,
  13114. msm_routing_put_port_mixer),
  13115. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13117. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13118. msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13123. msm_routing_get_port_mixer,
  13124. msm_routing_put_port_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13127. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13128. msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13132. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13133. msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13137. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13138. msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13143. msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13147. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13148. msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13152. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13153. msm_routing_get_port_mixer,
  13154. msm_routing_put_port_mixer),
  13155. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13157. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13158. msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13163. msm_routing_get_port_mixer,
  13164. msm_routing_put_port_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13167. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13168. msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13172. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13173. msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. };
  13176. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13177. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13179. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13180. msm_routing_get_port_mixer,
  13181. msm_routing_put_port_mixer),
  13182. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13184. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13185. msm_routing_get_port_mixer,
  13186. msm_routing_put_port_mixer),
  13187. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13189. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13190. msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13194. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13195. msm_routing_get_port_mixer,
  13196. msm_routing_put_port_mixer),
  13197. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13199. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13200. msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13204. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13205. msm_routing_get_port_mixer,
  13206. msm_routing_put_port_mixer),
  13207. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13209. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13210. msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13214. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13215. msm_routing_get_port_mixer,
  13216. msm_routing_put_port_mixer),
  13217. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13219. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13220. msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13224. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13225. msm_routing_get_port_mixer,
  13226. msm_routing_put_port_mixer),
  13227. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13229. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13230. msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13234. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13235. msm_routing_get_port_mixer,
  13236. msm_routing_put_port_mixer),
  13237. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13239. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13240. msm_routing_get_port_mixer,
  13241. msm_routing_put_port_mixer),
  13242. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13244. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13245. msm_routing_get_port_mixer,
  13246. msm_routing_put_port_mixer),
  13247. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13249. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13250. msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13254. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13255. msm_routing_get_port_mixer,
  13256. msm_routing_put_port_mixer),
  13257. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13259. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13260. msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13264. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13265. msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13269. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13270. msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13274. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13275. msm_routing_get_port_mixer,
  13276. msm_routing_put_port_mixer),
  13277. };
  13278. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13279. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13281. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13282. msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13287. msm_routing_get_port_mixer,
  13288. msm_routing_put_port_mixer),
  13289. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13291. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13292. msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13296. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13297. msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13301. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13302. msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13306. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13307. msm_routing_get_port_mixer,
  13308. msm_routing_put_port_mixer),
  13309. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13311. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13312. msm_routing_get_port_mixer,
  13313. msm_routing_put_port_mixer),
  13314. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13316. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13317. msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13321. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13322. msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13326. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13327. msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13331. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13332. msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13336. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13337. msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13341. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13342. msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13346. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13347. msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13351. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13352. msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13356. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13357. msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13361. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13362. msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13366. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13367. msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13371. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13372. msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13376. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13377. msm_routing_get_port_mixer,
  13378. msm_routing_put_port_mixer),
  13379. };
  13380. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13381. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13384. msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13389. msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13393. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13394. msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13398. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13399. msm_routing_get_port_mixer,
  13400. msm_routing_put_port_mixer),
  13401. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13403. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13404. msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13408. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13409. msm_routing_get_port_mixer,
  13410. msm_routing_put_port_mixer),
  13411. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13413. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13414. msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13418. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13419. msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13423. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13424. msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13428. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13433. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13438. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13439. msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13443. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13444. msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13448. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13449. msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13453. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13454. msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13458. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13459. msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13463. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13464. msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13468. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13469. msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13473. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13474. msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13478. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13479. msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. };
  13482. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13483. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13485. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13489. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13490. msm_routing_put_port_mixer),
  13491. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13493. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13494. msm_routing_put_port_mixer),
  13495. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13497. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13501. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13505. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13506. msm_routing_put_port_mixer),
  13507. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13509. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13510. msm_routing_put_port_mixer),
  13511. };
  13512. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13513. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13515. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13516. msm_routing_put_port_mixer),
  13517. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13519. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13524. msm_routing_put_port_mixer),
  13525. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13527. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13531. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13535. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13536. msm_routing_put_port_mixer),
  13537. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13539. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13543. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13544. msm_routing_put_port_mixer),
  13545. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13547. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13548. msm_routing_put_port_mixer),
  13549. };
  13550. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13551. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13554. msm_routing_put_listen_mixer),
  13555. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13557. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13558. msm_routing_put_listen_mixer),
  13559. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13561. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13562. msm_routing_put_listen_mixer),
  13563. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13565. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13566. msm_routing_put_listen_mixer),
  13567. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13569. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13570. msm_routing_put_listen_mixer),
  13571. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13573. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13574. msm_routing_put_listen_mixer),
  13575. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13577. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13578. msm_routing_put_listen_mixer),
  13579. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13581. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13582. msm_routing_put_listen_mixer),
  13583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13585. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13586. msm_routing_put_listen_mixer),
  13587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13589. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13590. msm_routing_put_listen_mixer),
  13591. };
  13592. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13593. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13595. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13596. msm_routing_put_listen_mixer),
  13597. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13598. SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13601. msm_routing_put_listen_mixer),
  13602. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13605. msm_routing_put_listen_mixer),
  13606. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13609. msm_routing_put_listen_mixer),
  13610. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13612. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13613. msm_routing_put_listen_mixer),
  13614. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13616. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13617. msm_routing_put_listen_mixer),
  13618. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13620. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13621. msm_routing_put_listen_mixer),
  13622. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13624. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13625. msm_routing_put_listen_mixer),
  13626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13628. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13629. msm_routing_put_listen_mixer),
  13630. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13632. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13633. msm_routing_put_listen_mixer),
  13634. };
  13635. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13636. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13639. msm_routing_put_listen_mixer),
  13640. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13643. msm_routing_put_listen_mixer),
  13644. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13647. msm_routing_put_listen_mixer),
  13648. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13650. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13651. msm_routing_put_listen_mixer),
  13652. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13654. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13655. msm_routing_put_listen_mixer),
  13656. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13658. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13659. msm_routing_put_listen_mixer),
  13660. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13662. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13663. msm_routing_put_listen_mixer),
  13664. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13666. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13667. msm_routing_put_listen_mixer),
  13668. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13670. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13671. msm_routing_put_listen_mixer),
  13672. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13674. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13675. msm_routing_put_listen_mixer),
  13676. };
  13677. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13678. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13681. msm_routing_put_listen_mixer),
  13682. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13684. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13685. msm_routing_put_listen_mixer),
  13686. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13688. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13689. msm_routing_put_listen_mixer),
  13690. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13692. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13693. msm_routing_put_listen_mixer),
  13694. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13696. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13697. msm_routing_put_listen_mixer),
  13698. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13700. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13701. msm_routing_put_listen_mixer),
  13702. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13704. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13705. msm_routing_put_listen_mixer),
  13706. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13708. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13709. msm_routing_put_listen_mixer),
  13710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13712. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13713. msm_routing_put_listen_mixer),
  13714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13716. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13717. msm_routing_put_listen_mixer),
  13718. };
  13719. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13720. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13722. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13723. msm_routing_put_listen_mixer),
  13724. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13726. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13727. msm_routing_put_listen_mixer),
  13728. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13730. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13731. msm_routing_put_listen_mixer),
  13732. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13734. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13735. msm_routing_put_listen_mixer),
  13736. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13738. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13739. msm_routing_put_listen_mixer),
  13740. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13742. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13743. msm_routing_put_listen_mixer),
  13744. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13746. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13747. msm_routing_put_listen_mixer),
  13748. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13750. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13751. msm_routing_put_listen_mixer),
  13752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13754. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13755. msm_routing_put_listen_mixer),
  13756. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13758. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13759. msm_routing_put_listen_mixer),
  13760. };
  13761. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13762. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13764. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13765. msm_routing_put_listen_mixer),
  13766. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13768. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13769. msm_routing_put_listen_mixer),
  13770. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13772. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13773. msm_routing_put_listen_mixer),
  13774. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13776. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13777. msm_routing_put_listen_mixer),
  13778. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13780. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13781. msm_routing_put_listen_mixer),
  13782. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13784. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13785. msm_routing_put_listen_mixer),
  13786. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13788. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13789. msm_routing_put_listen_mixer),
  13790. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13792. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13793. msm_routing_put_listen_mixer),
  13794. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13796. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13797. msm_routing_put_listen_mixer),
  13798. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13800. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13801. msm_routing_put_listen_mixer),
  13802. };
  13803. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13804. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13806. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13807. msm_routing_put_listen_mixer),
  13808. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13810. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13811. msm_routing_put_listen_mixer),
  13812. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13814. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13815. msm_routing_put_listen_mixer),
  13816. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13818. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13819. msm_routing_put_listen_mixer),
  13820. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13822. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13823. msm_routing_put_listen_mixer),
  13824. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13826. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13827. msm_routing_put_listen_mixer),
  13828. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13830. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13831. msm_routing_put_listen_mixer),
  13832. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13834. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13835. msm_routing_put_listen_mixer),
  13836. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13838. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13839. msm_routing_put_listen_mixer),
  13840. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13842. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13843. msm_routing_put_listen_mixer),
  13844. };
  13845. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13846. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13848. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13852. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13853. msm_routing_put_listen_mixer),
  13854. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13856. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13857. msm_routing_put_listen_mixer),
  13858. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13860. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13861. msm_routing_put_listen_mixer),
  13862. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13864. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13865. msm_routing_put_listen_mixer),
  13866. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13868. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13869. msm_routing_put_listen_mixer),
  13870. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13872. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13873. msm_routing_put_listen_mixer),
  13874. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13876. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13877. msm_routing_put_listen_mixer),
  13878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13880. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13881. msm_routing_put_listen_mixer),
  13882. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13884. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13885. msm_routing_put_listen_mixer),
  13886. };
  13887. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13888. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13889. 0, 1, 0, msm_routing_get_switch_mixer,
  13890. msm_routing_put_switch_mixer);
  13891. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13892. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13893. 0, 1, 0, msm_routing_get_switch_mixer,
  13894. msm_routing_put_switch_mixer);
  13895. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13896. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13897. 0, 1, 0, msm_routing_get_switch_mixer,
  13898. msm_routing_put_switch_mixer);
  13899. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13900. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13901. 0, 1, 0, msm_routing_get_switch_mixer,
  13902. msm_routing_put_switch_mixer);
  13903. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13904. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13905. 0, 1, 0, msm_routing_get_switch_mixer,
  13906. msm_routing_put_switch_mixer);
  13907. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13908. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13909. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13910. msm_routing_put_fm_pcmrx_switch_mixer);
  13911. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13912. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13913. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13914. msm_routing_put_int0_mi2s_switch_mixer);
  13915. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13916. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13917. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13918. msm_routing_put_int4_mi2s_switch_mixer);
  13919. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13920. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13921. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13922. msm_routing_put_pri_mi2s_switch_mixer);
  13923. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13924. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13925. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13926. msm_routing_put_sec_mi2s_switch_mixer);
  13927. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13928. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13929. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13930. msm_routing_put_tert_mi2s_switch_mixer);
  13931. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13932. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13933. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13934. msm_routing_put_quat_mi2s_switch_mixer);
  13935. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13936. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13937. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13938. msm_routing_put_quin_mi2s_switch_mixer);
  13939. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13940. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13941. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13942. msm_routing_put_hfp_switch_mixer);
  13943. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13944. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13945. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13946. msm_routing_put_hfp_switch_mixer);
  13947. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13948. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13949. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13950. msm_routing_put_hfp_switch_mixer);
  13951. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13952. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13953. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13954. msm_routing_put_hfp_switch_mixer);
  13955. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13956. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13957. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13958. msm_routing_put_usb_switch_mixer);
  13959. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13960. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13961. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13962. msm_routing_a2dp_switch_mixer_put);
  13963. static const struct soc_enum lsm_port_enum =
  13964. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13965. static const char * const lsm_func_text[] = {
  13966. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13967. };
  13968. static const struct soc_enum lsm_func_enum =
  13969. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13970. static const struct snd_kcontrol_new lsm_controls[] = {
  13971. /* kcontrol of lsm_function */
  13972. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13973. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13974. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13975. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13976. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13977. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13978. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13979. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13980. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13981. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13982. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13983. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13984. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13985. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13986. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13987. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13988. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13989. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13990. /* kcontrol of lsm_port */
  13991. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13992. msm_routing_lsm_port_get,
  13993. msm_routing_lsm_port_put),
  13994. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13995. msm_routing_lsm_port_get,
  13996. msm_routing_lsm_port_put),
  13997. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13998. msm_routing_lsm_port_get,
  13999. msm_routing_lsm_port_put),
  14000. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  14001. msm_routing_lsm_port_get,
  14002. msm_routing_lsm_port_put),
  14003. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14004. msm_routing_lsm_port_get,
  14005. msm_routing_lsm_port_put),
  14006. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14007. msm_routing_lsm_port_get,
  14008. msm_routing_lsm_port_put),
  14009. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14010. msm_routing_lsm_port_get,
  14011. msm_routing_lsm_port_put),
  14012. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14013. msm_routing_lsm_port_get,
  14014. msm_routing_lsm_port_put),
  14015. };
  14016. static const char * const aanc_slim_0_rx_text[] = {
  14017. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14018. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14019. };
  14020. static const struct soc_enum aanc_slim_0_rx_enum =
  14021. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14022. aanc_slim_0_rx_text);
  14023. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14024. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14025. msm_routing_slim_0_rx_aanc_mux_get,
  14026. msm_routing_slim_0_rx_aanc_mux_put)
  14027. };
  14028. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  14029. struct snd_ctl_elem_value *ucontrol)
  14030. {
  14031. ucontrol->value.integer.value[0] = aanc_level;
  14032. return 0;
  14033. }
  14034. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  14035. struct snd_ctl_elem_value *ucontrol)
  14036. {
  14037. int ret = 0;
  14038. mutex_lock(&routing_lock);
  14039. aanc_level = ucontrol->value.integer.value[0];
  14040. pr_debug("%s: value: %ld\n",
  14041. __func__, ucontrol->value.integer.value[0]);
  14042. ret = afe_set_aanc_noise_level(aanc_level);
  14043. mutex_unlock(&routing_lock);
  14044. return ret;
  14045. }
  14046. static const struct snd_kcontrol_new aanc_noise_level[] = {
  14047. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  14048. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  14049. };
  14050. static int msm_routing_get_stereo_to_custom_stereo_control(
  14051. struct snd_kcontrol *kcontrol,
  14052. struct snd_ctl_elem_value *ucontrol)
  14053. {
  14054. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14055. return 0;
  14056. }
  14057. static int msm_routing_put_stereo_to_custom_stereo_control(
  14058. struct snd_kcontrol *kcontrol,
  14059. struct snd_ctl_elem_value *ucontrol)
  14060. {
  14061. int flag = 0, i = 0, rc = 0, idx = 0;
  14062. int be_index = 0, port_id, topo_id;
  14063. unsigned int session_id = 0;
  14064. uint16_t op_FL_ip_FL_weight = 0;
  14065. uint16_t op_FL_ip_FR_weight = 0;
  14066. uint16_t op_FR_ip_FL_weight = 0;
  14067. uint16_t op_FR_ip_FR_weight = 0;
  14068. flag = ucontrol->value.integer.value[0];
  14069. pr_debug("%s E flag %d\n", __func__, flag);
  14070. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14071. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14072. __func__, is_custom_stereo_on, flag);
  14073. return 0;
  14074. }
  14075. is_custom_stereo_on = flag ? true : false;
  14076. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14077. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14078. port_id = msm_bedais[be_index].port_id;
  14079. if (!msm_bedais[be_index].active)
  14080. continue;
  14081. if ((port_id != SLIMBUS_0_RX) &&
  14082. (port_id != RT_PROXY_PORT_001_RX) &&
  14083. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14084. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14085. continue;
  14086. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14087. MSM_FRONTEND_DAI_MM_SIZE) {
  14088. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14089. LEGACY_PCM_MODE)
  14090. goto skip_send_custom_stereo;
  14091. session_id =
  14092. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14093. if (is_custom_stereo_on) {
  14094. op_FL_ip_FL_weight =
  14095. Q14_GAIN_ZERO_POINT_FIVE;
  14096. op_FL_ip_FR_weight =
  14097. Q14_GAIN_ZERO_POINT_FIVE;
  14098. op_FR_ip_FL_weight =
  14099. Q14_GAIN_ZERO_POINT_FIVE;
  14100. op_FR_ip_FR_weight =
  14101. Q14_GAIN_ZERO_POINT_FIVE;
  14102. } else {
  14103. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14104. op_FL_ip_FR_weight = 0;
  14105. op_FR_ip_FL_weight = 0;
  14106. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14107. }
  14108. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14109. unsigned long copp =
  14110. session_copp_map[i]
  14111. [SESSION_TYPE_RX][be_index];
  14112. if (!test_bit(idx, &copp))
  14113. goto skip_send_custom_stereo;
  14114. topo_id = adm_get_topology_for_port_copp_idx(
  14115. msm_bedais[be_index].port_id, idx);
  14116. if (topo_id < 0)
  14117. pr_debug("%s:Err:custom stereo topo %d",
  14118. __func__, topo_id);
  14119. pr_debug("idx %d\n", idx);
  14120. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14121. rc = msm_ds2_dap_set_custom_stereo_onoff
  14122. (msm_bedais[be_index].port_id,
  14123. idx, is_custom_stereo_on);
  14124. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14125. rc = dolby_dap_set_custom_stereo_onoff(
  14126. msm_bedais[be_index].port_id,
  14127. idx, is_custom_stereo_on);
  14128. else
  14129. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14130. (msm_bedais[be_index].port_id,
  14131. idx, session_id,
  14132. op_FL_ip_FL_weight,
  14133. op_FL_ip_FR_weight,
  14134. op_FR_ip_FL_weight,
  14135. op_FR_ip_FR_weight);
  14136. if (rc < 0)
  14137. skip_send_custom_stereo:
  14138. pr_err("%s: err setting custom stereo\n",
  14139. __func__);
  14140. }
  14141. }
  14142. }
  14143. return 0;
  14144. }
  14145. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14146. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14147. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14148. msm_routing_put_stereo_to_custom_stereo_control),
  14149. };
  14150. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14151. struct snd_ctl_elem_value *ucontrol)
  14152. {
  14153. return 0;
  14154. }
  14155. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14156. struct snd_ctl_elem_value *ucontrol)
  14157. {
  14158. int i = 0, j;
  14159. int num_app_types = ucontrol->value.integer.value[i++];
  14160. pr_debug("%s\n", __func__);
  14161. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14162. sizeof(struct msm_pcm_routing_app_type_data));
  14163. if (num_app_types > MAX_APP_TYPES) {
  14164. pr_err("%s: number of app types exceed the max supported\n",
  14165. __func__);
  14166. return -EINVAL;
  14167. }
  14168. for (j = 0; j < num_app_types; j++) {
  14169. app_type_cfg[j].app_type =
  14170. ucontrol->value.integer.value[i++];
  14171. app_type_cfg[j].sample_rate =
  14172. ucontrol->value.integer.value[i++];
  14173. app_type_cfg[j].bit_width =
  14174. ucontrol->value.integer.value[i++];
  14175. }
  14176. return 0;
  14177. }
  14178. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14179. struct snd_ctl_elem_value *ucontrol)
  14180. {
  14181. int j, fe_id, be_id, port_type;
  14182. int ret = 0;
  14183. unsigned long copp;
  14184. struct msm_pcm_routing_bdai_data *bedai;
  14185. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14186. SESSION_TYPE_RX;
  14187. int app_type = ucontrol->value.integer.value[1];
  14188. int gain = (ucontrol->value.integer.value[2] +
  14189. ucontrol->value.integer.value[3])/2;
  14190. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14191. MSM_AFE_PORT_TYPE_TX;
  14192. mutex_lock(&routing_lock);
  14193. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14194. if (is_be_dai_extproc(be_id))
  14195. continue;
  14196. bedai = &msm_bedais[be_id];
  14197. if (afe_get_port_type(bedai->port_id) != port_type)
  14198. continue;
  14199. if (!bedai->active)
  14200. continue;
  14201. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14202. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14203. continue;
  14204. if (app_type !=
  14205. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14206. continue;
  14207. copp = session_copp_map[fe_id][dir][be_id];
  14208. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14209. if (!test_bit(j, &copp))
  14210. continue;
  14211. ret |= adm_set_volume(bedai->port_id, j, gain);
  14212. }
  14213. }
  14214. }
  14215. mutex_unlock(&routing_lock);
  14216. return ret ? -EINVAL : 0;
  14217. }
  14218. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14219. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14220. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14221. msm_routing_put_app_type_cfg_control),
  14222. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14223. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14224. };
  14225. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14226. struct snd_ctl_elem_value *ucontrol)
  14227. {
  14228. int copp_idx, fe_id, be_id, port_type;
  14229. int ret = 0;
  14230. unsigned long copp;
  14231. struct msm_pcm_routing_bdai_data *bedai;
  14232. u8 *packed_params = NULL;
  14233. struct param_hdr_v3 param_hdr;
  14234. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14235. sizeof(uint32_t));
  14236. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14237. SESSION_TYPE_RX;
  14238. int app_type = ucontrol->value.integer.value[1];
  14239. int module_id = ucontrol->value.integer.value[2];
  14240. int instance_id = ucontrol->value.integer.value[3];
  14241. int param_id = ucontrol->value.integer.value[4];
  14242. int param_value = ucontrol->value.integer.value[5];
  14243. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14244. MSM_AFE_PORT_TYPE_TX;
  14245. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14246. __func__, app_type, module_id,
  14247. instance_id, param_id, param_value);
  14248. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14249. if (!packed_params)
  14250. return -ENOMEM;
  14251. memset(&param_hdr, 0, sizeof(param_hdr));
  14252. param_hdr.module_id = module_id;
  14253. param_hdr.instance_id = instance_id;
  14254. param_hdr.param_id = param_id;
  14255. param_hdr.param_size = sizeof(uint32_t);
  14256. packed_param_size = 0;
  14257. mutex_lock(&routing_lock);
  14258. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14259. if (is_be_dai_extproc(be_id))
  14260. continue;
  14261. bedai = &msm_bedais[be_id];
  14262. if (afe_get_port_type(bedai->port_id) != port_type)
  14263. continue;
  14264. if (!bedai->active)
  14265. continue;
  14266. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14267. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14268. continue;
  14269. if (app_type !=
  14270. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14271. continue;
  14272. copp = session_copp_map[fe_id][dir][be_id];
  14273. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14274. copp_idx++) {
  14275. if (!test_bit(copp_idx, &copp))
  14276. continue;
  14277. ret = q6common_pack_pp_params(packed_params,
  14278. &param_hdr,
  14279. (u8 *) &param_value,
  14280. &packed_param_size);
  14281. if (ret) {
  14282. pr_err("%s: Failed to pack params, error %d\n",
  14283. __func__, ret);
  14284. goto done;
  14285. }
  14286. ret = adm_set_pp_params(bedai->port_id,
  14287. copp_idx, NULL,
  14288. packed_params,
  14289. packed_param_size);
  14290. if (ret) {
  14291. pr_err("%s: Setting param failed with err=%d\n",
  14292. __func__, ret);
  14293. ret = -EINVAL;
  14294. goto done;
  14295. }
  14296. }
  14297. }
  14298. }
  14299. done:
  14300. mutex_unlock(&routing_lock);
  14301. kfree(packed_params);
  14302. return ret;
  14303. }
  14304. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14305. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14306. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14307. };
  14308. static int msm_routing_get_lsm_app_type_cfg_control(
  14309. struct snd_kcontrol *kcontrol,
  14310. struct snd_ctl_elem_value *ucontrol)
  14311. {
  14312. return 0;
  14313. }
  14314. static int msm_routing_put_lsm_app_type_cfg_control(
  14315. struct snd_kcontrol *kcontrol,
  14316. struct snd_ctl_elem_value *ucontrol)
  14317. {
  14318. int shift = ((struct soc_multi_mixer_control *)
  14319. kcontrol->private_value)->shift;
  14320. int i = 0, j;
  14321. int num_app_types = ucontrol->value.integer.value[i++];
  14322. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14323. sizeof(struct msm_pcm_routing_app_type_data));
  14324. if (num_app_types > MAX_APP_TYPES) {
  14325. pr_err("%s: number of app types exceed the max supported\n",
  14326. __func__);
  14327. return -EINVAL;
  14328. }
  14329. for (j = 0; j < num_app_types; j++) {
  14330. lsm_app_type_cfg[j].app_type =
  14331. ucontrol->value.integer.value[i++];
  14332. lsm_app_type_cfg[j].sample_rate =
  14333. ucontrol->value.integer.value[i++];
  14334. lsm_app_type_cfg[j].bit_width =
  14335. ucontrol->value.integer.value[i++];
  14336. /* Shift of 1 indicates this is V2 mixer control */
  14337. if (shift == 1)
  14338. lsm_app_type_cfg[j].num_out_channels =
  14339. ucontrol->value.integer.value[i++];
  14340. }
  14341. return 0;
  14342. }
  14343. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14344. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14345. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14346. msm_routing_put_lsm_app_type_cfg_control),
  14347. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14348. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14349. msm_routing_put_lsm_app_type_cfg_control),
  14350. };
  14351. static int msm_routing_get_use_ds1_or_ds2_control(
  14352. struct snd_kcontrol *kcontrol,
  14353. struct snd_ctl_elem_value *ucontrol)
  14354. {
  14355. ucontrol->value.integer.value[0] = is_ds2_on;
  14356. return 0;
  14357. }
  14358. static int msm_routing_put_use_ds1_or_ds2_control(
  14359. struct snd_kcontrol *kcontrol,
  14360. struct snd_ctl_elem_value *ucontrol)
  14361. {
  14362. is_ds2_on = ucontrol->value.integer.value[0];
  14363. return 0;
  14364. }
  14365. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14366. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14367. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14368. msm_routing_put_use_ds1_or_ds2_control),
  14369. };
  14370. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14371. struct snd_ctl_elem_value *ucontrol) {
  14372. int rc = 0;
  14373. int be_idx = 0;
  14374. char *param_value;
  14375. int *update_param_value;
  14376. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14377. struct param_hdr_v3 param_hdr;
  14378. param_value = kzalloc(param_size, GFP_KERNEL);
  14379. if (!param_value)
  14380. return -ENOMEM;
  14381. memset(&param_hdr, 0, sizeof(param_hdr));
  14382. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14383. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14384. break;
  14385. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14386. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14387. param_hdr.instance_id = INSTANCE_ID_0;
  14388. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14389. param_hdr.param_size = param_size;
  14390. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14391. NULL, &param_hdr, (u8 *) param_value);
  14392. if (rc) {
  14393. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14394. kfree(param_value);
  14395. return -EINVAL;
  14396. }
  14397. update_param_value = (int *)param_value;
  14398. ucontrol->value.integer.value[0] = update_param_value[0];
  14399. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14400. __func__, update_param_value[0]);
  14401. }
  14402. kfree(param_value);
  14403. return 0;
  14404. }
  14405. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14406. struct snd_ctl_elem_value *ucontrol)
  14407. {
  14408. voc_session_id = ucontrol->value.integer.value[0];
  14409. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14410. return 0;
  14411. }
  14412. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14413. struct snd_ctl_elem_value *ucontrol)
  14414. {
  14415. ucontrol->value.integer.value[0] = voc_session_id;
  14416. return 0;
  14417. }
  14418. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14419. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14420. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14421. msm_voc_session_id_put),
  14422. };
  14423. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14424. struct snd_ctl_elem_info *uinfo)
  14425. {
  14426. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14427. uinfo->count = sizeof(struct sound_focus_param);
  14428. return 0;
  14429. }
  14430. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14431. struct snd_ctl_elem_value *ucontrol)
  14432. {
  14433. int ret = 0;
  14434. struct sound_focus_param soundFocusData;
  14435. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14436. sizeof(struct sound_focus_param));
  14437. ret = voc_set_sound_focus(soundFocusData);
  14438. if (ret) {
  14439. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14440. __func__, ret);
  14441. ret = -EINVAL;
  14442. }
  14443. return ret;
  14444. }
  14445. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14446. struct snd_ctl_elem_value *ucontrol)
  14447. {
  14448. int ret = 0;
  14449. struct sound_focus_param soundFocusData;
  14450. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14451. ret = voc_get_sound_focus(&soundFocusData);
  14452. if (ret) {
  14453. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14454. __func__, ret);
  14455. ret = -EINVAL;
  14456. goto done;
  14457. }
  14458. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14459. sizeof(struct sound_focus_param));
  14460. done:
  14461. return ret;
  14462. }
  14463. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14464. struct snd_ctl_elem_info *uinfo)
  14465. {
  14466. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14467. uinfo->count = sizeof(struct source_tracking_param);
  14468. return 0;
  14469. }
  14470. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14471. struct snd_ctl_elem_value *ucontrol)
  14472. {
  14473. int ret = 0;
  14474. struct source_tracking_param sourceTrackingData;
  14475. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14476. ret = voc_get_source_tracking(&sourceTrackingData);
  14477. if (ret) {
  14478. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14479. __func__, ret);
  14480. ret = -EINVAL;
  14481. goto done;
  14482. }
  14483. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14484. sizeof(struct source_tracking_param));
  14485. done:
  14486. return ret;
  14487. }
  14488. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14489. int *copp_idx)
  14490. {
  14491. int i, idx, be_idx;
  14492. int ret = 0;
  14493. unsigned long copp;
  14494. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14495. ret = q6audio_validate_port(port_id);
  14496. if (ret < 0) {
  14497. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14498. __func__, port_id, ret);
  14499. ret = -EINVAL;
  14500. goto done;
  14501. }
  14502. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14503. if (msm_bedais[be_idx].port_id == port_id)
  14504. break;
  14505. }
  14506. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14507. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14508. ret = -EINVAL;
  14509. goto done;
  14510. }
  14511. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14512. MSM_FRONTEND_DAI_MM_SIZE) {
  14513. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14514. copp = session_copp_map[i]
  14515. [session_type][be_idx];
  14516. if (test_bit(idx, &copp))
  14517. break;
  14518. }
  14519. if (idx >= MAX_COPPS_PER_PORT)
  14520. continue;
  14521. else
  14522. break;
  14523. }
  14524. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14525. pr_err("%s: Invalid FE, exiting\n", __func__);
  14526. ret = -EINVAL;
  14527. goto done;
  14528. }
  14529. *copp_idx = idx;
  14530. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14531. done:
  14532. return ret;
  14533. }
  14534. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14535. const char *prefix, int *port_id)
  14536. {
  14537. int ret = 0;
  14538. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14539. /*
  14540. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14541. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14542. * and compare the string with the backend name to derive the port id.
  14543. */
  14544. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14545. "SLIMBUS_0")) {
  14546. *port_id = SLIMBUS_0_TX;
  14547. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14548. "TERT_MI2S")) {
  14549. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14550. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14551. "INT3_MI2S")) {
  14552. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14553. } else {
  14554. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14555. __func__, kcontrol->id.name);
  14556. ret = -EINVAL;
  14557. goto done;
  14558. }
  14559. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14560. __func__, kcontrol->id.name, *port_id);
  14561. done:
  14562. return ret;
  14563. }
  14564. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14565. struct snd_ctl_elem_value *ucontrol)
  14566. {
  14567. int ret = 0;
  14568. struct sound_focus_param soundFocusData;
  14569. int port_id, copp_idx;
  14570. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14571. "Sound Focus Audio Tx ", &port_id);
  14572. if (ret != 0) {
  14573. pr_err("%s: Error in deriving port id, err=%d\n",
  14574. __func__, ret);
  14575. ret = -EINVAL;
  14576. goto done;
  14577. }
  14578. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14579. &copp_idx);
  14580. if (ret) {
  14581. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14582. __func__, port_id);
  14583. ret = -EINVAL;
  14584. goto done;
  14585. }
  14586. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14587. sizeof(struct sound_focus_param));
  14588. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14589. if (ret) {
  14590. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14591. __func__, ret);
  14592. ret = -EINVAL;
  14593. goto done;
  14594. }
  14595. done:
  14596. return ret;
  14597. }
  14598. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14599. struct snd_ctl_elem_value *ucontrol)
  14600. {
  14601. int ret = 0;
  14602. struct sound_focus_param soundFocusData;
  14603. int port_id, copp_idx;
  14604. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14605. "Sound Focus Audio Tx ", &port_id);
  14606. if (ret) {
  14607. pr_err("%s: Error in deriving port id, err=%d\n",
  14608. __func__, ret);
  14609. ret = -EINVAL;
  14610. goto done;
  14611. }
  14612. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14613. &copp_idx);
  14614. if (ret) {
  14615. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14616. __func__, port_id);
  14617. ret = -EINVAL;
  14618. goto done;
  14619. }
  14620. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14621. if (ret) {
  14622. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14623. __func__, ret);
  14624. ret = -EINVAL;
  14625. goto done;
  14626. }
  14627. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14628. sizeof(struct sound_focus_param));
  14629. done:
  14630. return ret;
  14631. }
  14632. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14633. struct snd_ctl_elem_value *ucontrol)
  14634. {
  14635. int ret = 0;
  14636. struct source_tracking_param sourceTrackingData;
  14637. int port_id, copp_idx;
  14638. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14639. "Source Tracking Audio Tx ", &port_id);
  14640. if (ret) {
  14641. pr_err("%s: Error in deriving port id, err=%d\n",
  14642. __func__, ret);
  14643. ret = -EINVAL;
  14644. goto done;
  14645. }
  14646. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14647. &copp_idx);
  14648. if (ret) {
  14649. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14650. __func__, port_id);
  14651. ret = -EINVAL;
  14652. goto done;
  14653. }
  14654. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14655. if (ret) {
  14656. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14657. __func__, ret);
  14658. ret = -EINVAL;
  14659. goto done;
  14660. }
  14661. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14662. sizeof(struct source_tracking_param));
  14663. done:
  14664. return ret;
  14665. }
  14666. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14667. {
  14668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14670. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14671. .info = msm_sound_focus_info,
  14672. .get = msm_voice_sound_focus_get,
  14673. .put = msm_voice_sound_focus_put,
  14674. },
  14675. {
  14676. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14678. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14679. .info = msm_source_tracking_info,
  14680. .get = msm_voice_source_tracking_get,
  14681. },
  14682. {
  14683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14684. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14685. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14686. .info = msm_sound_focus_info,
  14687. .get = msm_audio_sound_focus_get,
  14688. .put = msm_audio_sound_focus_put,
  14689. },
  14690. {
  14691. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14693. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14694. .info = msm_source_tracking_info,
  14695. .get = msm_audio_source_tracking_get,
  14696. },
  14697. {
  14698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14700. .name = "Sound Focus Voice Tx TERT_MI2S",
  14701. .info = msm_sound_focus_info,
  14702. .get = msm_voice_sound_focus_get,
  14703. .put = msm_voice_sound_focus_put,
  14704. },
  14705. {
  14706. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14708. .name = "Source Tracking Voice Tx TERT_MI2S",
  14709. .info = msm_source_tracking_info,
  14710. .get = msm_voice_source_tracking_get,
  14711. },
  14712. {
  14713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14715. .name = "Sound Focus Audio Tx TERT_MI2S",
  14716. .info = msm_sound_focus_info,
  14717. .get = msm_audio_sound_focus_get,
  14718. .put = msm_audio_sound_focus_put,
  14719. },
  14720. {
  14721. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14722. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14723. .name = "Source Tracking Audio Tx TERT_MI2S",
  14724. .info = msm_source_tracking_info,
  14725. .get = msm_audio_source_tracking_get,
  14726. },
  14727. {
  14728. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14730. .name = "Sound Focus Voice Tx INT3_MI2S",
  14731. .info = msm_sound_focus_info,
  14732. .get = msm_voice_sound_focus_get,
  14733. .put = msm_voice_sound_focus_put,
  14734. },
  14735. {
  14736. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14737. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14738. .name = "Source Tracking Voice Tx INT3_MI2S",
  14739. .info = msm_source_tracking_info,
  14740. .get = msm_voice_source_tracking_get,
  14741. },
  14742. {
  14743. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14744. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14745. .name = "Sound Focus Audio Tx INT3_MI2S",
  14746. .info = msm_sound_focus_info,
  14747. .get = msm_audio_sound_focus_get,
  14748. .put = msm_audio_sound_focus_put,
  14749. },
  14750. {
  14751. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14753. .name = "Source Tracking Audio Tx INT3_MI2S",
  14754. .info = msm_source_tracking_info,
  14755. .get = msm_audio_source_tracking_get,
  14756. },
  14757. };
  14758. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14759. struct snd_ctl_elem_value *ucontrol)
  14760. {
  14761. int ret = 0;
  14762. int item;
  14763. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14764. pr_debug("%s item is %d\n", __func__,
  14765. ucontrol->value.enumerated.item[0]);
  14766. mutex_lock(&routing_lock);
  14767. item = ucontrol->value.enumerated.item[0];
  14768. if (item < e->items) {
  14769. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14770. __func__, e->shift_l, e->values[item]);
  14771. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14772. e->values[item] < MSM_BACKEND_DAI_MAX)
  14773. /* Enable feedback TX path */
  14774. ret = afe_spk_prot_feed_back_cfg(
  14775. msm_bedais[e->values[item]].port_id,
  14776. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14777. else {
  14778. pr_debug("%s values are out of range item %d\n",
  14779. __func__, e->values[item]);
  14780. /* Disable feedback TX path */
  14781. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14782. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14783. else
  14784. ret = -EINVAL;
  14785. }
  14786. } else {
  14787. pr_err("%s item value is out of range item\n", __func__);
  14788. ret = -EINVAL;
  14789. }
  14790. mutex_unlock(&routing_lock);
  14791. return ret;
  14792. }
  14793. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14794. struct snd_ctl_elem_value *ucontrol)
  14795. {
  14796. int ret = 0;
  14797. int item;
  14798. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14799. pr_debug("%s item is %d\n", __func__,
  14800. ucontrol->value.enumerated.item[0]);
  14801. mutex_lock(&routing_lock);
  14802. item = ucontrol->value.enumerated.item[0];
  14803. if (item < e->items) {
  14804. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14805. __func__, e->shift_l, e->values[item]);
  14806. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14807. e->values[item] < MSM_BACKEND_DAI_MAX)
  14808. /* Enable feedback TX path */
  14809. ret = afe_spk_prot_feed_back_cfg(
  14810. msm_bedais[e->values[item]].port_id,
  14811. msm_bedais[e->shift_l].port_id,
  14812. 1, 1, 1);
  14813. else {
  14814. pr_debug("%s values are out of range item %d\n",
  14815. __func__, e->values[item]);
  14816. /* Disable feedback TX path */
  14817. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14818. ret = afe_spk_prot_feed_back_cfg(0,
  14819. 0, 0, 0, 0);
  14820. else
  14821. ret = -EINVAL;
  14822. }
  14823. } else {
  14824. pr_err("%s item value is out of range item\n", __func__);
  14825. ret = -EINVAL;
  14826. }
  14827. mutex_unlock(&routing_lock);
  14828. return ret;
  14829. }
  14830. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14831. struct snd_ctl_elem_value *ucontrol)
  14832. {
  14833. pr_debug("%s\n", __func__);
  14834. return 0;
  14835. }
  14836. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14837. struct snd_ctl_elem_value *ucontrol)
  14838. {
  14839. pr_debug("%s\n", __func__);
  14840. ucontrol->value.enumerated.item[0] = 0;
  14841. return 0;
  14842. }
  14843. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14844. "ZERO", "SLIM4_TX"
  14845. };
  14846. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14847. "ZERO", "SLIM4_TX"
  14848. };
  14849. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14850. "ZERO", "WSA_CDC_DMA_TX_0"
  14851. };
  14852. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14853. "ZERO", "WSA_CDC_DMA_TX_0"
  14854. };
  14855. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14856. "ZERO", "SENARY_TX"
  14857. };
  14858. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14859. "ZERO", "INT5_MI2S_TX"
  14860. };
  14861. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14862. "ZERO", "INT5_MI2S_TX"
  14863. };
  14864. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14865. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14866. };
  14867. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14868. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14869. };
  14870. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14871. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14872. };
  14873. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14874. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14875. };
  14876. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14877. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14878. };
  14879. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14880. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14881. };
  14882. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14883. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14884. };
  14885. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14886. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14887. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14888. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14889. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14890. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14891. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14892. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14893. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14894. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14895. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14896. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14897. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14898. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14899. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14900. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14901. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14902. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14903. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14904. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14905. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14906. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14907. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14908. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14909. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14910. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14911. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14912. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14913. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14914. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14915. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14916. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14917. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14918. spkr_prot_put_vi_lch_port);
  14919. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14920. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14921. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14922. spkr_prot_put_vi_rch_port);
  14923. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14924. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14925. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14926. spkr_prot_put_vi_lch_port);
  14927. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14928. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14929. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14930. spkr_prot_put_vi_rch_port);
  14931. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14932. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14933. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14934. spkr_prot_put_vi_lch_port);
  14935. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14936. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14937. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14938. spkr_prot_put_vi_lch_port);
  14939. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14940. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14941. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14942. spkr_prot_put_vi_rch_port);
  14943. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14944. /* Frontend AIF */
  14945. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14946. * Stream name must contains substring of front-end dai name
  14947. */
  14948. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14949. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14950. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14951. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14952. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14953. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14954. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14955. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14956. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14958. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14960. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14962. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14964. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14966. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14968. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14970. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14972. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14974. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14976. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14977. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14978. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14980. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14982. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14983. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14984. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14986. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14988. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14989. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14990. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14991. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14992. 0, 0, 0, 0),
  14993. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14994. 0, 0, 0, 0),
  14995. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14996. 0, 0, 0, 0),
  14997. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14998. 0, 0, 0, 0),
  14999. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  15000. 0, 0, 0, 0),
  15001. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  15002. 0, 0, 0, 0),
  15003. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  15004. 0, 0, 0, 0),
  15005. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  15006. 0, 0, 0, 0),
  15007. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  15008. 0, 0, 0, 0),
  15009. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  15010. 0, 0, 0, 0),
  15011. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  15012. 0, 0, 0, 0),
  15013. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  15014. 0, 0, 0, 0),
  15015. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  15016. 0, 0, 0, 0),
  15017. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  15018. 0, 0, 0, 0),
  15019. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  15020. 0, 0, 0, 0),
  15021. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  15022. 0, 0, 0, 0),
  15023. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  15024. 0, 0, 0, 0),
  15025. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15026. 0, 0, 0, 0),
  15027. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15028. 0, 0, 0, 0),
  15029. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15030. 0, 0, 0, 0),
  15031. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15032. 0, 0, 0, 0),
  15033. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15034. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15035. 0, 0, 0, 0),
  15036. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15037. "INT0 MI2S_RX Hostless Playback",
  15038. 0, 0, 0, 0),
  15039. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15040. "INT4 MI2S_RX Hostless Playback",
  15041. 0, 0, 0, 0),
  15042. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15043. "Primary MI2S_RX Hostless Playback",
  15044. 0, 0, 0, 0),
  15045. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15046. "Secondary MI2S_RX Hostless Playback",
  15047. 0, 0, 0, 0),
  15048. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15049. "Tertiary MI2S_RX Hostless Playback",
  15050. 0, 0, 0, 0),
  15051. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15052. "Quaternary MI2S_RX Hostless Playback",
  15053. 0, 0, 0, 0),
  15054. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15055. "Quinary MI2S_RX Hostless Playback",
  15056. 0, 0, 0, 0),
  15057. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15058. 0, 0, 0, 0),
  15059. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15060. 0, 0, 0, 0),
  15061. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15062. 0, 0, 0, 0),
  15063. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15064. 0, 0, 0, 0),
  15065. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15066. 0, 0, 0, 0),
  15067. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15068. "INT3 MI2S_TX Hostless Capture",
  15069. 0, 0, 0, 0),
  15070. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15071. "Tertiary MI2S_TX Hostless Capture",
  15072. 0, 0, 0, 0),
  15073. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15074. "Secondary MI2S_TX Hostless Capture",
  15075. 0, 0, 0, 0),
  15076. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15077. "Primary MI2S_TX Hostless Capture",
  15078. 0, 0, 0, 0),
  15079. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15080. 0, 0, 0, 0),
  15081. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15082. 0, 0, 0, 0),
  15083. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15084. "Quaternary MI2S_TX Hostless Capture",
  15085. 0, 0, 0, 0),
  15086. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15087. "Quinary MI2S_TX Hostless Capture",
  15088. 0, 0, 0, 0),
  15089. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15090. "Primary TDM0 Hostless Playback",
  15091. 0, 0, 0, 0),
  15092. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15093. "Primary TDM0 Hostless Capture",
  15094. 0, 0, 0, 0),
  15095. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15096. "Primary TDM1 Hostless Playback",
  15097. 0, 0, 0, 0),
  15098. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15099. "Primary TDM1 Hostless Capture",
  15100. 0, 0, 0, 0),
  15101. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15102. "Primary TDM2 Hostless Playback",
  15103. 0, 0, 0, 0),
  15104. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15105. "Primary TDM2 Hostless Capture",
  15106. 0, 0, 0, 0),
  15107. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15108. "Primary TDM3 Hostless Playback",
  15109. 0, 0, 0, 0),
  15110. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15111. "Primary TDM3 Hostless Capture",
  15112. 0, 0, 0, 0),
  15113. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15114. "Primary TDM4 Hostless Playback",
  15115. 0, 0, 0, 0),
  15116. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15117. "Primary TDM4 Hostless Capture",
  15118. 0, 0, 0, 0),
  15119. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15120. "Primary TDM5 Hostless Playback",
  15121. 0, 0, 0, 0),
  15122. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15123. "Primary TDM5 Hostless Capture",
  15124. 0, 0, 0, 0),
  15125. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15126. "Primary TDM6 Hostless Playback",
  15127. 0, 0, 0, 0),
  15128. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15129. "Primary TDM6 Hostless Capture",
  15130. 0, 0, 0, 0),
  15131. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15132. "Primary TDM7 Hostless Playback",
  15133. 0, 0, 0, 0),
  15134. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15135. "Primary TDM7 Hostless Capture",
  15136. 0, 0, 0, 0),
  15137. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15138. "Secondary TDM0 Hostless Playback",
  15139. 0, 0, 0, 0),
  15140. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15141. "Secondary TDM0 Hostless Capture",
  15142. 0, 0, 0, 0),
  15143. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15144. "Secondary TDM1 Hostless Playback",
  15145. 0, 0, 0, 0),
  15146. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15147. "Secondary TDM1 Hostless Capture",
  15148. 0, 0, 0, 0),
  15149. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15150. "Secondary TDM2 Hostless Playback",
  15151. 0, 0, 0, 0),
  15152. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15153. "Secondary TDM2 Hostless Capture",
  15154. 0, 0, 0, 0),
  15155. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15156. "Secondary TDM3 Hostless Playback",
  15157. 0, 0, 0, 0),
  15158. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15159. "Secondary TDM3 Hostless Capture",
  15160. 0, 0, 0, 0),
  15161. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15162. "Secondary TDM4 Hostless Playback",
  15163. 0, 0, 0, 0),
  15164. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15165. "Secondary TDM4 Hostless Capture",
  15166. 0, 0, 0, 0),
  15167. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15168. "Secondary TDM5 Hostless Playback",
  15169. 0, 0, 0, 0),
  15170. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15171. "Secondary TDM5 Hostless Capture",
  15172. 0, 0, 0, 0),
  15173. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15174. "Secondary TDM6 Hostless Playback",
  15175. 0, 0, 0, 0),
  15176. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15177. "Secondary TDM6 Hostless Capture",
  15178. 0, 0, 0, 0),
  15179. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15180. "Secondary TDM7 Hostless Playback",
  15181. 0, 0, 0, 0),
  15182. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15183. "Secondary TDM7 Hostless Capture",
  15184. 0, 0, 0, 0),
  15185. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15186. "Tertiary TDM0 Hostless Playback",
  15187. 0, 0, 0, 0),
  15188. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15189. "Tertiary TDM0 Hostless Capture",
  15190. 0, 0, 0, 0),
  15191. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15192. "Tertiary TDM1 Hostless Playback",
  15193. 0, 0, 0, 0),
  15194. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15195. "Tertiary TDM1 Hostless Capture",
  15196. 0, 0, 0, 0),
  15197. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15198. "Tertiary TDM2 Hostless Playback",
  15199. 0, 0, 0, 0),
  15200. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15201. "Tertiary TDM2 Hostless Capture",
  15202. 0, 0, 0, 0),
  15203. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15204. "Tertiary TDM3 Hostless Playback",
  15205. 0, 0, 0, 0),
  15206. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15207. "Tertiary TDM3 Hostless Capture",
  15208. 0, 0, 0, 0),
  15209. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15210. "Tertiary TDM4 Hostless Playback",
  15211. 0, 0, 0, 0),
  15212. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15213. "Tertiary TDM4 Hostless Capture",
  15214. 0, 0, 0, 0),
  15215. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15216. "Tertiary TDM5 Hostless Playback",
  15217. 0, 0, 0, 0),
  15218. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15219. "Tertiary TDM5 Hostless Capture",
  15220. 0, 0, 0, 0),
  15221. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15222. "Tertiary TDM6 Hostless Playback",
  15223. 0, 0, 0, 0),
  15224. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15225. "Tertiary TDM6 Hostless Capture",
  15226. 0, 0, 0, 0),
  15227. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15228. "Tertiary TDM7 Hostless Playback",
  15229. 0, 0, 0, 0),
  15230. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15231. "Tertiary TDM7 Hostless Capture",
  15232. 0, 0, 0, 0),
  15233. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15234. "Quaternary TDM0 Hostless Playback",
  15235. 0, 0, 0, 0),
  15236. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15237. "Quaternary TDM0 Hostless Capture",
  15238. 0, 0, 0, 0),
  15239. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15240. "Quaternary TDM1 Hostless Playback",
  15241. 0, 0, 0, 0),
  15242. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15243. "Quaternary TDM1 Hostless Capture",
  15244. 0, 0, 0, 0),
  15245. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15246. "Quaternary TDM2 Hostless Playback",
  15247. 0, 0, 0, 0),
  15248. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15249. "Quaternary TDM2 Hostless Capture",
  15250. 0, 0, 0, 0),
  15251. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15252. "Quaternary TDM3 Hostless Playback",
  15253. 0, 0, 0, 0),
  15254. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15255. "Quaternary TDM3 Hostless Capture",
  15256. 0, 0, 0, 0),
  15257. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15258. "Quaternary TDM4 Hostless Playback",
  15259. 0, 0, 0, 0),
  15260. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15261. "Quaternary TDM4 Hostless Capture",
  15262. 0, 0, 0, 0),
  15263. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15264. "Quaternary TDM5 Hostless Playback",
  15265. 0, 0, 0, 0),
  15266. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15267. "Quaternary TDM5 Hostless Capture",
  15268. 0, 0, 0, 0),
  15269. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15270. "Quaternary TDM6 Hostless Playback",
  15271. 0, 0, 0, 0),
  15272. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15273. "Quaternary TDM6 Hostless Capture",
  15274. 0, 0, 0, 0),
  15275. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15276. "Quaternary TDM7 Hostless Playback",
  15277. 0, 0, 0, 0),
  15278. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15279. "Quaternary TDM7 Hostless Capture",
  15280. 0, 0, 0, 0),
  15281. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15282. "Quinary TDM0 Hostless Playback",
  15283. 0, 0, 0, 0),
  15284. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15285. "Quinary TDM0 Hostless Capture",
  15286. 0, 0, 0, 0),
  15287. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15288. "Quinary TDM1 Hostless Playback",
  15289. 0, 0, 0, 0),
  15290. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15291. "Quinary TDM1 Hostless Capture",
  15292. 0, 0, 0, 0),
  15293. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15294. "Quinary TDM2 Hostless Playback",
  15295. 0, 0, 0, 0),
  15296. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15297. "Quinary TDM2 Hostless Capture",
  15298. 0, 0, 0, 0),
  15299. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15300. "Quinary TDM3 Hostless Playback",
  15301. 0, 0, 0, 0),
  15302. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15303. "Quinary TDM3 Hostless Capture",
  15304. 0, 0, 0, 0),
  15305. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15306. "Quinary TDM4 Hostless Playback",
  15307. 0, 0, 0, 0),
  15308. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15309. "Quinary TDM4 Hostless Capture",
  15310. 0, 0, 0, 0),
  15311. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15312. "Quinary TDM5 Hostless Playback",
  15313. 0, 0, 0, 0),
  15314. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15315. "Quinary TDM5 Hostless Capture",
  15316. 0, 0, 0, 0),
  15317. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15318. "Quinary TDM6 Hostless Playback",
  15319. 0, 0, 0, 0),
  15320. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15321. "Quinary TDM6 Hostless Capture",
  15322. 0, 0, 0, 0),
  15323. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15324. "Quinary TDM7 Hostless Playback",
  15325. 0, 0, 0, 0),
  15326. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15327. "Quinary TDM7 Hostless Capture",
  15328. 0, 0, 0, 0),
  15329. /* LSM */
  15330. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15331. 0, 0, 0, 0),
  15332. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15333. 0, 0, 0, 0),
  15334. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15335. 0, 0, 0, 0),
  15336. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15337. 0, 0, 0, 0),
  15338. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15339. 0, 0, 0, 0),
  15340. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15341. 0, 0, 0, 0),
  15342. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15343. 0, 0, 0, 0),
  15344. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15345. 0, 0, 0, 0),
  15346. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15348. /* Backend AIF */
  15349. /* Stream name equals to backend dai link stream name */
  15350. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15351. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15352. 0, 0, 0, 0),
  15353. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15354. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15355. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15357. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15359. 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15361. 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15363. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15364. 0, 0, 0, 0),
  15365. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15366. 0, 0, 0, 0),
  15367. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15368. 0, 0, 0, 0),
  15369. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15370. "Secondary MI2S Playback SD1",
  15371. 0, 0, 0, 0),
  15372. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15375. 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15377. 0, 0, 0, 0),
  15378. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15379. 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15383. 0, 0, 0, 0),
  15384. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15385. 0, 0, 0, 0),
  15386. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15387. 0, 0, 0, 0),
  15388. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15389. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15390. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15391. 0, 0, 0, 0),
  15392. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15393. 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15395. 0, 0, 0, 0),
  15396. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15397. 0, 0, 0, 0),
  15398. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15399. 0, 0, 0, 0),
  15400. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15401. 0, 0, 0, 0),
  15402. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15403. 0, 0, 0, 0),
  15404. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15405. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15406. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15407. 0, 0, 0, 0),
  15408. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15409. 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15411. 0, 0, 0, 0),
  15412. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15413. 0, 0, 0, 0),
  15414. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15415. 0, 0, 0, 0),
  15416. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15417. 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15419. 0, 0, 0, 0),
  15420. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15421. 0, 0, 0, 0),
  15422. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15423. 0, 0, 0, 0),
  15424. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15425. 0, 0, 0, 0),
  15426. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15427. 0, 0, 0, 0),
  15428. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15429. 0, 0, 0, 0),
  15430. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15431. 0, 0, 0, 0),
  15432. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15433. 0, 0, 0, 0),
  15434. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15435. 0, 0, 0, 0),
  15436. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15437. 0, 0, 0, 0),
  15438. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15439. 0, 0, 0, 0),
  15440. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15441. 0, 0, 0, 0),
  15442. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15443. 0, 0, 0, 0),
  15444. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15445. 0, 0, 0, 0),
  15446. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15447. 0, 0, 0, 0),
  15448. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15449. 0, 0, 0, 0),
  15450. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15451. 0, 0, 0, 0),
  15452. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15453. 0, 0, 0, 0),
  15454. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15455. 0, 0, 0, 0),
  15456. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15457. 0, 0, 0, 0),
  15458. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15459. 0, 0, 0, 0),
  15460. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15461. 0, 0, 0, 0),
  15462. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15463. 0, 0, 0, 0),
  15464. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15465. 0, 0, 0, 0),
  15466. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15467. 0, 0, 0, 0),
  15468. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15469. 0, 0, 0, 0),
  15470. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15471. 0, 0, 0, 0),
  15472. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15473. 0, 0, 0, 0),
  15474. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15475. 0, 0, 0, 0),
  15476. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15477. 0, 0, 0, 0),
  15478. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15479. 0, 0, 0, 0),
  15480. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15481. 0, 0, 0, 0),
  15482. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15483. 0, 0, 0, 0),
  15484. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15485. 0, 0, 0, 0),
  15486. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15491. 0, 0, 0, 0),
  15492. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15497. 0, 0, 0, 0),
  15498. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15503. 0, 0, 0, 0),
  15504. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15505. 0, 0, 0, 0),
  15506. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15507. 0, 0, 0, 0),
  15508. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15509. 0, 0, 0, 0),
  15510. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15511. 0, 0, 0, 0),
  15512. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15513. 0, 0, 0, 0),
  15514. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15515. 0, 0, 0, 0),
  15516. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15517. 0, 0, 0, 0),
  15518. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15519. 0, 0, 0, 0),
  15520. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15521. 0, 0, 0, 0),
  15522. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15523. 0, 0, 0, 0),
  15524. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15525. 0, 0, 0, 0),
  15526. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15527. 0, 0, 0, 0),
  15528. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15529. 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15531. 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15533. 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15537. 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15539. 0, 0, 0, 0),
  15540. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15541. 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15543. 0, 0, 0, 0),
  15544. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15545. 0, 0, 0, 0),
  15546. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15547. 0, 0, 0, 0),
  15548. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15549. 0, 0, 0, 0),
  15550. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15551. 0, 0, 0, 0),
  15552. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15553. 0, 0, 0, 0),
  15554. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15555. 0, 0, 0, 0),
  15556. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15557. 0, 0, 0, 0),
  15558. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15559. 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15561. 0, 0, 0, 0),
  15562. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15563. 0, 0, 0, 0),
  15564. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15565. 0, 0, 0, 0),
  15566. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15567. 0, 0, 0, 0),
  15568. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15569. 0, 0, 0, 0),
  15570. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15571. 0, 0, 0, 0),
  15572. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15573. 0, 0, 0, 0),
  15574. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15575. 0, 0, 0, 0),
  15576. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15577. 0, 0, 0, 0),
  15578. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15579. 0, 0, 0, 0),
  15580. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15581. 0, 0, 0, 0),
  15582. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15583. 0, 0, 0, 0),
  15584. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15585. 0, 0, 0, 0),
  15586. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15587. 0, 0, 0, 0),
  15588. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15589. 0, 0, 0, 0),
  15590. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15591. 0, 0, 0, 0),
  15592. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15593. 0, 0, 0, 0),
  15594. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15595. 0, 0, 0, 0),
  15596. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15597. 0, 0, 0, 0),
  15598. /* incall */
  15599. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15600. 0, 0, 0, 0),
  15601. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15602. 0, 0, 0, 0),
  15603. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15604. 0, 0, 0, 0),
  15605. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15606. 0, 0, 0, 0),
  15607. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15608. 0, 0, 0, 0),
  15609. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15610. 0, 0, 0, 0),
  15611. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15612. 0, 0, 0, 0),
  15613. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15614. 0, 0, 0, 0),
  15615. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15617. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15619. 0, 0, 0, 0),
  15620. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15621. 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15623. 0, 0, 0, 0),
  15624. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15625. 0, 0, 0, 0),
  15626. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15627. 0, 0, 0, 0),
  15628. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15629. 0, 0, 0, 0),
  15630. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15631. 0, 0, 0, 0),
  15632. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15633. 0, 0, 0, 0),
  15634. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15635. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15636. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15637. 0, 0, 0, 0),
  15638. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15639. 0, 0, 0, 0),
  15640. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15641. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15642. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15643. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15644. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15645. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15646. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15647. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15648. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15649. /* In- call recording */
  15650. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15651. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15652. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15653. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15654. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15655. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15656. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15657. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15658. /* Switch Definitions */
  15659. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15660. &slim_fm_switch_mixer_controls),
  15661. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15662. &slim1_fm_switch_mixer_controls),
  15663. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15664. &slim3_fm_switch_mixer_controls),
  15665. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15666. &slim4_fm_switch_mixer_controls),
  15667. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15668. &slim6_fm_switch_mixer_controls),
  15669. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15670. &pcm_rx_switch_mixer_controls),
  15671. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15672. &int0_mi2s_rx_switch_mixer_controls),
  15673. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15674. &int4_mi2s_rx_switch_mixer_controls),
  15675. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15676. &pri_mi2s_rx_switch_mixer_controls),
  15677. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15678. &sec_mi2s_rx_switch_mixer_controls),
  15679. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15680. &tert_mi2s_rx_switch_mixer_controls),
  15681. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15682. &quat_mi2s_rx_switch_mixer_controls),
  15683. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15684. &quin_mi2s_rx_switch_mixer_controls),
  15685. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15686. &hfp_pri_aux_switch_mixer_controls),
  15687. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15688. &hfp_aux_switch_mixer_controls),
  15689. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15690. &hfp_int_switch_mixer_controls),
  15691. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15692. &hfp_slim7_switch_mixer_controls),
  15693. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15694. &usb_switch_mixer_controls),
  15695. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15696. &a2dp_slim7_switch_mixer_controls),
  15697. /* Mixer definitions */
  15698. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15699. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15700. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15701. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15702. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15703. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15704. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15705. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15706. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15707. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15708. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15709. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15710. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15711. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15712. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15713. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15714. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15715. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15716. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15717. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15718. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15719. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15720. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15721. quaternary_mi2s_rx_mixer_controls,
  15722. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15723. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15724. tertiary_mi2s_rx_mixer_controls,
  15725. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15726. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15727. secondary_mi2s_rx_mixer_controls,
  15728. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15729. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15730. secondary_mi2s_rx2_mixer_controls,
  15731. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15732. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15733. primary_mi2s_rx_mixer_controls,
  15734. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15735. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15736. int0_mi2s_rx_mixer_controls,
  15737. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15738. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15739. int4_mi2s_rx_mixer_controls,
  15740. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15741. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15742. quinary_mi2s_rx_mixer_controls,
  15743. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15744. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15745. pri_tdm_rx_0_mixer_controls,
  15746. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15747. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15748. pri_tdm_rx_1_mixer_controls,
  15749. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15750. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15751. pri_tdm_rx_2_mixer_controls,
  15752. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15753. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15754. pri_tdm_rx_3_mixer_controls,
  15755. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15756. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15757. pri_tdm_tx_0_mixer_controls,
  15758. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15759. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15760. sec_tdm_rx_0_mixer_controls,
  15761. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15762. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15763. sec_tdm_rx_1_mixer_controls,
  15764. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15765. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15766. sec_tdm_rx_2_mixer_controls,
  15767. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15768. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15769. sec_tdm_rx_3_mixer_controls,
  15770. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15771. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15772. sec_tdm_tx_0_mixer_controls,
  15773. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15774. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15775. tert_tdm_rx_0_mixer_controls,
  15776. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15777. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15778. tert_tdm_tx_0_mixer_controls,
  15779. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15780. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15781. tert_tdm_rx_1_mixer_controls,
  15782. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15783. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15784. tert_tdm_rx_2_mixer_controls,
  15785. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15786. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15787. tert_tdm_rx_3_mixer_controls,
  15788. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15789. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15790. tert_tdm_rx_4_mixer_controls,
  15791. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15792. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15793. quat_tdm_rx_0_mixer_controls,
  15794. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15795. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15796. quat_tdm_tx_0_mixer_controls,
  15797. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15798. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15799. quat_tdm_rx_1_mixer_controls,
  15800. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15801. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15802. quat_tdm_rx_2_mixer_controls,
  15803. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15805. quat_tdm_rx_3_mixer_controls,
  15806. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15807. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15808. quin_tdm_rx_0_mixer_controls,
  15809. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15810. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15811. quin_tdm_tx_0_mixer_controls,
  15812. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15813. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15814. quin_tdm_rx_1_mixer_controls,
  15815. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15816. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15817. quin_tdm_rx_2_mixer_controls,
  15818. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15819. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15820. quin_tdm_rx_3_mixer_controls,
  15821. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15822. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15823. wsa_cdc_dma_rx_0_mixer_controls,
  15824. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15825. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15826. wsa_cdc_dma_rx_1_mixer_controls,
  15827. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15829. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15830. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15831. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15832. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15833. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15834. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15835. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15836. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15837. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15838. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15839. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15840. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15841. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15842. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15843. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15844. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15845. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15846. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15847. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15848. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15849. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15850. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15851. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15852. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15853. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15854. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15855. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15856. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15857. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15858. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15859. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15860. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15861. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15862. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15863. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15864. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15865. tert_auxpcm_rx_mixer_controls,
  15866. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15868. quat_auxpcm_rx_mixer_controls,
  15869. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15870. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15871. quin_auxpcm_rx_mixer_controls,
  15872. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15873. /* incall */
  15874. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15875. incall_music_delivery_mixer_controls,
  15876. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15877. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15878. incall_music2_delivery_mixer_controls,
  15879. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15880. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15881. slimbus_4_rx_mixer_controls,
  15882. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15883. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15884. slimbus_6_rx_mixer_controls,
  15885. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15886. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15887. usb_audio_rx_mixer_controls,
  15888. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15889. /* Voice Mixer */
  15890. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15891. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15892. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15893. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15894. SND_SOC_NOPM, 0, 0,
  15895. sec_i2s_rx_voice_mixer_controls,
  15896. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15897. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15898. SND_SOC_NOPM, 0, 0,
  15899. sec_mi2s_rx_voice_mixer_controls,
  15900. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15901. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15902. SND_SOC_NOPM, 0, 0,
  15903. slimbus_rx_voice_mixer_controls,
  15904. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15905. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15906. SND_SOC_NOPM, 0, 0,
  15907. bt_sco_rx_voice_mixer_controls,
  15908. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15909. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15910. SND_SOC_NOPM, 0, 0,
  15911. afe_pcm_rx_voice_mixer_controls,
  15912. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15913. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15914. SND_SOC_NOPM, 0, 0,
  15915. aux_pcm_rx_voice_mixer_controls,
  15916. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15917. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15918. SND_SOC_NOPM, 0, 0,
  15919. sec_aux_pcm_rx_voice_mixer_controls,
  15920. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15921. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15922. SND_SOC_NOPM, 0, 0,
  15923. tert_aux_pcm_rx_voice_mixer_controls,
  15924. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15925. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15926. SND_SOC_NOPM, 0, 0,
  15927. quat_aux_pcm_rx_voice_mixer_controls,
  15928. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15929. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15930. SND_SOC_NOPM, 0, 0,
  15931. quin_aux_pcm_rx_voice_mixer_controls,
  15932. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15933. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15934. SND_SOC_NOPM, 0, 0,
  15935. hdmi_rx_voice_mixer_controls,
  15936. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15937. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15938. SND_SOC_NOPM, 0, 0,
  15939. mi2s_rx_voice_mixer_controls,
  15940. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15941. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15942. SND_SOC_NOPM, 0, 0,
  15943. pri_mi2s_rx_voice_mixer_controls,
  15944. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15945. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15946. SND_SOC_NOPM, 0, 0,
  15947. int0_mi2s_rx_voice_mixer_controls,
  15948. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15949. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15950. SND_SOC_NOPM, 0, 0,
  15951. int4_mi2s_rx_voice_mixer_controls,
  15952. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15953. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15954. SND_SOC_NOPM, 0, 0,
  15955. tert_mi2s_rx_voice_mixer_controls,
  15956. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15957. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15958. SND_SOC_NOPM, 0, 0,
  15959. quat_mi2s_rx_voice_mixer_controls,
  15960. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15961. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15962. SND_SOC_NOPM, 0, 0,
  15963. quin_mi2s_rx_voice_mixer_controls,
  15964. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15965. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15966. SND_SOC_NOPM, 0, 0,
  15967. quat_tdm_rx_2_voice_mixer_controls,
  15968. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15969. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15970. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15971. ARRAY_SIZE(tx_voip_mixer_controls)),
  15972. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15973. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15974. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15975. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15976. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15977. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15978. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15979. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15980. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15981. int_bt_a2dp_rx_mixer_controls,
  15982. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15983. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15984. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15985. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15986. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15987. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15988. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15989. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15990. tx_voice2_stub_mixer_controls,
  15991. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15992. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15993. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15994. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15995. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15996. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15997. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15998. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15999. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  16000. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  16001. SND_SOC_NOPM, 0, 0,
  16002. slimbus_6_rx_voice_mixer_controls,
  16003. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  16004. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16005. slimbus_7_rx_voice_mixer_controls,
  16006. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  16007. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16008. slimbus_8_rx_voice_mixer_controls,
  16009. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  16010. /* port mixer */
  16011. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  16012. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  16013. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  16014. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  16015. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  16016. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  16017. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  16018. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  16019. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  16020. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  16021. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  16022. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  16023. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  16024. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  16025. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16026. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16027. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16028. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16029. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16030. sbus_1_rx_port_mixer_controls,
  16031. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16032. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16033. bt_sco_rx_port_mixer_controls,
  16034. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16035. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16036. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16037. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16038. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16039. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16040. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16041. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16042. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16043. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16044. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16045. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16046. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16047. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16048. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16049. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16050. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16051. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16052. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16053. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16054. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16055. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16056. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16057. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16058. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16059. primary_mi2s_rx_port_mixer_controls,
  16060. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16061. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16062. sec_mi2s_rx_port_mixer_controls,
  16063. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16064. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16065. tert_mi2s_rx_port_mixer_controls,
  16066. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16067. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16068. quat_mi2s_rx_port_mixer_controls,
  16069. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16070. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16071. quin_mi2s_rx_port_mixer_controls,
  16072. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16073. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16074. pri_tdm_rx_0_port_mixer_controls,
  16075. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16076. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16077. pri_tdm_rx_1_port_mixer_controls,
  16078. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16079. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16080. pri_tdm_rx_2_port_mixer_controls,
  16081. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16082. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16083. pri_tdm_rx_3_port_mixer_controls,
  16084. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16085. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16086. sec_tdm_rx_0_port_mixer_controls,
  16087. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16088. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16089. sec_tdm_rx_1_port_mixer_controls,
  16090. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16091. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16092. sec_tdm_rx_2_port_mixer_controls,
  16093. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16094. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16095. sec_tdm_rx_3_port_mixer_controls,
  16096. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16097. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16098. tert_tdm_rx_0_port_mixer_controls,
  16099. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16100. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16101. tert_tdm_rx_1_port_mixer_controls,
  16102. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16103. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16104. tert_tdm_rx_2_port_mixer_controls,
  16105. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16106. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16107. tert_tdm_rx_3_port_mixer_controls,
  16108. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16109. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16110. quat_tdm_rx_0_port_mixer_controls,
  16111. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16112. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16113. quat_tdm_rx_1_port_mixer_controls,
  16114. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16115. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16116. quat_tdm_rx_2_port_mixer_controls,
  16117. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16118. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16119. quat_tdm_rx_3_port_mixer_controls,
  16120. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16121. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16122. quin_tdm_rx_0_port_mixer_controls,
  16123. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16124. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16125. quin_tdm_rx_1_port_mixer_controls,
  16126. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16127. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16128. quin_tdm_rx_2_port_mixer_controls,
  16129. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16130. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16131. quin_tdm_rx_3_port_mixer_controls,
  16132. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16133. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16134. int0_mi2s_rx_port_mixer_controls,
  16135. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16136. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16137. int4_mi2s_rx_port_mixer_controls,
  16138. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16139. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16140. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16141. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16142. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16143. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16144. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16145. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16146. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16147. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16148. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16149. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16150. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16151. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16152. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16153. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16154. /* lsm mixer definitions */
  16155. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16156. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16157. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16158. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16159. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16160. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16161. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16162. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16163. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16164. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16165. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16166. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16167. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16168. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16169. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16170. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16171. /* Virtual Pins to force backends ON atm */
  16172. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16173. SND_SOC_DAPM_INPUT("BE_IN"),
  16174. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16175. &slim0_rx_vi_fb_lch_mux),
  16176. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16177. &slim0_rx_vi_fb_rch_mux),
  16178. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16179. &wsa_rx_0_vi_fb_lch_mux),
  16180. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16181. &wsa_rx_0_vi_fb_rch_mux),
  16182. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16183. &mi2s_rx_vi_fb_mux),
  16184. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16185. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16186. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16187. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16188. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16189. &voc_ext_ec_mux),
  16190. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16191. &ext_ec_ref_mux_ul1),
  16192. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16193. &ext_ec_ref_mux_ul2),
  16194. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16195. &ext_ec_ref_mux_ul3),
  16196. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16197. &ext_ec_ref_mux_ul4),
  16198. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16199. &ext_ec_ref_mux_ul5),
  16200. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16201. &ext_ec_ref_mux_ul6),
  16202. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16203. &ext_ec_ref_mux_ul8),
  16204. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16205. &ext_ec_ref_mux_ul9),
  16206. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16207. &ext_ec_ref_mux_ul10),
  16208. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16209. &ext_ec_ref_mux_ul16),
  16210. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16211. &ext_ec_ref_mux_ul17),
  16212. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16213. &ext_ec_ref_mux_ul18),
  16214. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16215. &ext_ec_ref_mux_ul19),
  16216. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16217. &ext_ec_ref_mux_ul28),
  16218. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16219. &ext_ec_ref_mux_ul29),
  16220. };
  16221. static const struct snd_soc_dapm_route intercon[] = {
  16222. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16223. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16224. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16225. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16226. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16227. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16228. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16229. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16230. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16231. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16232. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16233. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16234. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16235. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16236. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16237. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16238. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16239. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16240. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16241. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16242. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16243. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16244. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16245. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16246. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16247. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16248. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16249. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16250. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16251. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16252. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16253. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16254. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16255. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16256. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16257. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16258. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16259. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16260. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16261. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16262. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16263. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16264. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16265. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16266. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16267. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16268. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16269. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16270. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16271. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16272. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16273. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16274. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16275. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16276. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16277. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16278. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16279. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16280. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16281. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16282. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16283. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16284. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16285. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16286. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16287. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16288. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16289. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16290. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16291. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16292. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16293. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16294. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16295. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16296. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16297. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16298. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16299. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16300. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16301. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16302. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16303. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16304. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16305. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16306. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16307. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16308. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16309. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16310. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16311. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16312. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16313. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16314. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16315. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16316. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16317. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16318. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16319. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16320. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16321. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16322. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16323. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16324. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16325. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16326. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16327. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16328. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16329. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16330. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16331. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16332. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16333. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16334. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16335. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16336. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16337. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16338. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16339. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16340. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16341. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16342. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16343. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16344. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16345. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16346. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16347. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16348. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16349. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16350. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16351. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16352. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16353. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16354. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16355. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16356. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16357. {"HDMI", NULL, "HDMI Mixer"},
  16358. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16359. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16360. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16361. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16362. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16363. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16364. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16365. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16366. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16367. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16368. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16369. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16370. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16371. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16372. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16373. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16374. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16375. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16376. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16377. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16378. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16379. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16380. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16381. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16382. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16383. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16384. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16385. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16386. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16387. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16388. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16389. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16390. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16391. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16392. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16393. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16394. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16395. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16396. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16397. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16398. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16399. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16400. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16401. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16402. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16403. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16404. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16405. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16406. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16407. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16408. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16409. /* incall */
  16410. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16411. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16412. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16413. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16414. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16415. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16416. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16417. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16418. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16419. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16420. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16421. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16422. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16423. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16424. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16425. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16426. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16427. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16428. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16429. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16430. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16431. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16432. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16433. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16434. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16435. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16436. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16437. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16438. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16439. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16440. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16441. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16442. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16443. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16444. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16445. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16446. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16447. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16448. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16449. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16450. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16451. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16452. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16453. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16454. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16455. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16456. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16457. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16458. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16459. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16460. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16461. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16462. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16463. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16464. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16465. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16466. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16467. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16468. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16469. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16470. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16471. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16472. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16473. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16474. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16475. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16476. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16477. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16478. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16479. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16480. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16481. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16482. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16483. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16484. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16485. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16486. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16487. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16488. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16489. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16490. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16491. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16492. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16493. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16494. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16495. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16496. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16497. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16498. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16499. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16500. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16501. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16502. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16503. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16504. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16505. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16506. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16507. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16508. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16509. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16510. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16511. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16512. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16513. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16514. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16515. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16516. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16517. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16518. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16519. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16520. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16521. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16522. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16523. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16524. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16525. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16526. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16527. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16528. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16529. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16530. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16531. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16532. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16533. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16534. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16535. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16536. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16537. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16538. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16539. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16540. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16541. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16542. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16543. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16544. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16545. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16546. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16547. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16548. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16549. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16550. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16551. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16552. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16553. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16554. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16555. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16556. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16557. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16558. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16559. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16560. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16561. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16562. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16563. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16564. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16565. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16566. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16567. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16568. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16569. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16570. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16571. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16572. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16573. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16574. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16575. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16576. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16577. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16578. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16579. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16580. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16581. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16582. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16583. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16584. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16585. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16586. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16587. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16588. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16589. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16590. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16591. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16592. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16593. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16594. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16595. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16596. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16597. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16598. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16599. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16600. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16601. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16602. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16603. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16604. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16605. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16606. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16607. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16608. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16609. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16610. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16611. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16612. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16613. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16614. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16615. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16616. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16617. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16618. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16619. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16620. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16621. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16622. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16623. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16624. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16625. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16626. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16627. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16628. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16629. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16630. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16631. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16632. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16633. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16634. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16635. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16636. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16637. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16638. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16639. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16640. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16641. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16642. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16643. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16644. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16645. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16646. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16647. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16648. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16649. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16650. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16651. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16652. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16653. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16654. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16655. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16656. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16657. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16658. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16659. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16660. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16661. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16662. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16663. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16664. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16665. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16666. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16667. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16668. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16669. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16670. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16671. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16672. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16673. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16674. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16675. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16676. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16677. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16678. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16679. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16680. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16681. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16682. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16683. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16684. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16685. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16686. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16687. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16688. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16689. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16690. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16691. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16692. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16693. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16694. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16695. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16696. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16697. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16698. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16699. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16700. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16701. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16702. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16703. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16704. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16705. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16706. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16707. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16708. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16709. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16710. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16711. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16712. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16713. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16714. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16715. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16716. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16717. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16718. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16719. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16720. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16721. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16722. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16723. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16724. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16725. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16726. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16727. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16728. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16729. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16730. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16731. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16732. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16733. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16734. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16735. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16736. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16737. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16738. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16739. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16740. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16741. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16742. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16743. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16744. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16745. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16746. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16747. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16748. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16749. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16750. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16751. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16752. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16753. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16754. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16755. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16756. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16757. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16758. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16759. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16760. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16761. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16762. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16763. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16764. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16765. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16766. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16767. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16768. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16769. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16770. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16771. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16772. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16773. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16774. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16775. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16776. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16777. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16778. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16779. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16780. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16781. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16782. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16783. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16784. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16785. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16786. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16787. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16788. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16789. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16790. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16791. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16792. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16793. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16794. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16795. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16796. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16797. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16798. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16799. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16800. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16801. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16802. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16803. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16804. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16805. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16806. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16807. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16808. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16809. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16810. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16811. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16812. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16813. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16814. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16815. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16816. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16817. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16818. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16819. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16820. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16821. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16822. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16823. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16824. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16825. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16826. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16827. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16828. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16829. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16830. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16831. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16832. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16833. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16834. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16835. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16836. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16837. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16838. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16839. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16840. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16841. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16842. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16843. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16844. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16845. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16846. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16847. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16848. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16849. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16850. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16851. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16852. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16853. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16854. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16855. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16856. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16857. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16858. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16859. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16860. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16861. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16862. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16863. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16864. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16865. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16866. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16867. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16868. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16869. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16870. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16871. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16872. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16873. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16874. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16875. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16876. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16877. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16878. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16879. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16880. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16881. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16882. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16883. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16884. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16885. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16886. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16887. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16888. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16889. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16890. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16891. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16892. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16893. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16894. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16895. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16896. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16897. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16898. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16899. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16900. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16901. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16902. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16903. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16904. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16905. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16906. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16907. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16908. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16909. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16910. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16911. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16912. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16913. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16914. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16915. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16916. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16917. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16918. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16919. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16920. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16921. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16922. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16923. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16924. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16925. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16926. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16927. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16928. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16929. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16930. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16931. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16932. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16933. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16934. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16935. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16936. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16937. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16938. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16939. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16940. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16941. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16942. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16943. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16944. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16945. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16946. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16947. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16948. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16949. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16950. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16951. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16952. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16953. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16954. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16955. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16956. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16957. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16958. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16959. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16960. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16961. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16962. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16963. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16964. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16965. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16966. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16967. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16968. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16969. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16970. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16971. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16972. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16973. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16974. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16975. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16976. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16977. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16978. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16979. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16980. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16981. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16982. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16983. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16984. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16985. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16986. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16987. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16988. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16989. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16990. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16991. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16992. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16993. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16994. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16995. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16996. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16997. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16998. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16999. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17000. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17001. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17002. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17003. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17004. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17005. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17006. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17007. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17008. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17009. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17010. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17011. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17012. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17013. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17014. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  17015. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17016. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17017. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17018. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17019. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17020. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17021. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17022. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17023. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17024. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17025. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17026. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17027. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17028. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17029. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17030. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17031. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17032. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17033. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17034. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17035. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17036. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17037. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17038. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17039. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17040. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17041. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17042. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17043. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17044. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17045. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17046. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17047. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17048. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17049. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17050. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17051. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17052. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17053. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17054. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17055. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17056. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17057. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17058. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17059. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17060. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17061. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17062. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17063. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17064. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17065. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17066. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17067. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17068. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17069. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17070. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17071. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17072. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17073. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17074. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17075. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17076. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17077. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17078. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17079. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17080. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17081. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17082. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17083. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17084. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17085. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17086. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17087. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17088. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17089. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17090. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17091. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17092. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17093. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17094. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17095. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17096. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17097. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17098. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17099. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17100. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17101. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17102. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17103. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17104. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17105. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17106. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17107. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17108. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17109. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17110. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17111. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17112. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17113. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17114. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17115. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17116. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17117. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17118. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17119. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17120. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17121. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17122. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17123. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17124. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17125. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17126. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17127. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17128. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17129. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17130. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17131. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17132. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17133. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17134. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17135. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17136. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17137. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17138. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17139. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17140. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17141. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17142. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17143. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17144. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17145. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17146. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17147. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17148. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17149. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17150. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17151. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17152. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17153. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17154. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17155. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17156. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17157. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17158. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17159. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17160. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17161. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17162. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17163. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17164. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17165. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17166. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17167. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17168. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17169. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17170. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17171. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17172. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17173. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17174. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17175. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17176. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17177. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17178. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17179. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17180. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17181. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17182. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17183. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17184. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17185. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17186. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17187. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17188. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17189. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17190. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17191. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17192. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17193. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17194. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17195. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17196. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17197. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17198. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17199. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17200. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17201. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17202. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17203. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17204. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17205. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17206. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17207. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17208. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17209. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17210. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17211. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17212. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17213. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17214. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17215. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17216. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17217. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17218. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17219. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17220. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17221. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17222. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17223. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17224. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17225. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17226. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17227. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17228. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17229. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17230. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17231. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17232. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17233. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17234. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17235. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17236. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17237. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17238. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17239. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17240. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17241. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17242. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17243. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17244. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17245. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17246. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17247. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17248. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17249. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17250. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17251. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17252. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17253. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17254. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17255. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17256. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17257. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17258. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17259. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17260. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17261. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17262. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17263. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17264. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17265. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17266. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17267. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17268. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17269. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17270. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17271. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17272. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17273. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17274. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17275. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17276. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17277. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17278. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17279. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17280. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17281. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17282. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17283. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17284. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17285. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17286. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17287. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17288. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17289. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17290. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17291. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17292. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17293. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17294. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17295. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17296. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17297. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17298. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17299. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17300. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17301. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17302. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17303. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17304. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17305. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17306. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17307. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17308. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17309. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17310. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17311. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17312. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17313. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17314. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17315. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17316. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17317. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17318. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17319. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17320. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17321. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17322. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17323. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17324. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17325. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17326. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17327. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17328. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17329. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17330. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17331. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17332. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17333. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17334. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17335. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17336. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17337. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17338. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17339. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17340. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17341. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17342. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17343. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17344. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17345. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17346. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17347. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17348. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17349. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17350. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17351. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17352. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17353. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17354. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17355. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17356. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17357. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17358. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17359. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17360. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17361. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17362. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17363. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17364. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17365. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17366. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17367. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17368. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17369. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17370. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17371. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17372. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17373. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17374. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17375. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17376. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17377. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17378. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17379. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17380. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17381. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17382. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17383. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17384. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17385. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17386. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17387. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17388. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17389. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17390. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17391. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17392. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17393. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17394. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17395. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17396. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17397. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17398. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17399. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17400. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17401. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17402. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17403. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17404. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17405. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17406. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17407. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17408. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17409. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17410. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17411. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17412. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17413. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17414. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17415. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17416. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17417. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17418. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17419. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17420. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17421. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17422. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17423. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17424. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17425. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17426. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17427. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17428. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17429. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17430. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17431. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17432. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17433. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17434. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17435. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17436. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17437. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17438. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17439. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17440. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17441. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17442. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17443. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17444. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17445. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17446. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17447. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17448. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17449. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17450. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17451. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17452. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17453. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17454. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17455. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17456. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17457. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17458. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17459. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17460. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17461. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17462. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17463. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17464. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17465. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17466. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17467. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17468. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17469. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17470. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17471. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17472. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17473. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17474. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17475. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17476. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17477. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17478. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17479. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17480. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17481. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17482. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17483. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17484. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17485. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17486. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17487. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17488. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17489. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17490. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17491. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17492. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17493. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17494. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17495. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17496. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17497. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17498. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17499. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17500. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17501. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17502. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17503. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17504. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17505. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17506. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17507. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17508. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17509. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17510. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17511. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17512. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17513. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17514. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17515. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17516. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17517. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17518. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17519. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17520. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17521. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17522. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17523. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17524. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17525. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17526. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17527. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17528. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17529. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17530. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17531. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17532. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17533. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17534. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17535. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17536. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17537. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17538. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17539. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17540. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17541. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17542. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17543. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17544. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17545. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17546. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17547. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17548. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17549. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17550. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17551. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17552. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17553. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17554. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17555. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17556. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17557. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17558. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17559. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17560. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17561. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17562. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17563. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17564. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17565. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17566. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17567. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17568. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17569. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17570. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17571. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17572. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17573. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17574. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17575. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17576. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17577. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17578. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17579. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17580. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17581. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17582. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17583. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17584. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17585. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17586. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17587. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17588. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17589. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17590. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17591. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17592. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17593. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17594. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17595. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17596. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17597. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17598. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17599. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17600. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17601. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17602. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17603. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17604. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17605. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17606. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17607. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17608. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17609. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17610. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17611. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17612. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17613. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17614. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17615. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17616. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17617. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17618. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17619. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17620. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17621. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17622. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17623. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17624. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17625. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17626. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17627. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17628. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17629. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17630. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17631. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17632. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17633. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17634. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17635. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17636. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17637. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17638. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17639. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17640. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17641. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17642. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17643. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17644. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17645. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17646. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17647. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17648. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17649. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17650. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17651. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17652. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17653. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17654. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17655. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17656. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17657. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17658. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17659. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17660. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17661. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17662. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17663. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17664. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17665. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17666. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17667. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17668. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17669. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17670. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17671. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17672. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17673. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17674. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17675. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17676. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17677. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17678. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17679. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17680. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17681. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17682. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17683. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17684. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17685. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17686. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17687. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17688. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17689. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17690. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17691. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17692. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17693. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17694. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17695. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17696. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17697. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17698. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17699. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17700. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17701. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17702. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17703. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17704. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17705. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17706. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17707. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17708. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17709. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17710. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17711. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17712. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17713. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17714. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17715. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17716. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17717. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17718. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17719. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17720. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17721. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17722. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17723. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17724. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17725. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17726. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17727. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17728. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17729. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17730. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17731. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17732. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17733. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17734. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17735. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17736. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17737. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17738. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17739. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17740. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17741. {"HDMI", NULL, "HDMI_DL_HL"},
  17742. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17743. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17744. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17745. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17746. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17747. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17748. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17749. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17750. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17751. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17752. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17753. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17754. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17755. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17756. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17757. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17758. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17759. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17760. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17761. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17762. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17763. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17764. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17765. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17766. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17767. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17768. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17769. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17770. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17771. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17772. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17773. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17774. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17775. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17776. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17777. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17778. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17779. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17780. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17781. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17782. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17783. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17784. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17785. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17786. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17787. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17788. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17789. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17790. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17791. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17792. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17793. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17794. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17795. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17796. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17797. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17798. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17799. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17800. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17801. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17802. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17803. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17804. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17805. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17806. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17807. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17808. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17809. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17810. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17811. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17812. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17813. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17814. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17815. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17816. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17817. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17818. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17819. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17820. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17821. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17822. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17823. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17824. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17825. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17826. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17827. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17828. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17829. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17830. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17831. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17832. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17833. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17834. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17835. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17836. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17837. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17838. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17839. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17840. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17841. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17842. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17843. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17844. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17845. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17846. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17847. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17848. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17849. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17850. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17851. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17852. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17853. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17854. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17855. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17856. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17857. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17858. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17859. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17860. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17861. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17862. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17863. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17864. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17865. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17866. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17867. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17868. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17869. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17870. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17871. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17872. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17873. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17874. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17875. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17876. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17877. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17878. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17879. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17880. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17881. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17882. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17883. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17884. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17885. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17886. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17887. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17888. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17889. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17890. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17891. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17892. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17893. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17894. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17895. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17896. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17897. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17898. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17899. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17900. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17901. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17902. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17903. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17904. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17905. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17906. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17907. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17908. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17909. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17910. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17911. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17912. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17913. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17914. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17915. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17916. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17917. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17918. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17919. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17920. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17921. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17922. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17923. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17924. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17925. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17926. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17927. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17928. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17929. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17930. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17931. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17932. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17933. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17934. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17935. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17936. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17937. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17938. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17939. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17940. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17941. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17942. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17943. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17944. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17945. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17946. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17947. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17948. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17949. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17950. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17951. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17952. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17953. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17954. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17955. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17956. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17957. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17958. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17959. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17960. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17961. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17962. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17963. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17964. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17965. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17966. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17967. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17968. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17969. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17970. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17971. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17972. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17973. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17974. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17975. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17976. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17977. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17978. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17979. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17980. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17981. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17982. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17983. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17984. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17985. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17986. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17987. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17988. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17989. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17990. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17991. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17992. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17993. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17994. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17995. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17996. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17997. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17998. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17999. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18000. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18001. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18002. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18003. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18004. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18005. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18006. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18007. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18008. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18009. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  18010. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18011. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18012. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18013. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18014. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18015. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18016. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18017. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18018. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  18019. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18020. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18021. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18022. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18023. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18024. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18025. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18026. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18027. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18028. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18029. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18030. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18031. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18032. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18033. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18034. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18035. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18036. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18037. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18038. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18039. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18040. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18041. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18042. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18043. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18044. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18045. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18046. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18047. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18048. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18049. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18050. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18051. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18052. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18053. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18054. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18055. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18056. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18057. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18058. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18059. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18060. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18061. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18062. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18063. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18064. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18065. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18066. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18067. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18068. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18069. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18070. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18071. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18072. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18073. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18074. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18075. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18076. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18077. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18078. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18079. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18080. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18081. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18082. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18083. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18084. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18085. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18086. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18087. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18088. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18089. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18090. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18091. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18092. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18093. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18094. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18095. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18096. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18097. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18098. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18099. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18100. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18101. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18102. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18103. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18104. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18105. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18106. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18107. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18108. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18109. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18110. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18111. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18112. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18113. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18114. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18115. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18116. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18117. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18118. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18119. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18120. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18121. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18122. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18123. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18124. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18125. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18126. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18127. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18128. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18129. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18130. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18131. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18132. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18133. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18134. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18135. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18136. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18137. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18138. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18139. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18140. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18141. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18142. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18143. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18144. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18145. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18146. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18147. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18148. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18149. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18150. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18151. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18152. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18153. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18154. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18155. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18156. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18157. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18158. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18159. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18160. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18161. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18162. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18163. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18164. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18165. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18166. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18167. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18168. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18169. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18170. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18171. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18172. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18173. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18174. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18175. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18176. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18177. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18178. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18179. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18180. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18181. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18182. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18183. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18184. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18185. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18186. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18187. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18188. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18189. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18190. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18191. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18192. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18193. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18194. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18195. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18196. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18197. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18198. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18199. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18200. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18201. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18202. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18203. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18204. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18205. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18206. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18207. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18208. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18209. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18210. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18211. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18212. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18213. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18214. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18215. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18216. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18217. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18218. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18219. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18220. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18221. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18222. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18223. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18224. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18225. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18226. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18227. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18228. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18229. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18230. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18231. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18232. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18233. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18234. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18235. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18236. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18237. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18238. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18239. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18240. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18241. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18242. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18243. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18244. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18245. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18246. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18247. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18248. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18249. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18250. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18251. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18252. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18253. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18254. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18255. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18256. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18257. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18258. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18259. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18260. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18261. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18262. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18263. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18264. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18265. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18266. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18267. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18268. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18269. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18270. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18271. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18272. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18273. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18274. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18275. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18276. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18277. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18278. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18279. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18280. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18281. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18282. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18283. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18284. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18285. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18286. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18287. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18288. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18289. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18290. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18291. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18292. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18293. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18294. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18295. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18296. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18297. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18298. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18299. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18300. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18301. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18302. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18303. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18304. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18305. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18306. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18307. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18308. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18309. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18310. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18311. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18312. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18313. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18314. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18315. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18316. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18317. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18318. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18319. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18320. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18321. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18322. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18323. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18324. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18325. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18326. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18327. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18328. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18329. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18330. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18331. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18332. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18333. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18334. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18335. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18336. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18337. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18338. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18339. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18340. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18341. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18342. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18343. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18344. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18345. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18346. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18347. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18348. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18349. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18350. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18351. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18352. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18353. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18354. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18355. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18356. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18357. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18358. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18359. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18360. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18361. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18362. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18363. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18364. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18365. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18366. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18367. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18368. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18369. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18370. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18371. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18372. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18373. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18374. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18375. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18376. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18377. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18378. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18379. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18380. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18381. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18382. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18383. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18384. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18385. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18386. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18387. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18388. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18389. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18390. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18391. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18392. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18393. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18394. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18395. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18396. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18397. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18398. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18399. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18400. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18401. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18402. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18403. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18404. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18405. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18406. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18407. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18408. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18409. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18410. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18411. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18412. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18413. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18414. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18415. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18416. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18417. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18418. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18419. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18420. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18421. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18422. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18423. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18424. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18425. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18426. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18427. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18428. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18429. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18430. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18431. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18432. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18433. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18434. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18435. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18436. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18437. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18438. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18439. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18440. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18441. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18442. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18443. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18444. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18445. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18446. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18447. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18448. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18449. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18450. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18451. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18452. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18453. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18454. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18455. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18456. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18457. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18458. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18459. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18460. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18461. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18462. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18463. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18464. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18465. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18466. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18467. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18468. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18469. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18470. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18471. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18472. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18473. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18474. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18475. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18476. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18477. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18478. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18479. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18480. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18481. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18482. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18483. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18484. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18485. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18486. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18487. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18488. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18489. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18490. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18491. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18492. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18493. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18494. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18495. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18496. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18497. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18498. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18499. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18500. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18501. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18502. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18503. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18504. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18505. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18506. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18507. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18508. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18509. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18510. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18511. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18512. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18513. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18514. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18515. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18516. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18517. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18518. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18519. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18520. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18521. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18522. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18523. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18524. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18525. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18526. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18527. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18528. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18529. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18530. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18531. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18532. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18533. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18534. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18535. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18536. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18537. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18538. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18539. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18540. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18541. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18542. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18543. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18544. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18545. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18546. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18547. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18548. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18549. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18550. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18551. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18552. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18553. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18554. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18555. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18556. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18557. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18558. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18559. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18560. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18561. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18562. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18563. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18564. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18565. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18566. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18567. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18568. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18569. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18570. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18571. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18572. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18573. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18574. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18575. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18576. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18577. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18578. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18579. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18580. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18581. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18582. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18583. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18584. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18585. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18586. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18587. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18588. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18589. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18590. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18591. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18592. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18593. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18594. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18595. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18596. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18597. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18598. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18599. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18600. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18601. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18602. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18603. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18604. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18605. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18606. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18607. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18608. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18609. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18610. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18611. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18612. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18613. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18614. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18615. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18616. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18617. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18618. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18619. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18620. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18621. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18622. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18623. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18624. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18625. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18626. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18627. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18628. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18629. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18630. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18631. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18632. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18633. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18634. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18635. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18636. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18637. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18638. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18639. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18640. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18641. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18642. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18643. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18644. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18645. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18646. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18647. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18648. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18649. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18650. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18651. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18652. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18653. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18654. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18655. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18656. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18657. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18658. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18659. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18660. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18661. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18662. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18663. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18664. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18665. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18666. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18667. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18668. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18669. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18670. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18671. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18672. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18673. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18674. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18675. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18676. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18677. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18678. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18679. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18680. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18681. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18682. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18683. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18684. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18685. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18686. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18687. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18688. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18689. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18690. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18691. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18692. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18693. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18694. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18695. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18696. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18697. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18698. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18699. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18700. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18701. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18702. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18703. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18704. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18705. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18706. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18707. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18708. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18709. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18710. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18711. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18712. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18713. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18714. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18715. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18716. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18717. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18718. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18719. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18720. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18721. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18722. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18723. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18724. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18725. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18726. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18727. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18728. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18729. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18730. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18731. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18732. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18733. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18734. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18735. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18736. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18737. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18738. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18739. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18740. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18741. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18742. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18743. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18744. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18745. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18746. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18747. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18748. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18749. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18750. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18751. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18752. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18753. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18754. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18755. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18756. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18757. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18758. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18759. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18760. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18761. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18762. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18763. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18764. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18765. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18766. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18767. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18768. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18769. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18770. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18771. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18772. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18773. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18774. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18775. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18776. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18777. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18778. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18779. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18780. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18781. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18782. /* Backend Enablement */
  18783. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18784. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18785. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18786. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18787. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18788. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18789. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18790. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18791. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18792. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18793. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18794. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18795. {"BE_OUT", NULL, "HDMI"},
  18796. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18797. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18798. {"BE_OUT", NULL, "SPDIF_RX"},
  18799. {"BE_OUT", NULL, "MI2S_RX"},
  18800. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18801. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18802. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18803. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18804. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18805. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18806. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18807. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18808. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18809. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18810. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18811. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18812. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18813. {"BE_OUT", NULL, "INT_FM_RX"},
  18814. {"BE_OUT", NULL, "PCM_RX"},
  18815. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18816. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18817. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18818. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18819. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18820. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18821. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18822. {"BE_OUT", NULL, "INT_FM_RX"},
  18823. {"BE_OUT", NULL, "PCM_RX"},
  18824. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18825. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18826. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18827. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18828. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18829. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18830. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18831. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18832. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18833. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18834. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18835. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18836. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18837. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18838. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18839. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18840. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18841. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18842. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18843. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18844. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18845. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18846. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18847. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18848. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18849. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18850. {"PRI_I2S_TX", NULL, "BE_IN"},
  18851. {"MI2S_TX", NULL, "BE_IN"},
  18852. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18853. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18854. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18855. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18856. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18857. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18858. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18859. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18860. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18861. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18862. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18863. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18864. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18865. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18866. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18867. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18868. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18869. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18870. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18871. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18872. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18873. {"INT_FM_TX", NULL, "BE_IN"},
  18874. {"PCM_TX", NULL, "BE_IN"},
  18875. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18876. {"BE_OUT", NULL, "STUB_RX"},
  18877. {"STUB_TX", NULL, "BE_IN"},
  18878. {"STUB_1_TX", NULL, "BE_IN"},
  18879. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18880. {"AUX_PCM_TX", NULL, "BE_IN"},
  18881. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18882. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18883. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18884. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18885. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18886. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18887. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18888. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18889. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18890. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18891. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18892. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18893. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18894. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18895. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18896. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18897. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18898. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18899. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18900. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18901. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18902. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18903. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18904. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18905. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18906. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18907. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18908. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18909. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18910. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18911. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18912. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18913. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18914. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18915. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18916. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18917. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18918. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18919. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18920. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18921. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18922. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18923. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18924. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18925. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18926. };
  18927. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18928. struct snd_pcm_hw_params *params)
  18929. {
  18930. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18931. unsigned int be_id = rtd->dai_link->id;
  18932. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18933. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18934. return -EINVAL;
  18935. }
  18936. mutex_lock(&routing_lock);
  18937. msm_bedais[be_id].sample_rate = params_rate(params);
  18938. msm_bedais[be_id].channel = params_channels(params);
  18939. msm_bedais[be_id].format = params_format(params);
  18940. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18941. __func__, msm_bedais[be_id].sample_rate,
  18942. msm_bedais[be_id].format, be_id);
  18943. mutex_unlock(&routing_lock);
  18944. return 0;
  18945. }
  18946. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18947. {
  18948. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18949. unsigned int be_id = rtd->dai_link->id;
  18950. int i, session_type, path_type, topology;
  18951. struct msm_pcm_routing_bdai_data *bedai;
  18952. struct msm_pcm_routing_fdai_data *fdai;
  18953. pr_debug("%s: substream->pcm->id:%s\n",
  18954. __func__, substream->pcm->id);
  18955. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18956. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18957. return -EINVAL;
  18958. }
  18959. bedai = &msm_bedais[be_id];
  18960. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18961. 0 : 1);
  18962. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18963. path_type = ADM_PATH_PLAYBACK;
  18964. else
  18965. path_type = ADM_PATH_LIVE_REC;
  18966. mutex_lock(&routing_lock);
  18967. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18968. if (!is_mm_lsm_fe_id(i))
  18969. continue;
  18970. fdai = &fe_dai_map[i][session_type];
  18971. if (fdai->strm_id != INVALID_SESSION) {
  18972. int idx;
  18973. int port_id;
  18974. unsigned long copp =
  18975. session_copp_map[i][session_type][be_id];
  18976. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18977. if (test_bit(idx, &copp))
  18978. break;
  18979. fdai->be_srate = bedai->sample_rate;
  18980. port_id = bedai->port_id;
  18981. topology = adm_get_topology_for_port_copp_idx(port_id,
  18982. idx);
  18983. msm_routing_unload_topology(topology);
  18984. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18985. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18986. __func__, copp, i, session_type, be_id,
  18987. topology);
  18988. clear_bit(idx,
  18989. &session_copp_map[i][session_type][be_id]);
  18990. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18991. (bedai->passthr_mode[i] == LEGACY_PCM))
  18992. msm_pcm_routing_deinit_pp(bedai->port_id,
  18993. topology);
  18994. }
  18995. }
  18996. bedai->active = 0;
  18997. bedai->sample_rate = 0;
  18998. bedai->channel = 0;
  18999. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  19000. if (bedai->passthr_mode[i] != LISTEN)
  19001. bedai->passthr_mode[i] = LEGACY_PCM;
  19002. }
  19003. mutex_unlock(&routing_lock);
  19004. return 0;
  19005. }
  19006. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  19007. {
  19008. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19009. unsigned int be_id = rtd->dai_link->id;
  19010. int i, path_type, topology;
  19011. int session_type = INVALID_SESSION;
  19012. struct msm_pcm_routing_bdai_data *bedai;
  19013. u32 channels, sample_rate;
  19014. uint16_t bits_per_sample = 16, voc_path_type;
  19015. struct msm_pcm_routing_fdai_data *fdai;
  19016. u32 session_id;
  19017. struct media_format_info voc_be_media_format;
  19018. bool is_lsm;
  19019. pr_debug("%s: substream->pcm->id:%s\n",
  19020. __func__, substream->pcm->id);
  19021. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19022. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19023. return -EINVAL;
  19024. }
  19025. bedai = &msm_bedais[be_id];
  19026. mutex_lock(&routing_lock);
  19027. if (bedai->active == 1)
  19028. goto done; /* Ignore prepare if back-end already active */
  19029. /* AFE port is not active at this point. However, still
  19030. * go ahead setting active flag under the notion that
  19031. * QDSP6 is able to handle ADM starting before AFE port
  19032. * is started.
  19033. */
  19034. bedai->active = 1;
  19035. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19036. if (!(is_mm_lsm_fe_id(i) &&
  19037. route_check_fe_id_adm_support(i)))
  19038. continue;
  19039. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19040. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19041. path_type = ADM_PATH_COMPRESSED_RX;
  19042. else
  19043. path_type = ADM_PATH_PLAYBACK;
  19044. session_type = SESSION_TYPE_RX;
  19045. } else {
  19046. path_type = ADM_PATH_LIVE_REC;
  19047. session_type = SESSION_TYPE_TX;
  19048. }
  19049. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19050. (i <= MSM_FRONTEND_DAI_LSM8);
  19051. fdai = &fe_dai_map[i][session_type];
  19052. if (fdai->strm_id != INVALID_SESSION) {
  19053. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19054. if (session_type == SESSION_TYPE_TX &&
  19055. fdai->be_srate &&
  19056. (fdai->be_srate != bedai->sample_rate)) {
  19057. pr_debug("%s: flush strm %d diff BE rates\n",
  19058. __func__,
  19059. fdai->strm_id);
  19060. if (fdai->event_info.event_func)
  19061. fdai->event_info.event_func(
  19062. MSM_PCM_RT_EVT_BUF_RECFG,
  19063. fdai->event_info.priv_data);
  19064. fdai->be_srate = 0; /* might not need it */
  19065. }
  19066. bits_per_sample = msm_routing_get_bit_width(
  19067. bedai->format);
  19068. app_type =
  19069. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19070. if (app_type && is_lsm) {
  19071. app_type_idx =
  19072. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19073. sample_rate =
  19074. fe_dai_app_type_cfg[i][session_type][be_id]
  19075. .sample_rate;
  19076. bits_per_sample =
  19077. lsm_app_type_cfg[app_type_idx].bit_width;
  19078. } else if (app_type) {
  19079. app_type_idx =
  19080. msm_pcm_routing_get_app_type_idx(app_type);
  19081. sample_rate =
  19082. fe_dai_app_type_cfg[i][session_type]
  19083. [be_id].sample_rate;
  19084. bits_per_sample =
  19085. app_type_cfg[app_type_idx].bit_width;
  19086. } else
  19087. sample_rate = bedai->sample_rate;
  19088. /*
  19089. * check if ADM needs to be configured with different
  19090. * channel mapping than backend
  19091. */
  19092. if (!bedai->adm_override_ch)
  19093. channels = bedai->channel;
  19094. else
  19095. channels = bedai->adm_override_ch;
  19096. acdb_dev_id =
  19097. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19098. topology = msm_routing_get_adm_topology(i, session_type,
  19099. be_id);
  19100. copp_idx = adm_open(bedai->port_id, path_type,
  19101. sample_rate, channels, topology,
  19102. fdai->perf_mode, bits_per_sample,
  19103. app_type, acdb_dev_id);
  19104. if ((copp_idx < 0) ||
  19105. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19106. pr_err("%s: adm open failed\n", __func__);
  19107. mutex_unlock(&routing_lock);
  19108. return -EINVAL;
  19109. }
  19110. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19111. __func__, i, session_type, be_id);
  19112. set_bit(copp_idx,
  19113. &session_copp_map[i][session_type][be_id]);
  19114. if (msm_is_resample_needed(
  19115. sample_rate,
  19116. bedai->sample_rate))
  19117. adm_copp_mfc_cfg(
  19118. bedai->port_id, copp_idx,
  19119. bedai->sample_rate);
  19120. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19121. fdai->perf_mode,
  19122. bedai->passthr_mode[i]);
  19123. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19124. (bedai->passthr_mode[i] == LEGACY_PCM))
  19125. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19126. topology, channels);
  19127. }
  19128. }
  19129. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19130. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19131. if (session_id) {
  19132. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19133. session_id);
  19134. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19135. voc_path_type = RX_PATH;
  19136. else
  19137. voc_path_type = TX_PATH;
  19138. voc_set_route_flag(session_id, voc_path_type, 1);
  19139. memset(&voc_be_media_format, 0,
  19140. sizeof(struct media_format_info));
  19141. voc_be_media_format.port_id = bedai->port_id;
  19142. voc_be_media_format.num_channels = bedai->channel;
  19143. voc_be_media_format.sample_rate = bedai->sample_rate;
  19144. voc_be_media_format.bits_per_sample = bedai->format;
  19145. /* Defaulting this to 1 for voice call usecases */
  19146. voc_be_media_format.channel_mapping[0] = 1;
  19147. voc_set_device_config(session_id, voc_path_type,
  19148. &voc_be_media_format);
  19149. if (voc_get_route_flag(session_id, RX_PATH) &&
  19150. voc_get_route_flag(session_id, TX_PATH))
  19151. voc_enable_device(session_id);
  19152. }
  19153. }
  19154. /* Check if backend is an external ec ref port and set as needed */
  19155. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19156. memset(&voc_be_media_format, 0,
  19157. sizeof(struct media_format_info));
  19158. /* Get format info for ec ref port from msm_bedais[] */
  19159. voc_be_media_format.port_id = bedai->port_id;
  19160. voc_be_media_format.num_channels = bedai->channel;
  19161. voc_be_media_format.bits_per_sample = bedai->format;
  19162. voc_be_media_format.sample_rate = bedai->sample_rate;
  19163. /* Defaulting this to 1 for voice call usecases */
  19164. voc_be_media_format.channel_mapping[0] = 1;
  19165. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19166. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19167. __func__, voc_be_media_format.port_id,
  19168. voc_be_media_format.num_channels,
  19169. voc_be_media_format.bits_per_sample,
  19170. voc_be_media_format.sample_rate);
  19171. }
  19172. done:
  19173. mutex_unlock(&routing_lock);
  19174. return 0;
  19175. }
  19176. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19177. int fe_id)
  19178. {
  19179. int index, topo_id, be_idx;
  19180. unsigned long pp_config = 0;
  19181. bool mute_on;
  19182. int latency;
  19183. bool compr_passthr_mode = true;
  19184. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19185. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19186. pr_err("%s: Device pp params on invalid port %d\n",
  19187. __func__, port_id);
  19188. return -EINVAL;
  19189. }
  19190. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19191. if (port_id == msm_bedais[be_idx].port_id)
  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 backend pp params index %d\n",
  19204. __func__, index);
  19205. return -EINVAL;
  19206. }
  19207. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19208. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19209. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19210. __func__, topo_id);
  19211. return -EINVAL;
  19212. }
  19213. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19214. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19215. compr_passthr_mode = false;
  19216. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19217. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19218. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19219. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19220. mute_on = msm_bedais_pp_params[index].mute_on;
  19221. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19222. adm_send_compressed_device_mute(port_id,
  19223. copp_idx,
  19224. mute_on);
  19225. }
  19226. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19227. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19228. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19229. &pp_config);
  19230. latency = msm_bedais_pp_params[index].latency;
  19231. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19232. adm_send_compressed_device_latency(port_id,
  19233. copp_idx,
  19234. latency);
  19235. }
  19236. return 0;
  19237. }
  19238. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19239. {
  19240. uint32_t topology = NULL_COPP_TOPOLOGY;
  19241. void *cal_info = NULL;
  19242. uint32_t size = 0;
  19243. /* Retrieve cal_info size from cal data*/
  19244. size = data_size - sizeof(struct audio_cal_type_basic);
  19245. cal_info = kzalloc(size, GFP_KERNEL);
  19246. if (!cal_info)
  19247. goto done;
  19248. memcpy(cal_info,
  19249. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19250. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19251. kfree(cal_info);
  19252. cal_info = NULL;
  19253. done:
  19254. pr_debug("%s: Using topology %d\n", __func__, topology);
  19255. return topology;
  19256. }
  19257. static void msm_routing_load_topology(size_t data_size, void *data)
  19258. {
  19259. uint32_t topology_id;
  19260. int ret = -EINVAL;
  19261. topology_id = msm_routing_get_topology(data_size, data);
  19262. if (topology_id != NULL_COPP_TOPOLOGY)
  19263. ret = q6core_load_unload_topo_modules(topology_id,
  19264. CORE_LOAD_TOPOLOGY);
  19265. if (ret < 0)
  19266. pr_debug("%s %d load topology failed\n",
  19267. __func__, topology_id);
  19268. }
  19269. static void msm_routing_unload_topology(uint32_t topology_id)
  19270. {
  19271. int ret = -EINVAL;
  19272. if (topology_id != NULL_COPP_TOPOLOGY)
  19273. ret = q6core_load_unload_topo_modules(topology_id,
  19274. CORE_UNLOAD_TOPOLOGY);
  19275. if (ret < 0)
  19276. pr_debug("%s %d unload topology failed\n",
  19277. __func__, topology_id);
  19278. }
  19279. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19280. struct snd_ctl_elem_value *ucontrol)
  19281. {
  19282. int pp_id = ucontrol->value.integer.value[0];
  19283. int port_id = 0;
  19284. int index, be_idx, i, topo_id, idx;
  19285. bool mute;
  19286. int latency;
  19287. bool compr_passthr_mode = true;
  19288. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19289. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19290. port_id = msm_bedais[be_idx].port_id;
  19291. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19292. break;
  19293. }
  19294. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19295. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19296. return -EINVAL;
  19297. }
  19298. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19299. if (msm_bedais_pp_params[index].port_id == port_id)
  19300. break;
  19301. }
  19302. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19303. pr_err("%s: Invalid pp params backend index %d\n",
  19304. __func__, index);
  19305. return -EINVAL;
  19306. }
  19307. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19308. MSM_FRONTEND_DAI_MM_SIZE) {
  19309. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19310. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19311. compr_passthr_mode = false;
  19312. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19313. unsigned long copp =
  19314. session_copp_map[i]
  19315. [SESSION_TYPE_RX][be_idx];
  19316. if (!test_bit(idx, &copp))
  19317. continue;
  19318. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19319. idx);
  19320. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19321. continue;
  19322. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19323. __func__, port_id, copp, msm_bedais[be_idx].active,
  19324. msm_bedais[be_idx].passthr_mode[i]);
  19325. switch (pp_id) {
  19326. case ADM_PP_PARAM_MUTE_ID:
  19327. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19328. mute = ucontrol->value.integer.value[1] ? true : false;
  19329. msm_bedais_pp_params[index].mute_on = mute;
  19330. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19331. &msm_bedais_pp_params[index].pp_params_config);
  19332. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19333. adm_send_compressed_device_mute(port_id,
  19334. idx, mute);
  19335. break;
  19336. case ADM_PP_PARAM_LATENCY_ID:
  19337. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19338. msm_bedais_pp_params[index].latency =
  19339. ucontrol->value.integer.value[1];
  19340. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19341. &msm_bedais_pp_params[index].pp_params_config);
  19342. latency = msm_bedais_pp_params[index].latency =
  19343. ucontrol->value.integer.value[1];
  19344. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19345. adm_send_compressed_device_latency(port_id,
  19346. idx, latency);
  19347. break;
  19348. default:
  19349. pr_info("%s, device pp param %d not supported\n",
  19350. __func__, pp_id);
  19351. break;
  19352. }
  19353. }
  19354. }
  19355. return 0;
  19356. }
  19357. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19358. struct snd_ctl_elem_value *ucontrol)
  19359. {
  19360. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19361. return 0;
  19362. }
  19363. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19364. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19365. 0, 3, msm_routing_get_device_pp_params_mixer,
  19366. msm_routing_put_device_pp_params_mixer),
  19367. };
  19368. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19369. struct snd_ctl_elem_value *ucontrol)
  19370. {
  19371. ucontrol->value.integer.value[0] =
  19372. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19373. pr_debug("%s: status %ld\n", __func__,
  19374. ucontrol->value.integer.value[0]);
  19375. return 0;
  19376. }
  19377. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19378. struct snd_ctl_elem_value *ucontrol)
  19379. {
  19380. int32_t status = 0;
  19381. status = core_set_license(ucontrol->value.integer.value[0],
  19382. APTX_CLASSIC_DEC_LICENSE_ID);
  19383. pr_debug("%s: status %d\n", __func__, status);
  19384. return status;
  19385. }
  19386. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19387. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19388. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19389. msm_aptx_dec_license_control_put),
  19390. };
  19391. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19392. struct snd_ctl_elem_info *uinfo)
  19393. {
  19394. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19395. uinfo->count = sizeof(be_dai_name_table);
  19396. return 0;
  19397. }
  19398. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19399. unsigned int __user *bytes,
  19400. unsigned int size)
  19401. {
  19402. int i;
  19403. int ret = 0;
  19404. if (size < sizeof(be_dai_name_table)) {
  19405. pr_err("%s: invalid size %d requested, returning\n",
  19406. __func__, size);
  19407. ret = -EINVAL;
  19408. goto done;
  19409. }
  19410. /*
  19411. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19412. * needed when adding new backends
  19413. */
  19414. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19415. be_dai_name_table[i].be_id = i;
  19416. strlcpy(be_dai_name_table[i].be_name,
  19417. msm_bedais[i].name,
  19418. LPASS_BE_NAME_MAX_LENGTH);
  19419. }
  19420. ret = copy_to_user(bytes, &be_dai_name_table,
  19421. sizeof(be_dai_name_table));
  19422. if (ret) {
  19423. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19424. ret = -EFAULT;
  19425. }
  19426. done:
  19427. return ret;
  19428. }
  19429. static const struct snd_kcontrol_new
  19430. msm_routing_be_dai_name_table_mixer_controls[] = {
  19431. {
  19432. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19433. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19434. .info = msm_routing_be_dai_name_table_info,
  19435. .name = "Backend DAI Name Table",
  19436. .tlv.c = snd_soc_bytes_tlv_callback,
  19437. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19438. .max = sizeof(be_dai_name_table),
  19439. .get = msm_routing_be_dai_name_table_tlv_get,
  19440. }
  19441. },
  19442. };
  19443. static int msm_routing_stereo_channel_reverse_control_get(
  19444. struct snd_kcontrol *kcontrol,
  19445. struct snd_ctl_elem_value *ucontrol)
  19446. {
  19447. ucontrol->value.integer.value[0] = swap_ch;
  19448. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19449. ucontrol->value.integer.value[0]);
  19450. return 0;
  19451. }
  19452. static int msm_routing_stereo_channel_reverse_control_put(
  19453. struct snd_kcontrol *kcontrol,
  19454. struct snd_ctl_elem_value *ucontrol)
  19455. {
  19456. int i, idx, be_index, port_id;
  19457. int ret = 0;
  19458. unsigned long copp;
  19459. pr_debug("%s Swap channel value:%ld\n", __func__,
  19460. ucontrol->value.integer.value[0]);
  19461. swap_ch = ucontrol->value.integer.value[0];
  19462. mutex_lock(&routing_lock);
  19463. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19464. port_id = msm_bedais[be_index].port_id;
  19465. if (!msm_bedais[be_index].active)
  19466. continue;
  19467. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19468. MSM_FRONTEND_DAI_MM_SIZE) {
  19469. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19470. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19471. if (!test_bit(idx, &copp))
  19472. continue;
  19473. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19474. __func__, port_id, idx);
  19475. ret = adm_swap_speaker_channels(
  19476. port_id, idx,
  19477. msm_bedais[be_index].sample_rate,
  19478. swap_ch);
  19479. if (ret) {
  19480. pr_err("%s:Swap_channel failed, err=%d\n",
  19481. __func__, ret);
  19482. goto done;
  19483. }
  19484. }
  19485. }
  19486. }
  19487. done:
  19488. mutex_unlock(&routing_lock);
  19489. return ret;
  19490. }
  19491. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19492. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19493. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19494. msm_routing_stereo_channel_reverse_control_put),
  19495. };
  19496. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19497. struct snd_ctl_elem_info *uinfo)
  19498. {
  19499. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19500. uinfo->count = 1;
  19501. return 0;
  19502. }
  19503. static int msm_routing_instance_id_support_put(
  19504. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19505. {
  19506. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19507. q6common_update_instance_id_support(supported);
  19508. return 0;
  19509. }
  19510. static int msm_routing_instance_id_support_get(
  19511. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19512. {
  19513. bool supported = false;
  19514. supported = q6common_is_instance_id_supported();
  19515. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19516. return 0;
  19517. }
  19518. static const struct snd_kcontrol_new
  19519. msm_routing_feature_support_mixer_controls[] = {
  19520. {
  19521. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19522. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19523. .info = msm_routing_instance_id_support_info,
  19524. .name = "Instance ID Support",
  19525. .put = msm_routing_instance_id_support_put,
  19526. .get = msm_routing_instance_id_support_get,
  19527. },
  19528. };
  19529. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19530. .hw_params = msm_pcm_routing_hw_params,
  19531. .close = msm_pcm_routing_close,
  19532. .prepare = msm_pcm_routing_prepare,
  19533. };
  19534. /* Not used but frame seems to require it */
  19535. static int msm_routing_probe(struct snd_soc_platform *platform)
  19536. {
  19537. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19538. ARRAY_SIZE(msm_qdsp6_widgets));
  19539. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19540. ARRAY_SIZE(intercon));
  19541. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19542. snd_soc_add_platform_controls(platform, lsm_controls,
  19543. ARRAY_SIZE(lsm_controls));
  19544. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19545. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19546. snd_soc_add_platform_controls(platform, aanc_noise_level,
  19547. ARRAY_SIZE(aanc_noise_level));
  19548. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19549. ARRAY_SIZE(msm_voc_session_controls));
  19550. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19551. ARRAY_SIZE(app_type_cfg_controls));
  19552. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19553. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19554. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19555. ARRAY_SIZE(module_cfg_controls));
  19556. snd_soc_add_platform_controls(platform,
  19557. stereo_to_custom_stereo_controls,
  19558. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19559. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19560. ARRAY_SIZE(ec_ref_param_controls));
  19561. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19562. ARRAY_SIZE(channel_mixer_controls));
  19563. msm_qti_pp_add_controls(platform);
  19564. msm_dts_srs_tm_add_controls(platform);
  19565. msm_dolby_dap_add_controls(platform);
  19566. snd_soc_add_platform_controls(platform,
  19567. use_ds1_or_ds2_controls,
  19568. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19569. snd_soc_add_platform_controls(platform,
  19570. device_pp_params_mixer_controls,
  19571. ARRAY_SIZE(device_pp_params_mixer_controls));
  19572. snd_soc_add_platform_controls(platform,
  19573. msm_routing_be_dai_name_table_mixer_controls,
  19574. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19575. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19576. ARRAY_SIZE(msm_source_tracking_controls));
  19577. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19578. ARRAY_SIZE(adm_channel_config_controls));
  19579. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19580. ARRAY_SIZE(aptx_dec_license_controls));
  19581. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19582. ARRAY_SIZE(stereo_channel_reverse_control));
  19583. snd_soc_add_platform_controls(
  19584. platform, msm_routing_feature_support_mixer_controls,
  19585. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19586. return 0;
  19587. }
  19588. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19589. {
  19590. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19591. }
  19592. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19593. {
  19594. msm_pcm_routing_hwdep_free(pcm);
  19595. }
  19596. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19597. .ops = &msm_routing_pcm_ops,
  19598. .probe = msm_routing_probe,
  19599. .pcm_new = msm_routing_pcm_new,
  19600. .pcm_free = msm_routing_pcm_free,
  19601. };
  19602. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19603. {
  19604. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19605. return snd_soc_register_platform(&pdev->dev,
  19606. &msm_soc_routing_platform);
  19607. }
  19608. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19609. {
  19610. snd_soc_unregister_platform(&pdev->dev);
  19611. return 0;
  19612. }
  19613. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19614. {.compatible = "qcom,msm-pcm-routing"},
  19615. {}
  19616. };
  19617. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19618. static struct platform_driver msm_routing_pcm_driver = {
  19619. .driver = {
  19620. .name = "msm-pcm-routing",
  19621. .owner = THIS_MODULE,
  19622. .of_match_table = msm_pcm_routing_dt_match,
  19623. },
  19624. .probe = msm_routing_pcm_probe,
  19625. .remove = msm_routing_pcm_remove,
  19626. };
  19627. int msm_routing_check_backend_enabled(int fedai_id)
  19628. {
  19629. int i;
  19630. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19631. /* bad ID assigned in machine driver */
  19632. pr_err("%s: bad MM ID\n", __func__);
  19633. return 0;
  19634. }
  19635. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19636. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19637. return msm_bedais[i].active;
  19638. }
  19639. return 0;
  19640. }
  19641. static int get_cal_type_index(int32_t cal_type)
  19642. {
  19643. int ret = -EINVAL;
  19644. switch (cal_type) {
  19645. case ADM_TOPOLOGY_CAL_TYPE:
  19646. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19647. break;
  19648. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19649. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19650. break;
  19651. default:
  19652. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19653. }
  19654. return ret;
  19655. }
  19656. static int msm_routing_set_cal(int32_t cal_type,
  19657. size_t data_size, void *data)
  19658. {
  19659. int ret = 0;
  19660. int cal_index;
  19661. pr_debug("%s\n", __func__);
  19662. cal_index = get_cal_type_index(cal_type);
  19663. if (cal_index < 0) {
  19664. pr_err("%s: Could not get cal index %d\n",
  19665. __func__, cal_index);
  19666. ret = -EINVAL;
  19667. goto done;
  19668. }
  19669. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19670. if (ret < 0) {
  19671. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19672. __func__, ret, cal_type);
  19673. ret = -EINVAL;
  19674. goto done;
  19675. }
  19676. /* Pre-load if it is ADM topology */
  19677. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19678. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19679. msm_routing_load_topology(data_size, data);
  19680. }
  19681. done:
  19682. return ret;
  19683. }
  19684. static void msm_routing_delete_cal_data(void)
  19685. {
  19686. pr_debug("%s\n", __func__);
  19687. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19688. }
  19689. static int msm_routing_init_cal_data(void)
  19690. {
  19691. int ret = 0;
  19692. struct cal_type_info cal_type_info[] = {
  19693. {{ADM_TOPOLOGY_CAL_TYPE,
  19694. {NULL, NULL, NULL,
  19695. msm_routing_set_cal, NULL, NULL} },
  19696. {NULL, NULL, cal_utils_match_buf_num} },
  19697. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19698. {NULL, NULL, NULL,
  19699. msm_routing_set_cal, NULL, NULL} },
  19700. {NULL, NULL, cal_utils_match_buf_num} },
  19701. };
  19702. pr_debug("%s\n", __func__);
  19703. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19704. &cal_type_info[0]);
  19705. if (ret < 0) {
  19706. pr_err("%s: could not create cal type!\n",
  19707. __func__);
  19708. ret = -EINVAL;
  19709. goto err;
  19710. }
  19711. return ret;
  19712. err:
  19713. msm_routing_delete_cal_data();
  19714. return ret;
  19715. }
  19716. int __init msm_soc_routing_platform_init(void)
  19717. {
  19718. mutex_init(&routing_lock);
  19719. if (msm_routing_init_cal_data())
  19720. pr_err("%s: could not init cal data!\n", __func__);
  19721. afe_set_routing_callback(
  19722. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19723. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19724. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19725. return platform_driver_register(&msm_routing_pcm_driver);
  19726. }
  19727. void msm_soc_routing_platform_exit(void)
  19728. {
  19729. msm_routing_delete_cal_data();
  19730. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19731. mutex_destroy(&routing_lock);
  19732. platform_driver_unregister(&msm_routing_pcm_driver);
  19733. }
  19734. MODULE_DESCRIPTION("MSM routing platform driver");
  19735. MODULE_LICENSE("GPL v2");