msm-pcm-routing-v2.c 990 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int fm_pcmrx_switch_enable;
  61. static int usb_switch_enable;
  62. static int lsm_port_index;
  63. static int slim0_rx_aanc_fb_port;
  64. static int msm_route_ec_ref_rx;
  65. static int msm_ec_ref_ch = 4;
  66. static int msm_ec_ref_ch_downmixed = 4;
  67. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  68. static int msm_ec_ref_sampling_rate = 48000;
  69. static uint32_t voc_session_id = ALL_SESSION_VSID;
  70. static int msm_route_ext_ec_ref;
  71. static bool is_custom_stereo_on;
  72. static bool is_ds2_on;
  73. static bool swap_ch;
  74. static int aanc_level;
  75. static int num_app_cfg_types;
  76. static int msm_ec_ref_port_id;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* all the FES which can support channel mixer for bidirection */
  81. static struct msm_pcm_channel_mixer
  82. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  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 VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  106. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  107. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  108. #define LSM_FUNCTION_TEXT "LSM Function"
  109. static const char * const lsm_port_text[] = {
  110. "None",
  111. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  112. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  113. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  114. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  115. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  116. };
  117. struct msm_pcm_route_bdai_pp_params {
  118. u16 port_id; /* AFE port ID */
  119. unsigned long pp_params_config;
  120. bool mute_on;
  121. int latency;
  122. };
  123. static struct msm_pcm_route_bdai_pp_params
  124. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  125. {HDMI_RX, 0, 0, 0},
  126. {DISPLAY_PORT_RX, 0, 0, 0},
  127. };
  128. /*
  129. * The be_dai_name_table is passed to HAL so that it can specify the
  130. * BE ID for the BE it wants to enable based on the name. Thus there
  131. * is a matching table and structure in HAL that need to be updated
  132. * if any changes to these are made.
  133. */
  134. struct msm_pcm_route_bdai_name {
  135. unsigned int be_id;
  136. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  137. };
  138. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  139. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  140. int fe_id);
  141. static void msm_routing_load_topology(size_t data_size, void *data);
  142. static void msm_routing_unload_topology(uint32_t topology_id);
  143. static int msm_routing_get_bit_width(unsigned int format)
  144. {
  145. int bit_width;
  146. switch (format) {
  147. case SNDRV_PCM_FORMAT_S32_LE:
  148. bit_width = 32;
  149. break;
  150. case SNDRV_PCM_FORMAT_S24_LE:
  151. case SNDRV_PCM_FORMAT_S24_3LE:
  152. bit_width = 24;
  153. break;
  154. case SNDRV_PCM_FORMAT_S16_LE:
  155. default:
  156. bit_width = 16;
  157. }
  158. return bit_width;
  159. }
  160. static bool msm_is_resample_needed(int input_sr, int output_sr)
  161. {
  162. bool rc = false;
  163. if (input_sr != output_sr)
  164. rc = true;
  165. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  166. (rc ? "oh yes" : "not really"),
  167. input_sr, output_sr);
  168. return rc;
  169. }
  170. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  171. int channels)
  172. {
  173. int rc = 0;
  174. switch (topology) {
  175. case SRS_TRUMEDIA_TOPOLOGY_ID:
  176. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  177. msm_dts_srs_tm_init(port_id, copp_idx);
  178. break;
  179. case DS2_ADM_COPP_TOPOLOGY_ID:
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  181. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  182. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  183. is_custom_stereo_on);
  184. if (rc < 0)
  185. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  186. __func__, topology, port_id,
  187. is_custom_stereo_on, rc);
  188. break;
  189. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  190. if (is_ds2_on) {
  191. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  192. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. } else {
  198. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  199. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. }
  205. break;
  206. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  207. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  208. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  209. if (rc < 0)
  210. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  211. __func__, topology, port_id, copp_idx, rc);
  212. break;
  213. default:
  214. /* custom topology specific feature param handlers */
  215. break;
  216. }
  217. }
  218. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  219. {
  220. switch (topology) {
  221. case SRS_TRUMEDIA_TOPOLOGY_ID:
  222. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  223. msm_dts_srs_tm_deinit(port_id);
  224. break;
  225. case DS2_ADM_COPP_TOPOLOGY_ID:
  226. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  227. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  228. msm_ds2_dap_deinit(port_id);
  229. break;
  230. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  231. if (is_ds2_on) {
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  233. msm_ds2_dap_deinit(port_id);
  234. } else {
  235. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_dolby_dap_deinit(port_id);
  237. }
  238. break;
  239. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  240. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  241. msm_qti_pp_asphere_deinit(port_id);
  242. break;
  243. default:
  244. /* custom topology specific feature deinit handlers */
  245. break;
  246. }
  247. }
  248. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  249. int path_type, int perf_mode)
  250. {
  251. int itr = 0, rc = 0;
  252. if ((path_type == ADM_PATH_PLAYBACK) &&
  253. (perf_mode == LEGACY_PCM_MODE) &&
  254. is_custom_stereo_on) {
  255. for (itr = 0; itr < payload.num_copps; itr++) {
  256. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  257. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  258. continue;
  259. }
  260. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  261. payload.port_id[itr],
  262. payload.copp_idx[itr],
  263. payload.session_id,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE,
  267. Q14_GAIN_ZERO_POINT_FIVE);
  268. if (rc < 0)
  269. pr_err("%s: err setting custom stereo\n",
  270. __func__);
  271. }
  272. }
  273. }
  274. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  275. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  276. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  277. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  278. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  279. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  280. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  281. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  282. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  283. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  284. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  285. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  286. LPASS_BE_AFE_PCM_RX},
  287. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  288. LPASS_BE_AFE_PCM_TX},
  289. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AUXPCM_RX},
  291. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AUXPCM_TX},
  293. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_VOICE_PLAYBACK_TX},
  295. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_VOICE2_PLAYBACK_TX},
  297. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_INCALL_RECORD_RX},
  299. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_INCALL_RECORD_TX},
  301. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  302. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  303. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  304. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  305. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  306. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  307. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  308. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  309. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  310. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  311. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  312. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  313. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  314. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  315. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  316. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  317. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  318. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  319. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  322. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  323. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  324. LPASS_BE_QUAT_MI2S_RX},
  325. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  326. LPASS_BE_QUAT_MI2S_TX},
  327. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_SEC_MI2S_RX},
  329. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_SEC_MI2S_TX},
  331. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_PRI_MI2S_RX},
  333. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_PRI_MI2S_TX},
  335. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_TERT_MI2S_RX},
  337. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_TERT_MI2S_TX},
  339. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_AUDIO_I2S_RX},
  341. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_SEC_AUXPCM_RX},
  343. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_SEC_AUXPCM_TX},
  345. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_PRI_SPDIF_RX},
  347. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_MI2S_RX_SD1},
  349. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_QUIN_MI2S_RX},
  351. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_QUIN_MI2S_TX},
  353. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SENARY_MI2S_TX},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_PRI_TDM_RX_0},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_PRI_TDM_TX_0},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_1},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_1},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_2},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_2},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_3},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_3},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_4},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_4},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_5},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_5},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_6},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_6},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_7},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_7},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_SEC_TDM_RX_0},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_SEC_TDM_TX_0},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_1},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_1},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_2},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_2},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_3},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_3},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_4},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_4},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_5},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_5},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_6},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_6},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_7},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_7},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_TERT_TDM_RX_0},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_TERT_TDM_TX_0},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_1},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_1},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_2},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_2},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_3},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_3},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_4},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_4},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_5},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_5},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_6},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_6},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_7},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_7},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_QUAT_TDM_RX_0},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_QUAT_TDM_TX_0},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_1},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_1},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_2},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_2},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_3},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_3},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_4},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_4},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_5},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_5},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_6},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_6},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_7},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_7},
  483. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUIN_TDM_RX_0},
  485. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUIN_TDM_TX_0},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_1},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_1},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_2},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_2},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_3},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_3},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_4},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_4},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_5},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_5},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_6},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_6},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_7},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_7},
  515. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_INT_BT_A2DP_RX},
  517. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_USB_AUDIO_RX},
  519. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_USB_AUDIO_TX},
  521. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_DISPLAY_PORT},
  523. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_DISPLAY_PORT1},
  525. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_TERT_AUXPCM_RX},
  527. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_TERT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_QUAT_AUXPCM_RX},
  531. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_QUAT_AUXPCM_TX},
  533. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_QUIN_AUXPCM_RX},
  535. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_QUIN_AUXPCM_TX},
  537. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_INT0_MI2S_RX},
  539. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_INT0_MI2S_TX},
  541. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_INT1_MI2S_RX},
  543. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_INT1_MI2S_TX},
  545. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_INT2_MI2S_RX},
  547. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_INT2_MI2S_TX},
  549. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_INT3_MI2S_RX},
  551. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT3_MI2S_TX},
  553. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT4_MI2S_RX},
  555. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_INT4_MI2S_TX},
  557. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_INT5_MI2S_RX},
  559. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_INT5_MI2S_TX},
  561. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_INT6_MI2S_RX},
  563. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_INT6_MI2S_TX},
  565. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_SEN_AUXPCM_RX},
  567. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_SEN_AUXPCM_TX},
  569. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_SENARY_MI2S_RX},
  571. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_WSA_CDC_DMA_RX_0},
  573. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_WSA_CDC_DMA_TX_0},
  575. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_WSA_CDC_DMA_RX_1},
  577. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_WSA_CDC_DMA_TX_1},
  579. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_WSA_CDC_DMA_TX_2},
  581. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_VA_CDC_DMA_TX_0},
  583. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_VA_CDC_DMA_TX_1},
  585. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_VA_CDC_DMA_TX_2},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_RX_CDC_DMA_RX_0},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_TX_CDC_DMA_TX_0},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_RX_CDC_DMA_RX_1},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_TX_CDC_DMA_TX_1},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_RX_CDC_DMA_RX_2},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_TX_CDC_DMA_TX_2},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_RX_CDC_DMA_RX_3},
  601. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_TX_CDC_DMA_TX_3},
  603. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_RX_CDC_DMA_RX_4},
  605. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_TX_CDC_DMA_TX_4},
  607. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_RX_CDC_DMA_RX_5},
  609. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_TX_CDC_DMA_TX_5},
  611. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_RX_CDC_DMA_RX_6},
  613. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_RX_CDC_DMA_RX_7},
  615. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_PRI_SPDIF_TX},
  617. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_SEC_SPDIF_RX},
  619. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_SEC_SPDIF_TX},
  621. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  622. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  623. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  624. };
  625. /* Track ASM playback & capture sessions of DAI
  626. * Track LSM listen sessions
  627. */
  628. static struct msm_pcm_routing_fdai_data
  629. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  630. /* MULTIMEDIA1 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  633. /* MULTIMEDIA2 */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  636. /* MULTIMEDIA3 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  639. /* MULTIMEDIA4 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  642. /* MULTIMEDIA5 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  645. /* MULTIMEDIA6 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  648. /* MULTIMEDIA7*/
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  651. /* MULTIMEDIA8 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  654. /* MULTIMEDIA9 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  657. /* MULTIMEDIA10 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  660. /* MULTIMEDIA11 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  663. /* MULTIMEDIA12 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  666. /* MULTIMEDIA13 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  669. /* MULTIMEDIA14 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  672. /* MULTIMEDIA15 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA16 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA17 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA18 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA19 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA20 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA21 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA26 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA27 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA28 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA29 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* VOIP */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* AFE_RX */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* AFE_TX */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* VOICE_STUB */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* DTMF_RX */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* QCHAT */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* VOLTE_STUB */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* LSM1 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* LSM2 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* LSM3 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* LSM4 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* LSM5 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* LSM6 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* LSM7 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* LSM8 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* VOICE2_STUB */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* VOICEMMODE1 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* VOICEMMODE2 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. };
  760. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  761. [MSM_BACKEND_DAI_MAX];
  762. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  763. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  764. static struct msm_pcm_stream_app_type_cfg
  765. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  766. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  767. /* The caller of this should acquire routing lock */
  768. void msm_pcm_routing_get_bedai_info(int be_idx,
  769. struct msm_pcm_routing_bdai_data *be_dai)
  770. {
  771. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  772. memcpy(be_dai, &msm_bedais[be_idx],
  773. sizeof(struct msm_pcm_routing_bdai_data));
  774. }
  775. /* The caller of this should acquire routing lock */
  776. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  777. struct msm_pcm_routing_fdai_data *fe_dai)
  778. {
  779. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  780. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  781. sizeof(struct msm_pcm_routing_fdai_data));
  782. }
  783. void msm_pcm_routing_acquire_lock(void)
  784. {
  785. mutex_lock(&routing_lock);
  786. }
  787. void msm_pcm_routing_release_lock(void)
  788. {
  789. mutex_unlock(&routing_lock);
  790. }
  791. static int msm_pcm_routing_get_app_type_idx(int app_type)
  792. {
  793. int idx;
  794. pr_debug("%s: app_type: %d\n", __func__, app_type);
  795. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  796. if (app_type_cfg[idx].app_type == app_type)
  797. return idx;
  798. }
  799. pr_info("%s: App type not available, fallback to default\n", __func__);
  800. return 0;
  801. }
  802. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  803. {
  804. int idx;
  805. pr_debug("%s: app_type: %d\n", __func__, app_type);
  806. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  807. if (lsm_app_type_cfg[idx].app_type == app_type)
  808. return idx;
  809. }
  810. pr_debug("%s: App type not available, fallback to default\n", __func__);
  811. return 0;
  812. }
  813. static int get_port_id(int port_id)
  814. {
  815. return (port_id == AFE_LOOPBACK_TX ? msm_ec_ref_port_id : port_id);
  816. }
  817. static bool is_mm_lsm_fe_id(int fe_id)
  818. {
  819. bool rc = true;
  820. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  821. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  822. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  823. rc = false;
  824. }
  825. return rc;
  826. }
  827. /*
  828. * msm_pcm_routing_send_chmix_cfg:
  829. * send the channel mixer command to mix the input channels
  830. * into output channels.
  831. *
  832. * @fe_id: front end id
  833. * @ip_channel_cnt: input channel count
  834. * @op_channel_cnt: output channel count
  835. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  836. * @session_type: indicates session is of type TX or RX
  837. * @stream_type: indicates either Audio or Listen stream type
  838. */
  839. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  840. int op_channel_cnt, int *ch_wght_coeff,
  841. int session_type, int stream_type)
  842. {
  843. int rc = 0, idx = 0;
  844. int be_index = 0, port_id;
  845. unsigned int session_id = 0;
  846. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  847. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  848. stream_type);
  849. if (!is_mm_lsm_fe_id(fe_id)) {
  850. /* bad ID assigned in machine driver */
  851. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  852. return -EINVAL;
  853. }
  854. if (ch_wght_coeff == NULL) {
  855. pr_err("%s: Null channel weightage coefficients passed\n",
  856. __func__);
  857. return -EINVAL;
  858. }
  859. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  860. port_id = msm_bedais[be_index].port_id;
  861. if (!msm_bedais[be_index].active ||
  862. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  863. continue;
  864. session_id = fe_dai_map[fe_id][session_type].strm_id;
  865. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  866. unsigned long copp =
  867. session_copp_map[fe_id][session_type][be_index];
  868. if (!test_bit(idx, &copp))
  869. continue;
  870. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  871. session_id, ip_channel_cnt,
  872. op_channel_cnt, ch_wght_coeff,
  873. session_type, stream_type);
  874. if (rc < 0)
  875. pr_err("%s: err setting channel mix config\n",
  876. __func__);
  877. }
  878. }
  879. return 0;
  880. }
  881. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  882. /**
  883. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  884. * setting before use case start.
  885. *
  886. * @fe_id: frontend idx
  887. * @type: stream direction type
  888. * @params: parameters of channel mixer setting
  889. *
  890. * Return 0 for success
  891. */
  892. int msm_pcm_routing_set_channel_mixer_cfg(
  893. int fe_id, int type,
  894. struct msm_pcm_channel_mixer *params)
  895. {
  896. int i, j = 0;
  897. channel_mixer_v2[fe_id][type].enable = params->enable;
  898. channel_mixer_v2[fe_id][type].rule = params->rule;
  899. channel_mixer_v2[fe_id][type].input_channel =
  900. params->input_channel;
  901. channel_mixer_v2[fe_id][type].output_channel =
  902. params->output_channel;
  903. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  904. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  905. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  906. params->in_ch_map[i];
  907. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  908. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  909. params->out_ch_map[i];
  910. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  911. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  912. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  913. params->channel_weight[i][j];
  914. channel_mixer_v2[fe_id][type].override_in_ch_map =
  915. params->override_in_ch_map;
  916. channel_mixer_v2[fe_id][type].override_out_ch_map =
  917. params->override_out_ch_map;
  918. return 0;
  919. }
  920. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  921. int msm_pcm_routing_reg_stream_app_type_cfg(
  922. int fedai_id, int session_type, int be_id,
  923. struct msm_pcm_stream_app_type_cfg *cfg_data)
  924. {
  925. int ret = 0;
  926. if (cfg_data == NULL) {
  927. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  928. ret = -EINVAL;
  929. goto done;
  930. }
  931. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  932. __func__, fedai_id, session_type, be_id,
  933. cfg_data->app_type, cfg_data->acdb_dev_id,
  934. cfg_data->sample_rate);
  935. if (!is_mm_lsm_fe_id(fedai_id)) {
  936. pr_err("%s: Invalid machine driver ID %d\n",
  937. __func__, fedai_id);
  938. ret = -EINVAL;
  939. goto done;
  940. }
  941. if (session_type != SESSION_TYPE_RX &&
  942. session_type != SESSION_TYPE_TX) {
  943. pr_err("%s: Invalid session type %d\n",
  944. __func__, session_type);
  945. ret = -EINVAL;
  946. goto done;
  947. }
  948. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  949. pr_err("%s: Received out of bounds be_id %d\n",
  950. __func__, be_id);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  955. /*
  956. * Store the BE ID of the configuration information set as the latest so
  957. * the get mixer control knows what to return.
  958. */
  959. last_be_id_configured[fedai_id][session_type] = be_id;
  960. done:
  961. return ret;
  962. }
  963. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  964. /**
  965. * msm_pcm_routing_get_stream_app_type_cfg
  966. *
  967. * Receives fedai_id, session_type, be_id, and populates app_type,
  968. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  969. * -EINVAL and does not alter passed values.
  970. *
  971. * fedai_id - Passed value, front end ID for which app type config is wanted
  972. * session_type - Passed value, session type for which app type config
  973. * is wanted
  974. * be_id - Returned value, back end device id the app type config data is for
  975. * cfg_data - Returned value, configuration data used by app type config
  976. */
  977. int msm_pcm_routing_get_stream_app_type_cfg(
  978. int fedai_id, int session_type, int *bedai_id,
  979. struct msm_pcm_stream_app_type_cfg *cfg_data)
  980. {
  981. int be_id;
  982. int ret = 0;
  983. if (bedai_id == NULL) {
  984. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. } else if (cfg_data == NULL) {
  988. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  989. ret = -EINVAL;
  990. goto done;
  991. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  992. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  993. ret = -EINVAL;
  994. goto done;
  995. } else if (session_type != SESSION_TYPE_RX &&
  996. session_type != SESSION_TYPE_TX) {
  997. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  998. ret = -EINVAL;
  999. goto done;
  1000. }
  1001. be_id = last_be_id_configured[fedai_id][session_type];
  1002. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1003. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1004. ret = -EINVAL;
  1005. goto done;
  1006. }
  1007. *bedai_id = be_id;
  1008. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1009. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1010. __func__, fedai_id, session_type, *bedai_id,
  1011. cfg_data->app_type, cfg_data->acdb_dev_id,
  1012. cfg_data->sample_rate);
  1013. done:
  1014. return ret;
  1015. }
  1016. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1017. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1018. int cal_index)
  1019. {
  1020. struct list_head *ptr, *next;
  1021. struct cal_block_data *cal_block = NULL;
  1022. pr_debug("%s\n", __func__);
  1023. list_for_each_safe(ptr, next,
  1024. &cal_data[cal_index]->cal_blocks) {
  1025. cal_block = list_entry(ptr,
  1026. struct cal_block_data, list);
  1027. if (cal_utils_is_cal_stale(cal_block))
  1028. continue;
  1029. if (((struct audio_cal_info_adm_top *)cal_block
  1030. ->cal_info)->path == path) {
  1031. return cal_block;
  1032. }
  1033. }
  1034. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1035. return NULL;
  1036. }
  1037. static struct cal_block_data *msm_routing_find_topology(int path,
  1038. int app_type,
  1039. int acdb_id,
  1040. int cal_index,
  1041. bool exact)
  1042. {
  1043. struct list_head *ptr, *next;
  1044. struct cal_block_data *cal_block = NULL;
  1045. struct audio_cal_info_adm_top *cal_info;
  1046. pr_debug("%s\n", __func__);
  1047. list_for_each_safe(ptr, next,
  1048. &cal_data[cal_index]->cal_blocks) {
  1049. cal_block = list_entry(ptr,
  1050. struct cal_block_data, list);
  1051. if (cal_utils_is_cal_stale(cal_block))
  1052. continue;
  1053. cal_info = (struct audio_cal_info_adm_top *)
  1054. cal_block->cal_info;
  1055. if ((cal_info->path == path) &&
  1056. (cal_info->app_type == app_type) &&
  1057. (cal_info->acdb_id == acdb_id)) {
  1058. return cal_block;
  1059. }
  1060. }
  1061. pr_debug("%s: Can't find topology for path %d, app %d, "
  1062. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1063. exact ? "fail" : "defaulting to search by path");
  1064. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1065. cal_index);
  1066. }
  1067. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1068. int acdb_dev_id, int idx,
  1069. bool exact)
  1070. {
  1071. int topology = -EINVAL;
  1072. struct cal_block_data *cal_block = NULL;
  1073. mutex_lock(&cal_data[idx]->lock);
  1074. cal_block = msm_routing_find_topology(session_type, app_type,
  1075. acdb_dev_id, idx, exact);
  1076. if (cal_block != NULL) {
  1077. topology = ((struct audio_cal_info_adm_top *)
  1078. cal_block->cal_info)->topology;
  1079. }
  1080. mutex_unlock(&cal_data[idx]->lock);
  1081. return topology;
  1082. }
  1083. /*
  1084. * Retrieving cal_block will mark cal_block as stale.
  1085. * Hence it cannot be reused or resent unless the flag
  1086. * is reset.
  1087. */
  1088. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1089. int be_id)
  1090. {
  1091. int topology = NULL_COPP_TOPOLOGY;
  1092. int app_type = 0, acdb_dev_id = 0;
  1093. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1094. __func__, fedai_id, session_type, be_id);
  1095. if (cal_data == NULL)
  1096. goto done;
  1097. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1098. acdb_dev_id =
  1099. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1100. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1101. topology = msm_routing_find_topology_on_index(session_type,
  1102. app_type,
  1103. acdb_dev_id,
  1104. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1105. true /*exact*/);
  1106. if (topology < 0) {
  1107. pr_debug("%s: Check for compatible topology\n", __func__);
  1108. topology = msm_routing_find_topology_on_index(session_type,
  1109. app_type,
  1110. acdb_dev_id,
  1111. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1112. false /*exact*/);
  1113. if (topology < 0)
  1114. topology = NULL_COPP_TOPOLOGY;
  1115. }
  1116. done:
  1117. pr_debug("%s: Using topology %d\n", __func__, topology);
  1118. return topology;
  1119. }
  1120. static uint8_t is_be_dai_extproc(int be_dai)
  1121. {
  1122. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1123. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1124. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1125. return 1;
  1126. else
  1127. return 0;
  1128. }
  1129. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1130. int path_type, int perf_mode,
  1131. uint32_t passthr_mode)
  1132. {
  1133. int i, port_type, j, num_copps = 0;
  1134. struct route_payload payload;
  1135. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1136. path_type == ADM_PATH_COMPRESSED_RX) ?
  1137. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1138. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1139. if (!is_be_dai_extproc(i) &&
  1140. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1141. (msm_bedais[i].active) &&
  1142. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1143. int port_id = get_port_id(msm_bedais[i].port_id);
  1144. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1145. unsigned long copp =
  1146. session_copp_map[fedai_id][sess_type][i];
  1147. if (test_bit(j, &copp)) {
  1148. payload.port_id[num_copps] = port_id;
  1149. payload.copp_idx[num_copps] = j;
  1150. payload.app_type[num_copps] =
  1151. fe_dai_app_type_cfg
  1152. [fedai_id][sess_type][i]
  1153. .app_type;
  1154. payload.acdb_dev_id[num_copps] =
  1155. fe_dai_app_type_cfg
  1156. [fedai_id][sess_type][i]
  1157. .acdb_dev_id;
  1158. payload.sample_rate[num_copps] =
  1159. fe_dai_app_type_cfg
  1160. [fedai_id][sess_type][i]
  1161. .sample_rate;
  1162. num_copps++;
  1163. }
  1164. }
  1165. }
  1166. }
  1167. if (num_copps) {
  1168. payload.num_copps = num_copps;
  1169. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1170. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1171. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1172. }
  1173. }
  1174. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1175. int stream_type)
  1176. {
  1177. int i, session_type, path_type, port_type;
  1178. u32 mode = 0;
  1179. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1180. /* bad ID assigned in machine driver */
  1181. pr_err("%s: bad MM ID\n", __func__);
  1182. return;
  1183. }
  1184. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1185. session_type = SESSION_TYPE_RX;
  1186. path_type = ADM_PATH_PLAYBACK;
  1187. port_type = MSM_AFE_PORT_TYPE_RX;
  1188. } else {
  1189. session_type = SESSION_TYPE_TX;
  1190. path_type = ADM_PATH_LIVE_REC;
  1191. port_type = MSM_AFE_PORT_TYPE_TX;
  1192. }
  1193. mutex_lock(&routing_lock);
  1194. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. mode = afe_get_port_type(msm_bedais[i].port_id);
  1201. adm_connect_afe_port(mode, dspst_id,
  1202. msm_bedais[i].port_id);
  1203. break;
  1204. }
  1205. }
  1206. mutex_unlock(&routing_lock);
  1207. }
  1208. static bool route_check_fe_id_adm_support(int fe_id)
  1209. {
  1210. bool rc = true;
  1211. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1212. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1213. /* fe id is listen while port is set to afe */
  1214. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1215. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1216. __func__, fe_id, lsm_port_index);
  1217. rc = false;
  1218. }
  1219. }
  1220. return rc;
  1221. }
  1222. /*
  1223. * msm_pcm_routing_get_pp_ch_cnt:
  1224. * Read the processed channel count
  1225. *
  1226. * @fe_id: Front end ID
  1227. * @session_type: Inidicates RX or TX session type
  1228. */
  1229. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1230. {
  1231. struct msm_pcm_stream_app_type_cfg cfg_data;
  1232. int be_id = 0, app_type_idx = 0, app_type = 0;
  1233. int ret = -EINVAL;
  1234. memset(&cfg_data, 0, sizeof(cfg_data));
  1235. if (!is_mm_lsm_fe_id(fe_id)) {
  1236. pr_err("%s: bad MM ID\n", __func__);
  1237. return -EINVAL;
  1238. }
  1239. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1240. &be_id, &cfg_data);
  1241. if (ret) {
  1242. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1243. return ret;
  1244. }
  1245. app_type = cfg_data.app_type;
  1246. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1247. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1248. }
  1249. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1250. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1251. int dspst_id, int stream_type,
  1252. uint32_t passthr_mode)
  1253. {
  1254. int i, j, session_type, path_type, port_type, topology;
  1255. int num_copps = 0;
  1256. struct route_payload payload;
  1257. u32 channels, sample_rate;
  1258. u16 bit_width = 16;
  1259. bool is_lsm;
  1260. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1261. __func__, fe_id, perf_mode, dspst_id,
  1262. stream_type, passthr_mode);
  1263. if (!is_mm_lsm_fe_id(fe_id)) {
  1264. /* bad ID assigned in machine driver */
  1265. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1266. return -EINVAL;
  1267. }
  1268. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1269. session_type = SESSION_TYPE_RX;
  1270. if (passthr_mode != LEGACY_PCM)
  1271. path_type = ADM_PATH_COMPRESSED_RX;
  1272. else
  1273. path_type = ADM_PATH_PLAYBACK;
  1274. port_type = MSM_AFE_PORT_TYPE_RX;
  1275. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1276. session_type = SESSION_TYPE_TX;
  1277. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1278. path_type = ADM_PATH_COMPRESSED_TX;
  1279. else
  1280. path_type = ADM_PATH_LIVE_REC;
  1281. port_type = MSM_AFE_PORT_TYPE_TX;
  1282. } else {
  1283. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1284. return -EINVAL;
  1285. }
  1286. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1287. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1288. mutex_lock(&routing_lock);
  1289. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1290. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1291. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1292. if (!route_check_fe_id_adm_support(fe_id)) {
  1293. /* ignore adm open if not supported for fe_id */
  1294. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1295. mutex_unlock(&routing_lock);
  1296. return 0;
  1297. }
  1298. payload.num_copps = 0; /* only RX needs to use payload */
  1299. /* re-enable EQ if active */
  1300. msm_qti_pp_send_eq_values(fe_id);
  1301. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1302. if (!is_be_dai_extproc(i) &&
  1303. (afe_get_port_type(msm_bedais[i].port_id) ==
  1304. port_type) &&
  1305. (msm_bedais[i].active) &&
  1306. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1307. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1308. int port_id = get_port_id(msm_bedais[i].port_id);
  1309. /*
  1310. * check if ADM needs to be configured with different
  1311. * channel mapping than backend
  1312. */
  1313. if (!msm_bedais[i].adm_override_ch)
  1314. channels = msm_bedais[i].channel;
  1315. else
  1316. channels = msm_bedais[i].adm_override_ch;
  1317. bit_width = msm_routing_get_bit_width(
  1318. msm_bedais[i].format);
  1319. app_type =
  1320. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1321. if (app_type && is_lsm) {
  1322. app_type_idx =
  1323. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1324. sample_rate =
  1325. fe_dai_app_type_cfg[fe_id][session_type][i]
  1326. .sample_rate;
  1327. bit_width =
  1328. lsm_app_type_cfg[app_type_idx].bit_width;
  1329. } else if (app_type) {
  1330. app_type_idx =
  1331. msm_pcm_routing_get_app_type_idx(
  1332. app_type);
  1333. sample_rate =
  1334. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1335. bit_width =
  1336. app_type_cfg[app_type_idx].bit_width;
  1337. } else {
  1338. sample_rate = msm_bedais[i].sample_rate;
  1339. }
  1340. acdb_dev_id =
  1341. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1342. topology = msm_routing_get_adm_topology(fe_id,
  1343. session_type,
  1344. i);
  1345. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1346. || (passthr_mode ==
  1347. COMPRESSED_PASSTHROUGH_GEN)
  1348. || (passthr_mode ==
  1349. COMPRESSED_PASSTHROUGH_IEC61937))
  1350. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1351. pr_debug("%s: Before adm open topology %d\n", __func__,
  1352. topology);
  1353. copp_idx =
  1354. adm_open(port_id, path_type, sample_rate,
  1355. channels, topology, perf_mode,
  1356. bit_width, app_type, acdb_dev_id,
  1357. session_type);
  1358. if ((copp_idx < 0) ||
  1359. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1360. pr_err("%s:adm open failed coppid:%d\n",
  1361. __func__, copp_idx);
  1362. mutex_unlock(&routing_lock);
  1363. return -EINVAL;
  1364. }
  1365. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1366. __func__, fe_id, session_type, i);
  1367. set_bit(copp_idx,
  1368. &session_copp_map[fe_id][session_type][i]);
  1369. if (msm_is_resample_needed(
  1370. sample_rate,
  1371. msm_bedais[i].sample_rate))
  1372. adm_copp_mfc_cfg(port_id, copp_idx,
  1373. msm_bedais[i].sample_rate);
  1374. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1375. unsigned long copp =
  1376. session_copp_map[fe_id][session_type][i];
  1377. if (test_bit(j, &copp)) {
  1378. payload.port_id[num_copps] = port_id;
  1379. payload.copp_idx[num_copps] = j;
  1380. payload.app_type[num_copps] =
  1381. fe_dai_app_type_cfg
  1382. [fe_id][session_type][i]
  1383. .app_type;
  1384. payload.acdb_dev_id[num_copps] =
  1385. fe_dai_app_type_cfg
  1386. [fe_id][session_type][i]
  1387. .acdb_dev_id;
  1388. payload.sample_rate[num_copps] =
  1389. fe_dai_app_type_cfg
  1390. [fe_id][session_type][i]
  1391. .sample_rate;
  1392. num_copps++;
  1393. }
  1394. }
  1395. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1396. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1397. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1398. msm_routing_send_device_pp_params(port_id,
  1399. copp_idx, fe_id);
  1400. }
  1401. }
  1402. if (num_copps) {
  1403. payload.num_copps = num_copps;
  1404. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1405. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1406. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1407. }
  1408. mutex_unlock(&routing_lock);
  1409. return 0;
  1410. }
  1411. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1412. {
  1413. u32 session_id;
  1414. switch (val) {
  1415. case MSM_FRONTEND_DAI_QCHAT:
  1416. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1417. break;
  1418. case MSM_FRONTEND_DAI_VOIP:
  1419. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1420. break;
  1421. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1422. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1423. break;
  1424. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1425. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1426. break;
  1427. default:
  1428. session_id = 0;
  1429. }
  1430. pr_debug("%s session_id 0x%x", __func__, session_id);
  1431. return session_id;
  1432. }
  1433. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1434. int dspst_id, int stream_type)
  1435. {
  1436. int copp_idx = 0;
  1437. int sess_type = 0;
  1438. int j = 0, be_id = 0;
  1439. int ret = 0;
  1440. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1441. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1442. return 0;
  1443. }
  1444. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1445. sess_type = SESSION_TYPE_RX;
  1446. else
  1447. sess_type = SESSION_TYPE_TX;
  1448. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1449. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1450. __func__, fe_id, sess_type);
  1451. return 0;
  1452. }
  1453. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1454. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1455. channel_mixer_v2[fe_id][sess_type].input_channel;
  1456. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1457. __func__, sess_type, fe_id,
  1458. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1459. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1460. msm_bedais[be_id].active);
  1461. if ((msm_bedais[be_id].active) &&
  1462. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1463. unsigned long copp =
  1464. session_copp_map[fe_id][sess_type][be_id];
  1465. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1466. if (test_bit(j, &copp)) {
  1467. copp_idx = j;
  1468. break;
  1469. }
  1470. }
  1471. ret = adm_programable_channel_mixer(
  1472. msm_bedais[be_id].port_id,
  1473. copp_idx, dspst_id, sess_type,
  1474. &channel_mixer_v2[fe_id][sess_type], 0);
  1475. }
  1476. return ret;
  1477. }
  1478. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1479. int dspst_id, int stream_type)
  1480. {
  1481. int copp_idx = 0;
  1482. int sess_type = 0;
  1483. int i = 0, j = 0, be_id;
  1484. int ret = 0;
  1485. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1486. dspst_id, stream_type);
  1487. if (ret) {
  1488. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1489. fe_id);
  1490. return ret;
  1491. }
  1492. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1493. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1494. return 0;
  1495. }
  1496. if (!(channel_mixer[fe_id].enable)) {
  1497. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1498. __func__, fe_id);
  1499. return 0;
  1500. }
  1501. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1502. sess_type = SESSION_TYPE_RX;
  1503. else
  1504. sess_type = SESSION_TYPE_TX;
  1505. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1506. ++i) {
  1507. be_id = channel_input[fe_id][i] - 1;
  1508. channel_mixer[fe_id].input_channels[i] =
  1509. msm_bedais[be_id].channel;
  1510. if ((msm_bedais[be_id].active) &&
  1511. test_bit(fe_id,
  1512. &msm_bedais[be_id].fe_sessions[0])) {
  1513. unsigned long copp =
  1514. session_copp_map[fe_id][sess_type][be_id];
  1515. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1516. if (test_bit(j, &copp)) {
  1517. copp_idx = j;
  1518. break;
  1519. }
  1520. }
  1521. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1522. __func__,
  1523. fe_id, be_id, msm_bedais[be_id].channel,
  1524. copp_idx);
  1525. ret = adm_programable_channel_mixer(
  1526. get_port_id(msm_bedais[be_id].port_id),
  1527. copp_idx, dspst_id, sess_type,
  1528. channel_mixer + fe_id, i);
  1529. }
  1530. }
  1531. return ret;
  1532. }
  1533. /**
  1534. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1535. * setting during runtime.
  1536. *
  1537. * @be_id: backend index
  1538. * @session_id: session index
  1539. * @session_type: session type
  1540. * @params: parameters for channel mixer
  1541. *
  1542. * Retuen: 0 for success, else error
  1543. */
  1544. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1545. int session_type,
  1546. struct msm_pcm_channel_mixer *params)
  1547. {
  1548. int rc = 0;
  1549. int port_id, copp_idx = 0;
  1550. be_id--;
  1551. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1552. pr_err("%s: invalid backend id %d\n", __func__,
  1553. be_id);
  1554. return -EINVAL;
  1555. }
  1556. port_id = msm_bedais[be_id].port_id;
  1557. copp_idx = adm_get_default_copp_idx(port_id);
  1558. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1559. __func__, port_id, copp_idx, session_id);
  1560. if ((params->input_channel < 0) ||
  1561. (params->input_channel > ADM_MAX_CHANNELS)) {
  1562. pr_err("%s: invalid input channel %d\n", __func__,
  1563. params->input_channel);
  1564. return -EINVAL;
  1565. }
  1566. if ((params->output_channel < 0) ||
  1567. (params->output_channel > ADM_MAX_CHANNELS)) {
  1568. pr_err("%s: invalid output channel %d\n", __func__,
  1569. params->output_channel);
  1570. return -EINVAL;
  1571. }
  1572. params->input_channels[0] = params->input_channel;
  1573. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1574. __func__, session_type,
  1575. params->override_in_ch_map,
  1576. params->override_out_ch_map,
  1577. msm_bedais[be_id].active);
  1578. rc = adm_programable_channel_mixer(port_id,
  1579. copp_idx,
  1580. session_id,
  1581. session_type,
  1582. params,
  1583. 0);
  1584. if (rc) {
  1585. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1586. rc = -EINVAL;
  1587. }
  1588. return rc;
  1589. }
  1590. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1591. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1592. int dspst_id, int stream_type)
  1593. {
  1594. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1595. struct route_payload payload;
  1596. u32 channels, sample_rate;
  1597. uint16_t bits_per_sample = 16;
  1598. uint32_t passthr_mode = LEGACY_PCM;
  1599. int ret = 0;
  1600. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1601. /* bad ID assigned in machine driver */
  1602. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1603. return -EINVAL;
  1604. }
  1605. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1606. session_type = SESSION_TYPE_RX;
  1607. path_type = ADM_PATH_PLAYBACK;
  1608. port_type = MSM_AFE_PORT_TYPE_RX;
  1609. } else {
  1610. session_type = SESSION_TYPE_TX;
  1611. path_type = ADM_PATH_LIVE_REC;
  1612. port_type = MSM_AFE_PORT_TYPE_TX;
  1613. }
  1614. mutex_lock(&routing_lock);
  1615. payload.num_copps = 0; /* only RX needs to use payload */
  1616. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1617. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1618. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1619. /* re-enable EQ if active */
  1620. msm_qti_pp_send_eq_values(fedai_id);
  1621. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1622. if (!is_be_dai_extproc(i) &&
  1623. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1624. (msm_bedais[i].active) &&
  1625. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1626. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1627. int port_id = get_port_id(msm_bedais[i].port_id);
  1628. /*
  1629. * check if ADM needs to be configured with different
  1630. * channel mapping than backend
  1631. */
  1632. if (!msm_bedais[i].adm_override_ch)
  1633. channels = msm_bedais[i].channel;
  1634. else
  1635. channels = msm_bedais[i].adm_override_ch;
  1636. bits_per_sample = msm_routing_get_bit_width(
  1637. msm_bedais[i].format);
  1638. app_type =
  1639. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1640. if (app_type) {
  1641. app_type_idx =
  1642. msm_pcm_routing_get_app_type_idx(app_type);
  1643. sample_rate =
  1644. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1645. .sample_rate;
  1646. bits_per_sample =
  1647. app_type_cfg[app_type_idx].bit_width;
  1648. } else
  1649. sample_rate = msm_bedais[i].sample_rate;
  1650. acdb_dev_id =
  1651. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1652. .acdb_dev_id;
  1653. topology = msm_routing_get_adm_topology(fedai_id,
  1654. session_type,
  1655. i);
  1656. copp_idx = adm_open(port_id, path_type,
  1657. sample_rate, channels, topology,
  1658. perf_mode, bits_per_sample,
  1659. app_type, acdb_dev_id,
  1660. session_type);
  1661. if ((copp_idx < 0) ||
  1662. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1663. pr_err("%s: adm open failed copp_idx:%d\n",
  1664. __func__, copp_idx);
  1665. mutex_unlock(&routing_lock);
  1666. return -EINVAL;
  1667. }
  1668. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1669. __func__, fedai_id, session_type, i);
  1670. set_bit(copp_idx,
  1671. &session_copp_map[fedai_id][session_type][i]);
  1672. if (msm_is_resample_needed(
  1673. sample_rate,
  1674. msm_bedais[i].sample_rate))
  1675. adm_copp_mfc_cfg(port_id, copp_idx,
  1676. msm_bedais[i].sample_rate);
  1677. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1678. unsigned long copp =
  1679. session_copp_map[fedai_id][session_type][i];
  1680. if (test_bit(j, &copp)) {
  1681. payload.port_id[num_copps] = port_id;
  1682. payload.copp_idx[num_copps] = j;
  1683. payload.app_type[num_copps] =
  1684. fe_dai_app_type_cfg
  1685. [fedai_id][session_type]
  1686. [i].app_type;
  1687. payload.acdb_dev_id[num_copps] =
  1688. fe_dai_app_type_cfg
  1689. [fedai_id][session_type]
  1690. [i].acdb_dev_id;
  1691. payload.sample_rate[num_copps] =
  1692. fe_dai_app_type_cfg
  1693. [fedai_id][session_type]
  1694. [i].sample_rate;
  1695. num_copps++;
  1696. }
  1697. }
  1698. if (perf_mode == LEGACY_PCM_MODE)
  1699. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1700. topology, channels);
  1701. }
  1702. }
  1703. if (num_copps) {
  1704. payload.num_copps = num_copps;
  1705. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1706. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1707. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1708. }
  1709. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1710. dspst_id, stream_type);
  1711. mutex_unlock(&routing_lock);
  1712. return ret;
  1713. }
  1714. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1715. int dspst_id, int stream_type,
  1716. struct msm_pcm_routing_evt event_info)
  1717. {
  1718. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1719. stream_type)) {
  1720. pr_err("%s: failed to reg phy stream\n", __func__);
  1721. return -EINVAL;
  1722. }
  1723. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1724. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1725. else
  1726. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1727. return 0;
  1728. }
  1729. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1730. {
  1731. int i, port_type, session_type, path_type, topology, port_id;
  1732. struct msm_pcm_routing_fdai_data *fdai;
  1733. if (!is_mm_lsm_fe_id(fedai_id)) {
  1734. /* bad ID assigned in machine driver */
  1735. pr_err("%s: bad MM ID\n", __func__);
  1736. return;
  1737. }
  1738. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1739. port_type = MSM_AFE_PORT_TYPE_RX;
  1740. session_type = SESSION_TYPE_RX;
  1741. path_type = ADM_PATH_PLAYBACK;
  1742. } else {
  1743. port_type = MSM_AFE_PORT_TYPE_TX;
  1744. session_type = SESSION_TYPE_TX;
  1745. path_type = ADM_PATH_LIVE_REC;
  1746. }
  1747. mutex_lock(&routing_lock);
  1748. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1749. if (!is_be_dai_extproc(i) &&
  1750. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1751. (msm_bedais[i].active) &&
  1752. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1753. int idx;
  1754. unsigned long copp =
  1755. session_copp_map[fedai_id][session_type][i];
  1756. fdai = &fe_dai_map[fedai_id][session_type];
  1757. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1758. if (test_bit(idx, &copp))
  1759. break;
  1760. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1761. pr_debug("%s: copp idx is invalid, exiting\n",
  1762. __func__);
  1763. continue;
  1764. }
  1765. port_id = get_port_id(msm_bedais[i].port_id);
  1766. topology = adm_get_topology_for_port_copp_idx(
  1767. port_id, idx);
  1768. msm_routing_unload_topology(topology);
  1769. adm_close(port_id, fdai->perf_mode, idx);
  1770. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1771. __func__, copp, fedai_id, session_type, i);
  1772. clear_bit(idx,
  1773. &session_copp_map[fedai_id][session_type][i]);
  1774. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1775. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1776. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1777. (fdai->passthr_mode == LEGACY_PCM))
  1778. msm_pcm_routing_deinit_pp(port_id, topology);
  1779. }
  1780. }
  1781. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1782. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1783. mutex_unlock(&routing_lock);
  1784. }
  1785. /* Check if FE/BE route is set */
  1786. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1787. {
  1788. bool rc = false;
  1789. if (!is_mm_lsm_fe_id(fe_id)) {
  1790. /* recheck FE ID in the mixer control defined in this file */
  1791. pr_err("%s: bad MM ID\n", __func__);
  1792. return rc;
  1793. }
  1794. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1795. rc = true;
  1796. return rc;
  1797. }
  1798. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1799. {
  1800. int session_type, path_type, topology;
  1801. u32 channels, sample_rate;
  1802. uint16_t bits_per_sample = 16;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. uint32_t passthr_mode;
  1805. bool is_lsm;
  1806. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1807. if (!is_mm_lsm_fe_id(val)) {
  1808. /* recheck FE ID in the mixer control defined in this file */
  1809. pr_err("%s: bad MM ID\n", __func__);
  1810. return;
  1811. }
  1812. if (!route_check_fe_id_adm_support(val)) {
  1813. /* ignore adm open if not supported for fe_id */
  1814. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1815. if (set)
  1816. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1817. else
  1818. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1819. return;
  1820. }
  1821. session_type =
  1822. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1823. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1824. fdai = &fe_dai_map[val][session_type];
  1825. passthr_mode = fdai->passthr_mode;
  1826. if (session_type == SESSION_TYPE_RX) {
  1827. if (passthr_mode != LEGACY_PCM)
  1828. path_type = ADM_PATH_COMPRESSED_RX;
  1829. else
  1830. path_type = ADM_PATH_PLAYBACK;
  1831. } else {
  1832. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1833. path_type = ADM_PATH_COMPRESSED_TX;
  1834. else
  1835. path_type = ADM_PATH_LIVE_REC;
  1836. }
  1837. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1838. (val <= MSM_FRONTEND_DAI_LSM8);
  1839. mutex_lock(&routing_lock);
  1840. if (set) {
  1841. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1842. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1843. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1844. voc_start_playback(set, msm_bedais[reg].port_id);
  1845. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1846. if (msm_bedais[reg].active && fdai->strm_id !=
  1847. INVALID_SESSION) {
  1848. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1849. int port_id = get_port_id(msm_bedais[reg].port_id);
  1850. /*
  1851. * check if ADM needs to be configured with different
  1852. * channel mapping than backend
  1853. */
  1854. if (!msm_bedais[reg].adm_override_ch)
  1855. channels = msm_bedais[reg].channel;
  1856. else
  1857. channels = msm_bedais[reg].adm_override_ch;
  1858. if (session_type == SESSION_TYPE_TX &&
  1859. fdai->be_srate &&
  1860. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1861. pr_debug("%s: flush strm %d diff BE rates\n",
  1862. __func__, fdai->strm_id);
  1863. if (fdai->event_info.event_func)
  1864. fdai->event_info.event_func(
  1865. MSM_PCM_RT_EVT_BUF_RECFG,
  1866. fdai->event_info.priv_data);
  1867. fdai->be_srate = 0; /* might not need it */
  1868. }
  1869. bits_per_sample = msm_routing_get_bit_width(
  1870. msm_bedais[reg].format);
  1871. app_type =
  1872. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1873. if (app_type && is_lsm) {
  1874. app_type_idx =
  1875. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1876. sample_rate =
  1877. fe_dai_app_type_cfg[val][session_type][reg]
  1878. .sample_rate;
  1879. bits_per_sample =
  1880. lsm_app_type_cfg[app_type_idx].bit_width;
  1881. } else if (app_type) {
  1882. app_type_idx =
  1883. msm_pcm_routing_get_app_type_idx(app_type);
  1884. sample_rate =
  1885. fe_dai_app_type_cfg[val][session_type][reg]
  1886. .sample_rate;
  1887. bits_per_sample =
  1888. app_type_cfg[app_type_idx].bit_width;
  1889. } else
  1890. sample_rate = msm_bedais[reg].sample_rate;
  1891. topology = msm_routing_get_adm_topology(val,
  1892. session_type,
  1893. reg);
  1894. acdb_dev_id =
  1895. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1896. copp_idx = adm_open(port_id, path_type,
  1897. sample_rate, channels, topology,
  1898. fdai->perf_mode, bits_per_sample,
  1899. app_type, acdb_dev_id,
  1900. session_type);
  1901. if ((copp_idx < 0) ||
  1902. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1903. pr_err("%s: adm open failed\n", __func__);
  1904. mutex_unlock(&routing_lock);
  1905. return;
  1906. }
  1907. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1908. __func__, val, session_type, reg);
  1909. set_bit(copp_idx,
  1910. &session_copp_map[val][session_type][reg]);
  1911. if (msm_is_resample_needed(
  1912. sample_rate,
  1913. msm_bedais[reg].sample_rate))
  1914. adm_copp_mfc_cfg(port_id, copp_idx,
  1915. msm_bedais[reg].sample_rate);
  1916. if (session_type == SESSION_TYPE_RX &&
  1917. fdai->event_info.event_func)
  1918. fdai->event_info.event_func(
  1919. MSM_PCM_RT_EVT_DEVSWITCH,
  1920. fdai->event_info.priv_data);
  1921. msm_pcm_routing_build_matrix(val, session_type,
  1922. path_type,
  1923. fdai->perf_mode,
  1924. passthr_mode);
  1925. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1926. (passthr_mode == LEGACY_PCM))
  1927. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1928. topology, channels);
  1929. }
  1930. } else {
  1931. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1932. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1933. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1934. voc_start_playback(set, msm_bedais[reg].port_id);
  1935. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1936. if (msm_bedais[reg].active && fdai->strm_id !=
  1937. INVALID_SESSION) {
  1938. int idx;
  1939. int port_id;
  1940. unsigned long copp =
  1941. session_copp_map[val][session_type][reg];
  1942. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1943. if (test_bit(idx, &copp))
  1944. break;
  1945. if (idx >= MAX_COPPS_PER_PORT) {
  1946. pr_debug("%s: copp idx is invalid, exiting\n",
  1947. __func__);
  1948. mutex_unlock(&routing_lock);
  1949. return;
  1950. }
  1951. port_id = get_port_id(msm_bedais[reg].port_id);
  1952. topology = adm_get_topology_for_port_copp_idx(port_id,
  1953. idx);
  1954. msm_routing_unload_topology(topology);
  1955. adm_close(port_id, fdai->perf_mode, idx);
  1956. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1957. __func__, copp, val, session_type, reg,
  1958. topology);
  1959. clear_bit(idx,
  1960. &session_copp_map[val][session_type][reg]);
  1961. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1962. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1963. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1964. (passthr_mode == LEGACY_PCM))
  1965. msm_pcm_routing_deinit_pp(port_id, topology);
  1966. msm_pcm_routing_build_matrix(val, session_type,
  1967. path_type,
  1968. fdai->perf_mode,
  1969. passthr_mode);
  1970. }
  1971. }
  1972. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1973. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1974. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1975. mutex_unlock(&routing_lock);
  1976. }
  1977. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1978. struct snd_ctl_elem_value *ucontrol)
  1979. {
  1980. struct soc_mixer_control *mc =
  1981. (struct soc_mixer_control *)kcontrol->private_value;
  1982. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1983. ucontrol->value.integer.value[0] = 1;
  1984. else
  1985. ucontrol->value.integer.value[0] = 0;
  1986. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1987. ucontrol->value.integer.value[0]);
  1988. return 0;
  1989. }
  1990. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1991. struct snd_ctl_elem_value *ucontrol)
  1992. {
  1993. struct snd_soc_dapm_widget *widget =
  1994. snd_soc_dapm_kcontrol_widget(kcontrol);
  1995. struct soc_mixer_control *mc =
  1996. (struct soc_mixer_control *)kcontrol->private_value;
  1997. struct snd_soc_dapm_update *update = NULL;
  1998. if (ucontrol->value.integer.value[0] &&
  1999. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2000. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2001. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2002. update);
  2003. } else if (!ucontrol->value.integer.value[0] &&
  2004. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2005. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2006. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2007. update);
  2008. }
  2009. return 1;
  2010. }
  2011. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2012. struct snd_ctl_elem_value *ucontrol)
  2013. {
  2014. struct soc_mixer_control *mc =
  2015. (struct soc_mixer_control *)kcontrol->private_value;
  2016. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2017. ucontrol->value.integer.value[0] = 1;
  2018. else
  2019. ucontrol->value.integer.value[0] = 0;
  2020. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2021. ucontrol->value.integer.value[0]);
  2022. return 0;
  2023. }
  2024. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2025. struct snd_ctl_elem_value *ucontrol)
  2026. {
  2027. struct snd_soc_dapm_widget *widget =
  2028. snd_soc_dapm_kcontrol_widget(kcontrol);
  2029. struct soc_mixer_control *mc =
  2030. (struct soc_mixer_control *)kcontrol->private_value;
  2031. struct snd_soc_dapm_update *update = NULL;
  2032. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2033. ucontrol->value.integer.value[0]);
  2034. if (ucontrol->value.integer.value[0]) {
  2035. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2036. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2037. snd_soc_dapm_mixer_update_power(widget->dapm,
  2038. kcontrol, 1, update);
  2039. } else if (!ucontrol->value.integer.value[0]) {
  2040. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2041. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2042. snd_soc_dapm_mixer_update_power(widget->dapm,
  2043. kcontrol, 0, update);
  2044. }
  2045. return 1;
  2046. }
  2047. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2048. {
  2049. u32 session_id = 0;
  2050. u16 path_type;
  2051. struct media_format_info voc_be_media_format;
  2052. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2053. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2054. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2055. __func__, val, session_id);
  2056. mutex_lock(&routing_lock);
  2057. if (set)
  2058. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2059. else
  2060. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2061. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2062. afe_get_port_type(msm_bedais[reg].port_id) ==
  2063. MSM_AFE_PORT_TYPE_RX) {
  2064. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2065. __func__, set, msm_bedais[reg].port_id);
  2066. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2067. }
  2068. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2069. MSM_AFE_PORT_TYPE_RX)
  2070. path_type = RX_PATH;
  2071. else
  2072. path_type = TX_PATH;
  2073. if (set) {
  2074. if (msm_bedais[reg].active) {
  2075. voc_set_route_flag(session_id, path_type, 1);
  2076. memset(&voc_be_media_format, 0,
  2077. sizeof(struct media_format_info));
  2078. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2079. voc_be_media_format.num_channels =
  2080. msm_bedais[reg].channel;
  2081. voc_be_media_format.sample_rate =
  2082. msm_bedais[reg].sample_rate;
  2083. voc_be_media_format.bits_per_sample =
  2084. msm_bedais[reg].format;
  2085. /* Defaulting this to 1 for voice call usecases */
  2086. voc_be_media_format.channel_mapping[0] = 1;
  2087. voc_set_device_config(session_id, path_type,
  2088. &voc_be_media_format);
  2089. if (voc_get_route_flag(session_id, TX_PATH) &&
  2090. voc_get_route_flag(session_id, RX_PATH))
  2091. voc_enable_device(session_id);
  2092. } else {
  2093. pr_debug("%s BE is not active\n", __func__);
  2094. }
  2095. } else {
  2096. voc_set_route_flag(session_id, path_type, 0);
  2097. voc_disable_device(session_id);
  2098. }
  2099. mutex_unlock(&routing_lock);
  2100. }
  2101. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2102. struct snd_ctl_elem_value *ucontrol)
  2103. {
  2104. struct soc_mixer_control *mc =
  2105. (struct soc_mixer_control *)kcontrol->private_value;
  2106. mutex_lock(&routing_lock);
  2107. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2108. ucontrol->value.integer.value[0] = 1;
  2109. else
  2110. ucontrol->value.integer.value[0] = 0;
  2111. mutex_unlock(&routing_lock);
  2112. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2113. ucontrol->value.integer.value[0]);
  2114. return 0;
  2115. }
  2116. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2117. struct snd_ctl_elem_value *ucontrol)
  2118. {
  2119. struct snd_soc_dapm_widget *widget =
  2120. snd_soc_dapm_kcontrol_widget(kcontrol);
  2121. struct soc_mixer_control *mc =
  2122. (struct soc_mixer_control *)kcontrol->private_value;
  2123. struct snd_soc_dapm_update *update = NULL;
  2124. if (ucontrol->value.integer.value[0]) {
  2125. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2126. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2127. update);
  2128. } else {
  2129. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2130. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2131. update);
  2132. }
  2133. return 1;
  2134. }
  2135. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2136. struct snd_ctl_elem_value *ucontrol)
  2137. {
  2138. struct soc_mixer_control *mc =
  2139. (struct soc_mixer_control *)kcontrol->private_value;
  2140. mutex_lock(&routing_lock);
  2141. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2142. ucontrol->value.integer.value[0] = 1;
  2143. else
  2144. ucontrol->value.integer.value[0] = 0;
  2145. mutex_unlock(&routing_lock);
  2146. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2147. ucontrol->value.integer.value[0]);
  2148. return 0;
  2149. }
  2150. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2151. struct snd_ctl_elem_value *ucontrol)
  2152. {
  2153. struct snd_soc_dapm_widget *widget =
  2154. snd_soc_dapm_kcontrol_widget(kcontrol);
  2155. struct soc_mixer_control *mc =
  2156. (struct soc_mixer_control *)kcontrol->private_value;
  2157. struct snd_soc_dapm_update *update = NULL;
  2158. if (ucontrol->value.integer.value[0]) {
  2159. mutex_lock(&routing_lock);
  2160. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2161. mutex_unlock(&routing_lock);
  2162. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2163. update);
  2164. } else {
  2165. mutex_lock(&routing_lock);
  2166. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2167. mutex_unlock(&routing_lock);
  2168. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2169. update);
  2170. }
  2171. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2172. ucontrol->value.integer.value[0]);
  2173. return 1;
  2174. }
  2175. /*
  2176. * Return the mapping between port ID and backend ID to enable the AFE callback
  2177. * to determine the acdb_dev_id from the port id
  2178. */
  2179. int msm_pcm_get_be_id_from_port_id(int port_id)
  2180. {
  2181. int i;
  2182. int be_id = -EINVAL;
  2183. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2184. if (msm_bedais[i].port_id == port_id) {
  2185. be_id = i;
  2186. break;
  2187. }
  2188. }
  2189. return be_id;
  2190. }
  2191. /*
  2192. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2193. * correct AFE calibration information by comparing the header information.
  2194. */
  2195. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2196. {
  2197. int acdb_id = -EINVAL;
  2198. int i = 0;
  2199. int session;
  2200. int port_type = afe_get_port_type(port_id);
  2201. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2202. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2203. __func__, port_id, be_id, port_type);
  2204. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2205. session = SESSION_TYPE_TX;
  2206. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2207. session = SESSION_TYPE_RX;
  2208. } else {
  2209. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2210. acdb_id = -EINVAL;
  2211. goto exit;
  2212. }
  2213. if (be_id < 0) {
  2214. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2215. goto exit;
  2216. }
  2217. mutex_lock(&routing_lock);
  2218. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2219. MSM_FRONTEND_DAI_MAX);
  2220. if (i < MSM_FRONTEND_DAI_MAX)
  2221. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2222. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2223. __func__, i, session, be_id, acdb_id);
  2224. mutex_unlock(&routing_lock);
  2225. exit:
  2226. return acdb_id;
  2227. }
  2228. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. ucontrol->value.integer.value[0] = fm_switch_enable;
  2232. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2233. ucontrol->value.integer.value[0]);
  2234. return 0;
  2235. }
  2236. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. struct snd_soc_dapm_widget *widget =
  2240. snd_soc_dapm_kcontrol_widget(kcontrol);
  2241. struct snd_soc_dapm_update *update = NULL;
  2242. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2243. ucontrol->value.integer.value[0]);
  2244. if (ucontrol->value.integer.value[0])
  2245. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2246. update);
  2247. else
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2249. update);
  2250. fm_switch_enable = ucontrol->value.integer.value[0];
  2251. return 1;
  2252. }
  2253. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2254. struct snd_ctl_elem_value *ucontrol)
  2255. {
  2256. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2257. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2258. ucontrol->value.integer.value[0]);
  2259. return 0;
  2260. }
  2261. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2262. struct snd_ctl_elem_value *ucontrol)
  2263. {
  2264. struct snd_soc_dapm_widget *widget =
  2265. snd_soc_dapm_kcontrol_widget(kcontrol);
  2266. struct snd_soc_dapm_update *update = NULL;
  2267. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2268. ucontrol->value.integer.value[0]);
  2269. if (ucontrol->value.integer.value[0])
  2270. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2271. 1, update);
  2272. else
  2273. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2274. 0, update);
  2275. hfp_switch_enable = ucontrol->value.integer.value[0];
  2276. return 1;
  2277. }
  2278. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2279. struct snd_ctl_elem_value *ucontrol)
  2280. {
  2281. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2282. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2283. ucontrol->value.integer.value[0]);
  2284. return 0;
  2285. }
  2286. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. struct snd_soc_dapm_widget *widget =
  2290. snd_soc_dapm_kcontrol_widget(kcontrol);
  2291. struct snd_soc_dapm_update *update = NULL;
  2292. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2293. ucontrol->value.integer.value[0]);
  2294. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2295. if (a2dp_switch_enable)
  2296. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2297. 1, update);
  2298. else
  2299. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2300. 0, update);
  2301. return 1;
  2302. }
  2303. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2304. struct snd_ctl_elem_value *ucontrol)
  2305. {
  2306. ucontrol->value.integer.value[0] = sco_switch_enable;
  2307. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2308. ucontrol->value.integer.value[0]);
  2309. return 0;
  2310. }
  2311. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. struct snd_soc_dapm_widget *widget =
  2315. snd_soc_dapm_kcontrol_widget(kcontrol);
  2316. struct snd_soc_dapm_update *update = NULL;
  2317. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2318. ucontrol->value.integer.value[0]);
  2319. sco_switch_enable = ucontrol->value.integer.value[0];
  2320. if (sco_switch_enable)
  2321. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2322. 1, update);
  2323. else
  2324. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2325. 0, update);
  2326. return 1;
  2327. }
  2328. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2329. struct snd_ctl_elem_value *ucontrol)
  2330. {
  2331. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2332. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2333. ucontrol->value.integer.value[0]);
  2334. return 0;
  2335. }
  2336. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. struct snd_soc_dapm_widget *widget =
  2340. snd_soc_dapm_kcontrol_widget(kcontrol);
  2341. struct snd_soc_dapm_update *update = NULL;
  2342. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2343. ucontrol->value.integer.value[0]);
  2344. if (ucontrol->value.integer.value[0])
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2346. update);
  2347. else
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2349. update);
  2350. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2351. return 1;
  2352. }
  2353. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2354. struct snd_ctl_elem_value *ucontrol)
  2355. {
  2356. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2357. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2358. ucontrol->value.integer.value[0]);
  2359. return 0;
  2360. }
  2361. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2362. struct snd_ctl_elem_value *ucontrol)
  2363. {
  2364. struct snd_soc_dapm_widget *widget =
  2365. snd_soc_dapm_kcontrol_widget(kcontrol);
  2366. struct snd_soc_dapm_update *update = NULL;
  2367. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2368. ucontrol->value.integer.value[0]);
  2369. if (ucontrol->value.integer.value[0])
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2371. update);
  2372. else
  2373. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2374. update);
  2375. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2376. return 1;
  2377. }
  2378. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2379. struct snd_ctl_elem_value *ucontrol)
  2380. {
  2381. ucontrol->value.integer.value[0] = usb_switch_enable;
  2382. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2383. ucontrol->value.integer.value[0]);
  2384. return 0;
  2385. }
  2386. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2387. struct snd_ctl_elem_value *ucontrol)
  2388. {
  2389. struct snd_soc_dapm_widget *widget =
  2390. snd_soc_dapm_kcontrol_widget(kcontrol);
  2391. struct snd_soc_dapm_update *update = NULL;
  2392. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2393. ucontrol->value.integer.value[0]);
  2394. if (ucontrol->value.integer.value[0])
  2395. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2396. 1, update);
  2397. else
  2398. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2399. 0, update);
  2400. usb_switch_enable = ucontrol->value.integer.value[0];
  2401. return 1;
  2402. }
  2403. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2404. struct snd_ctl_elem_value *ucontrol)
  2405. {
  2406. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2407. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2408. ucontrol->value.integer.value[0]);
  2409. return 0;
  2410. }
  2411. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2412. struct snd_ctl_elem_value *ucontrol)
  2413. {
  2414. struct snd_soc_dapm_widget *widget =
  2415. snd_soc_dapm_kcontrol_widget(kcontrol);
  2416. struct snd_soc_dapm_update *update = NULL;
  2417. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2418. ucontrol->value.integer.value[0]);
  2419. if (ucontrol->value.integer.value[0])
  2420. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2421. update);
  2422. else
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2424. update);
  2425. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2426. return 1;
  2427. }
  2428. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2432. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2433. ucontrol->value.integer.value[0]);
  2434. return 0;
  2435. }
  2436. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2437. struct snd_ctl_elem_value *ucontrol)
  2438. {
  2439. struct snd_soc_dapm_widget *widget =
  2440. snd_soc_dapm_kcontrol_widget(kcontrol);
  2441. struct snd_soc_dapm_update *update = NULL;
  2442. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2443. ucontrol->value.integer.value[0]);
  2444. if (ucontrol->value.integer.value[0])
  2445. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2446. update);
  2447. else
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2449. update);
  2450. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2451. return 1;
  2452. }
  2453. static int msm_routing_get_tert_mi2s_switch_mixer(
  2454. struct snd_kcontrol *kcontrol,
  2455. struct snd_ctl_elem_value *ucontrol)
  2456. {
  2457. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2458. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2459. ucontrol->value.integer.value[0]);
  2460. return 0;
  2461. }
  2462. static int msm_routing_put_tert_mi2s_switch_mixer(
  2463. struct snd_kcontrol *kcontrol,
  2464. struct snd_ctl_elem_value *ucontrol)
  2465. {
  2466. struct snd_soc_dapm_widget *widget =
  2467. snd_soc_dapm_kcontrol_widget(kcontrol);
  2468. struct snd_soc_dapm_update *update = NULL;
  2469. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2470. ucontrol->value.integer.value[0]);
  2471. if (ucontrol->value.integer.value[0])
  2472. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2473. update);
  2474. else
  2475. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2476. update);
  2477. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2478. return 1;
  2479. }
  2480. static int msm_routing_get_quat_mi2s_switch_mixer(
  2481. struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2485. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2486. ucontrol->value.integer.value[0]);
  2487. return 0;
  2488. }
  2489. static int msm_routing_put_quat_mi2s_switch_mixer(
  2490. struct snd_kcontrol *kcontrol,
  2491. struct snd_ctl_elem_value *ucontrol)
  2492. {
  2493. struct snd_soc_dapm_widget *widget =
  2494. snd_soc_dapm_kcontrol_widget(kcontrol);
  2495. struct snd_soc_dapm_update *update = NULL;
  2496. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2497. ucontrol->value.integer.value[0]);
  2498. if (ucontrol->value.integer.value[0])
  2499. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2500. update);
  2501. else
  2502. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2503. update);
  2504. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2505. return 1;
  2506. }
  2507. static int msm_routing_get_quin_mi2s_switch_mixer(
  2508. struct snd_kcontrol *kcontrol,
  2509. struct snd_ctl_elem_value *ucontrol)
  2510. {
  2511. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2512. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2513. ucontrol->value.integer.value[0]);
  2514. return 0;
  2515. }
  2516. static int msm_routing_put_quin_mi2s_switch_mixer(
  2517. struct snd_kcontrol *kcontrol,
  2518. struct snd_ctl_elem_value *ucontrol)
  2519. {
  2520. struct snd_soc_dapm_widget *widget =
  2521. snd_soc_dapm_kcontrol_widget(kcontrol);
  2522. struct snd_soc_dapm_update *update = NULL;
  2523. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2524. ucontrol->value.integer.value[0]);
  2525. if (ucontrol->value.integer.value[0])
  2526. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2527. update);
  2528. else
  2529. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2530. update);
  2531. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2532. return 1;
  2533. }
  2534. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2535. struct snd_ctl_elem_value *ucontrol)
  2536. {
  2537. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2538. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2539. ucontrol->value.integer.value[0]);
  2540. return 0;
  2541. }
  2542. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2543. struct snd_ctl_elem_value *ucontrol)
  2544. {
  2545. struct snd_soc_dapm_widget *widget =
  2546. snd_soc_dapm_kcontrol_widget(kcontrol);
  2547. struct snd_soc_dapm_update *update = NULL;
  2548. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2549. ucontrol->value.integer.value[0]);
  2550. if (ucontrol->value.integer.value[0])
  2551. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2552. update);
  2553. else
  2554. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2555. update);
  2556. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2557. return 1;
  2558. }
  2559. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. ucontrol->value.integer.value[0] = lsm_port_index;
  2563. return 0;
  2564. }
  2565. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2566. struct snd_ctl_elem_value *ucontrol)
  2567. {
  2568. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2569. int mux = ucontrol->value.enumerated.item[0];
  2570. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2571. if (mux >= e->items) {
  2572. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2573. return -EINVAL;
  2574. }
  2575. pr_debug("%s: LSM enable %ld\n", __func__,
  2576. ucontrol->value.integer.value[0]);
  2577. switch (ucontrol->value.integer.value[0]) {
  2578. case 1:
  2579. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2580. break;
  2581. case 2:
  2582. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2583. break;
  2584. case 3:
  2585. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2586. break;
  2587. case 4:
  2588. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2589. break;
  2590. case 5:
  2591. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2592. break;
  2593. case 6:
  2594. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2595. break;
  2596. case 7:
  2597. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2598. break;
  2599. case 8:
  2600. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2601. break;
  2602. case 9:
  2603. lsm_port = ADM_LSM_PORT_ID;
  2604. break;
  2605. case 10:
  2606. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2607. break;
  2608. case 11:
  2609. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2610. break;
  2611. case 12:
  2612. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2613. break;
  2614. case 13:
  2615. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2616. break;
  2617. case 14:
  2618. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2619. break;
  2620. case 15:
  2621. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2622. break;
  2623. default:
  2624. pr_err("Default lsm port");
  2625. break;
  2626. }
  2627. set_lsm_port(lsm_port);
  2628. lsm_port_index = ucontrol->value.integer.value[0];
  2629. return 0;
  2630. }
  2631. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2632. struct snd_ctl_elem_value *ucontrol)
  2633. {
  2634. int i;
  2635. u16 port_id;
  2636. enum afe_mad_type mad_type;
  2637. pr_debug("%s: enter\n", __func__);
  2638. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2639. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2640. strlen(lsm_port_text[i])))
  2641. break;
  2642. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2643. pr_warn("%s: Invalid id name %s\n", __func__,
  2644. kcontrol->id.name);
  2645. return -EINVAL;
  2646. }
  2647. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2648. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2649. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2650. strlen(lsm_port_text[7])))
  2651. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2652. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2653. strlen(lsm_port_text[8])))
  2654. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2655. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2656. strlen(lsm_port_text[10])))
  2657. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2658. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2659. strlen(lsm_port_text[13])))
  2660. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2661. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2662. strlen(lsm_port_text[14])))
  2663. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2664. mad_type = afe_port_get_mad_type(port_id);
  2665. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2666. mad_type);
  2667. switch (mad_type) {
  2668. case MAD_HW_NONE:
  2669. ucontrol->value.integer.value[0] = MADNONE;
  2670. break;
  2671. case MAD_HW_AUDIO:
  2672. ucontrol->value.integer.value[0] = MADAUDIO;
  2673. break;
  2674. case MAD_HW_BEACON:
  2675. ucontrol->value.integer.value[0] = MADBEACON;
  2676. break;
  2677. case MAD_HW_ULTRASOUND:
  2678. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2679. break;
  2680. case MAD_SW_AUDIO:
  2681. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2682. break;
  2683. default:
  2684. pr_warn("%s: Unknown\n", __func__);
  2685. return -EINVAL;
  2686. }
  2687. return 0;
  2688. }
  2689. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. int i;
  2693. u16 port_id;
  2694. enum afe_mad_type mad_type;
  2695. pr_debug("%s: enter\n", __func__);
  2696. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2697. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2698. strlen(lsm_port_text[i])))
  2699. break;
  2700. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2701. pr_warn("%s: Invalid id name %s\n", __func__,
  2702. kcontrol->id.name);
  2703. return -EINVAL;
  2704. }
  2705. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2706. switch (ucontrol->value.integer.value[0]) {
  2707. case MADNONE:
  2708. mad_type = MAD_HW_NONE;
  2709. break;
  2710. case MADAUDIO:
  2711. mad_type = MAD_HW_AUDIO;
  2712. break;
  2713. case MADBEACON:
  2714. mad_type = MAD_HW_BEACON;
  2715. break;
  2716. case MADULTRASOUND:
  2717. mad_type = MAD_HW_ULTRASOUND;
  2718. break;
  2719. case MADSWAUDIO:
  2720. mad_type = MAD_SW_AUDIO;
  2721. break;
  2722. default:
  2723. pr_warn("%s: Unknown\n", __func__);
  2724. return -EINVAL;
  2725. }
  2726. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2727. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2728. strlen(lsm_port_text[7])))
  2729. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2730. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2731. strlen(lsm_port_text[8])))
  2732. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2733. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2734. strlen(lsm_port_text[10])))
  2735. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2736. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2737. strlen(lsm_port_text[13])))
  2738. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2739. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2740. strlen(lsm_port_text[14])))
  2741. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2742. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2743. mad_type);
  2744. return afe_port_set_mad_type(port_id, mad_type);
  2745. }
  2746. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2747. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2748. adm_override_chs_text);
  2749. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2750. {
  2751. int backend_id;
  2752. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2753. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2754. } else {
  2755. pr_err("%s: unsupported backend id: %s",
  2756. __func__, kcontrol->id.name);
  2757. return -EINVAL;
  2758. }
  2759. return backend_id;
  2760. }
  2761. static int msm_routing_adm_channel_config_get(
  2762. struct snd_kcontrol *kcontrol,
  2763. struct snd_ctl_elem_value *ucontrol)
  2764. {
  2765. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2766. if (backend_id >= 0) {
  2767. mutex_lock(&routing_lock);
  2768. ucontrol->value.integer.value[0] =
  2769. msm_bedais[backend_id].adm_override_ch;
  2770. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2771. ucontrol->value.integer.value[0], backend_id);
  2772. mutex_unlock(&routing_lock);
  2773. }
  2774. return 0;
  2775. }
  2776. static int msm_routing_adm_channel_config_put(
  2777. struct snd_kcontrol *kcontrol,
  2778. struct snd_ctl_elem_value *ucontrol)
  2779. {
  2780. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2781. if (backend_id >= 0) {
  2782. mutex_lock(&routing_lock);
  2783. msm_bedais[backend_id].adm_override_ch =
  2784. ucontrol->value.integer.value[0];
  2785. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2786. __func__, backend_id,
  2787. msm_bedais[backend_id].adm_override_ch);
  2788. mutex_unlock(&routing_lock);
  2789. }
  2790. return 0;
  2791. }
  2792. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2793. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2794. msm_routing_adm_channel_config_get,
  2795. msm_routing_adm_channel_config_put),
  2796. };
  2797. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2798. struct snd_ctl_elem_value *ucontrol)
  2799. {
  2800. mutex_lock(&routing_lock);
  2801. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2802. mutex_unlock(&routing_lock);
  2803. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2804. ucontrol->value.integer.value[0]);
  2805. return 0;
  2806. };
  2807. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2808. struct snd_ctl_elem_value *ucontrol)
  2809. {
  2810. struct aanc_data aanc_info;
  2811. mutex_lock(&routing_lock);
  2812. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2813. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2814. ucontrol->value.integer.value[0]);
  2815. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2816. if (ucontrol->value.integer.value[0] == 0) {
  2817. aanc_info.aanc_active = false;
  2818. aanc_info.aanc_tx_port = 0;
  2819. aanc_info.aanc_rx_port = 0;
  2820. } else {
  2821. aanc_info.aanc_active = true;
  2822. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2823. aanc_info.aanc_tx_port =
  2824. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2825. }
  2826. afe_set_aanc_info(&aanc_info);
  2827. mutex_unlock(&routing_lock);
  2828. return 0;
  2829. };
  2830. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2831. struct snd_ctl_elem_value *ucontrol)
  2832. {
  2833. int idx = 0, shift = 0;
  2834. struct soc_mixer_control *mc =
  2835. (struct soc_mixer_control *)kcontrol->private_value;
  2836. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2837. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2838. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2839. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2840. return -EINVAL;
  2841. }
  2842. if (test_bit(shift,
  2843. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2844. ucontrol->value.integer.value[0] = 1;
  2845. else
  2846. ucontrol->value.integer.value[0] = 0;
  2847. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2848. ucontrol->value.integer.value[0]);
  2849. return 0;
  2850. }
  2851. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2852. struct snd_ctl_elem_value *ucontrol)
  2853. {
  2854. int idx = 0, shift = 0;
  2855. struct soc_mixer_control *mc =
  2856. (struct soc_mixer_control *)kcontrol->private_value;
  2857. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2858. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2859. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2860. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2861. return -EINVAL;
  2862. }
  2863. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2864. __func__, mc->shift, mc->rshift,
  2865. ucontrol->value.integer.value[0], idx, shift);
  2866. if (ucontrol->value.integer.value[0]) {
  2867. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2868. msm_bedais[mc->rshift].port_id);
  2869. set_bit(shift,
  2870. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2871. } else {
  2872. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2873. msm_bedais[mc->rshift].port_id);
  2874. clear_bit(shift,
  2875. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2876. }
  2877. return 1;
  2878. }
  2879. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2880. struct snd_ctl_elem_value *ucontrol)
  2881. {
  2882. u16 fe_id = 0;
  2883. fe_id = ((struct soc_mixer_control *)
  2884. kcontrol->private_value)->shift;
  2885. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2886. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2887. return -EINVAL;
  2888. }
  2889. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2890. return 0;
  2891. }
  2892. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2893. struct snd_ctl_elem_value *ucontrol)
  2894. {
  2895. u16 fe_id = 0;
  2896. fe_id = ((struct soc_mixer_control *)
  2897. kcontrol->private_value)->shift;
  2898. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2899. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2900. return -EINVAL;
  2901. }
  2902. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2903. return 1;
  2904. }
  2905. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2906. struct snd_ctl_elem_value *ucontrol)
  2907. {
  2908. u16 fe_id = 0;
  2909. fe_id = ((struct soc_multi_mixer_control *)
  2910. kcontrol->private_value)->shift;
  2911. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2912. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2913. return -EINVAL;
  2914. }
  2915. ucontrol->value.integer.value[0] =
  2916. channel_mixer[fe_id].output_channel;
  2917. return 0;
  2918. }
  2919. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2920. struct snd_ctl_elem_value *ucontrol)
  2921. {
  2922. u16 fe_id = 0;
  2923. fe_id = ((struct soc_multi_mixer_control *)
  2924. kcontrol->private_value)->shift;
  2925. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2926. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2927. return -EINVAL;
  2928. }
  2929. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2930. fe_id,
  2931. (unsigned int)(ucontrol->value.integer.value[0]));
  2932. channel_mixer[fe_id].output_channel =
  2933. (unsigned int)(ucontrol->value.integer.value[0]);
  2934. return 1;
  2935. }
  2936. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2937. /* If new backend is added, need update this array */
  2938. static const char *const be_name[] = {
  2939. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2940. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2941. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2942. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2943. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2944. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2945. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2946. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2947. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2948. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2949. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2950. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2951. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2952. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2953. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2954. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2955. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2956. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2957. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2958. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2959. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2960. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2961. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2962. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2963. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2964. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2965. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2966. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2967. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2968. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2969. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2970. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2971. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2972. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2973. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2974. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  2975. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  2976. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  2977. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  2978. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  2979. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  2980. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  2981. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  2982. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2983. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2984. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2985. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2986. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2987. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  2988. };
  2989. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2990. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2991. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2992. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2993. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2994. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2995. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2996. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2997. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2998. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2999. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3000. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3001. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3002. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3003. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3004. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3005. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3006. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3007. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3008. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3009. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3010. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3011. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3012. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3013. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3014. unsigned int channels,
  3015. unsigned int items, const char *const names[])
  3016. {
  3017. if (uinfo->value.enumerated.item >= items)
  3018. uinfo->value.enumerated.item = items - 1;
  3019. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3020. sizeof(uinfo->value.enumerated.name),
  3021. "ALSA: too long item name '%s'\n",
  3022. names[uinfo->value.enumerated.item]);
  3023. strlcpy(uinfo->value.enumerated.name,
  3024. names[uinfo->value.enumerated.item],
  3025. sizeof(uinfo->value.enumerated.name));
  3026. return 0;
  3027. }
  3028. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3029. struct snd_ctl_elem_info *uinfo)
  3030. {
  3031. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3032. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3033. uinfo->count = 1;
  3034. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3035. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3036. return 0;
  3037. }
  3038. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3039. struct snd_ctl_elem_value *ucontrol)
  3040. {
  3041. u16 fe_id = 0;
  3042. fe_id = ((struct soc_enum *)
  3043. kcontrol->private_value)->shift_l;
  3044. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3045. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3046. return -EINVAL;
  3047. }
  3048. pr_debug("%s: FE %d %s\n", __func__,
  3049. fe_id,
  3050. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3051. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3052. return 0;
  3053. }
  3054. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3055. struct snd_ctl_elem_value *ucontrol)
  3056. {
  3057. u16 fe_id = 0;
  3058. fe_id = ((struct soc_enum *)
  3059. kcontrol->private_value)->shift_l;
  3060. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3061. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3062. return -EINVAL;
  3063. }
  3064. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3065. pr_debug("%s: %s FE %d\n", __func__,
  3066. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3067. fe_id);
  3068. return 0;
  3069. }
  3070. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3071. struct snd_ctl_elem_info *uinfo)
  3072. {
  3073. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3074. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3075. uinfo->count = 1;
  3076. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3077. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3078. return 0;
  3079. }
  3080. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3081. struct snd_ctl_elem_value *ucontrol)
  3082. {
  3083. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3084. u16 fe_id = 0, in_ch = 0;
  3085. fe_id = e->shift_l;
  3086. in_ch = e->shift_r;
  3087. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3088. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3089. return -EINVAL;
  3090. }
  3091. if (in_ch >= ADM_MAX_CHANNELS) {
  3092. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3093. return -EINVAL;
  3094. }
  3095. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3096. return 1;
  3097. }
  3098. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3099. struct snd_ctl_elem_value *ucontrol)
  3100. {
  3101. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3102. u16 fe_id = 0, in_ch = 0;
  3103. fe_id = e->shift_l;
  3104. in_ch = e->shift_r;
  3105. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3106. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3107. return -EINVAL;
  3108. }
  3109. if (in_ch >= ADM_MAX_CHANNELS) {
  3110. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3111. return -EINVAL;
  3112. }
  3113. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3114. return 1;
  3115. }
  3116. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3117. struct snd_ctl_elem_info *uinfo)
  3118. {
  3119. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3120. uinfo->count = ADM_MAX_CHANNELS;
  3121. uinfo->value.integer.min = 0;
  3122. uinfo->value.integer.max = WEIGHT_0_DB;
  3123. return 0;
  3124. }
  3125. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3126. struct snd_ctl_elem_value *ucontrol)
  3127. {
  3128. u16 fe_id = 0, out_ch = 0;
  3129. int i, weight;
  3130. fe_id = ((struct soc_multi_mixer_control *)
  3131. kcontrol->private_value)->shift;
  3132. out_ch = ((struct soc_multi_mixer_control *)
  3133. kcontrol->private_value)->rshift;
  3134. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3135. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3136. return -EINVAL;
  3137. }
  3138. if (out_ch >= ADM_MAX_CHANNELS) {
  3139. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3140. return -EINVAL;
  3141. }
  3142. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3143. __func__, fe_id,
  3144. ucontrol->value.integer.value[0],
  3145. ucontrol->value.integer.value[1],
  3146. ucontrol->value.integer.value[2],
  3147. ucontrol->value.integer.value[3],
  3148. ucontrol->value.integer.value[4],
  3149. ucontrol->value.integer.value[5],
  3150. ucontrol->value.integer.value[6],
  3151. ucontrol->value.integer.value[7]);
  3152. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3153. weight = ucontrol->value.integer.value[i];
  3154. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3155. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3156. __func__, fe_id, out_ch, i,
  3157. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3158. }
  3159. return 0;
  3160. }
  3161. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3162. struct snd_ctl_elem_value *ucontrol)
  3163. {
  3164. u16 fe_id = 0, out_ch = 0;
  3165. int i;
  3166. fe_id = ((struct soc_multi_mixer_control *)
  3167. kcontrol->private_value)->shift;
  3168. out_ch = ((struct soc_multi_mixer_control *)
  3169. kcontrol->private_value)->rshift;
  3170. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3171. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3172. return -EINVAL;
  3173. }
  3174. if (out_ch >= ADM_MAX_CHANNELS) {
  3175. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3176. return -EINVAL;
  3177. }
  3178. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3179. ucontrol->value.integer.value[i] =
  3180. channel_mixer[fe_id].channel_weight[out_ch][i];
  3181. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3182. __func__, fe_id,
  3183. ucontrol->value.integer.value[0],
  3184. ucontrol->value.integer.value[1],
  3185. ucontrol->value.integer.value[2],
  3186. ucontrol->value.integer.value[3],
  3187. ucontrol->value.integer.value[4],
  3188. ucontrol->value.integer.value[5],
  3189. ucontrol->value.integer.value[6],
  3190. ucontrol->value.integer.value[7]);
  3191. return 0;
  3192. }
  3193. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3194. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3195. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3196. msm_pcm_get_channel_rule_index,
  3197. msm_pcm_put_channel_rule_index),
  3198. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3199. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3200. msm_pcm_get_channel_rule_index,
  3201. msm_pcm_put_channel_rule_index),
  3202. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3203. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3204. msm_pcm_get_channel_rule_index,
  3205. msm_pcm_put_channel_rule_index),
  3206. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3207. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3208. msm_pcm_get_channel_rule_index,
  3209. msm_pcm_put_channel_rule_index),
  3210. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3211. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3212. msm_pcm_get_channel_rule_index,
  3213. msm_pcm_put_channel_rule_index),
  3214. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3215. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3216. msm_pcm_get_channel_rule_index,
  3217. msm_pcm_put_channel_rule_index),
  3218. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3219. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3220. msm_pcm_get_out_chs,
  3221. msm_pcm_put_out_chs),
  3222. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3223. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3224. msm_pcm_get_out_chs,
  3225. msm_pcm_put_out_chs),
  3226. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3227. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3228. msm_pcm_get_out_chs,
  3229. msm_pcm_put_out_chs),
  3230. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3231. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3232. msm_pcm_get_out_chs,
  3233. msm_pcm_put_out_chs),
  3234. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3235. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3236. msm_pcm_get_out_chs,
  3237. msm_pcm_put_out_chs),
  3238. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3239. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3240. msm_pcm_get_out_chs,
  3241. msm_pcm_put_out_chs),
  3242. {
  3243. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3244. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3245. .name = "MultiMedia1 Channel Mixer",
  3246. .info = msm_pcm_channel_mixer_info,
  3247. .get = msm_pcm_channel_mixer_get,
  3248. .put = msm_pcm_channel_mixer_put,
  3249. .private_value = (unsigned long)&(mm1_channel_mux)
  3250. },
  3251. {
  3252. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3253. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3254. .name = "MultiMedia2 Channel Mixer",
  3255. .info = msm_pcm_channel_mixer_info,
  3256. .get = msm_pcm_channel_mixer_get,
  3257. .put = msm_pcm_channel_mixer_put,
  3258. .private_value = (unsigned long)&(mm2_channel_mux)
  3259. },
  3260. {
  3261. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3262. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3263. .name = "MultiMedia3 Channel Mixer",
  3264. .info = msm_pcm_channel_mixer_info,
  3265. .get = msm_pcm_channel_mixer_get,
  3266. .put = msm_pcm_channel_mixer_put,
  3267. .private_value = (unsigned long)&(mm3_channel_mux)
  3268. },
  3269. {
  3270. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3271. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3272. .name = "MultiMedia4 Channel Mixer",
  3273. .info = msm_pcm_channel_mixer_info,
  3274. .get = msm_pcm_channel_mixer_get,
  3275. .put = msm_pcm_channel_mixer_put,
  3276. .private_value = (unsigned long)&(mm4_channel_mux)
  3277. },
  3278. {
  3279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3281. .name = "MultiMedia1 Output Channel1",
  3282. .info = msm_pcm_channel_weight_info,
  3283. .get = msm_pcm_channel_weight_get,
  3284. .put = msm_pcm_channel_weight_put,
  3285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3287. },
  3288. {
  3289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3291. .name = "MultiMedia1 Output Channel2",
  3292. .info = msm_pcm_channel_weight_info,
  3293. .get = msm_pcm_channel_weight_get,
  3294. .put = msm_pcm_channel_weight_put,
  3295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3297. },
  3298. {
  3299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3301. .name = "MultiMedia1 Output Channel3",
  3302. .info = msm_pcm_channel_weight_info,
  3303. .get = msm_pcm_channel_weight_get,
  3304. .put = msm_pcm_channel_weight_put,
  3305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3307. },
  3308. {
  3309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3311. .name = "MultiMedia1 Output Channel4",
  3312. .info = msm_pcm_channel_weight_info,
  3313. .get = msm_pcm_channel_weight_get,
  3314. .put = msm_pcm_channel_weight_put,
  3315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3317. },
  3318. {
  3319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3321. .name = "MultiMedia1 Output Channel5",
  3322. .info = msm_pcm_channel_weight_info,
  3323. .get = msm_pcm_channel_weight_get,
  3324. .put = msm_pcm_channel_weight_put,
  3325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3327. },
  3328. {
  3329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3331. .name = "MultiMedia1 Output Channel6",
  3332. .info = msm_pcm_channel_weight_info,
  3333. .get = msm_pcm_channel_weight_get,
  3334. .put = msm_pcm_channel_weight_put,
  3335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3337. },
  3338. {
  3339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3341. .name = "MultiMedia1 Output Channel7",
  3342. .info = msm_pcm_channel_weight_info,
  3343. .get = msm_pcm_channel_weight_get,
  3344. .put = msm_pcm_channel_weight_put,
  3345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3347. },
  3348. {
  3349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3351. .name = "MultiMedia1 Output Channel8",
  3352. .info = msm_pcm_channel_weight_info,
  3353. .get = msm_pcm_channel_weight_get,
  3354. .put = msm_pcm_channel_weight_put,
  3355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3357. },
  3358. {
  3359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3361. .name = "MultiMedia2 Output Channel1",
  3362. .info = msm_pcm_channel_weight_info,
  3363. .get = msm_pcm_channel_weight_get,
  3364. .put = msm_pcm_channel_weight_put,
  3365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3366. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3367. },
  3368. {
  3369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3371. .name = "MultiMedia2 Output Channel2",
  3372. .info = msm_pcm_channel_weight_info,
  3373. .get = msm_pcm_channel_weight_get,
  3374. .put = msm_pcm_channel_weight_put,
  3375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3376. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3377. },
  3378. {
  3379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3381. .name = "MultiMedia2 Output Channel3",
  3382. .info = msm_pcm_channel_weight_info,
  3383. .get = msm_pcm_channel_weight_get,
  3384. .put = msm_pcm_channel_weight_put,
  3385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3386. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3387. },
  3388. {
  3389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3391. .name = "MultiMedia3 Output Channel1",
  3392. .info = msm_pcm_channel_weight_info,
  3393. .get = msm_pcm_channel_weight_get,
  3394. .put = msm_pcm_channel_weight_put,
  3395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3396. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3397. },
  3398. {
  3399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3401. .name = "MultiMedia3 Output Channel2",
  3402. .info = msm_pcm_channel_weight_info,
  3403. .get = msm_pcm_channel_weight_get,
  3404. .put = msm_pcm_channel_weight_put,
  3405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3406. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3407. },
  3408. {
  3409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3411. .name = "MultiMedia1 Channel1",
  3412. .info = msm_pcm_channel_input_be_info,
  3413. .get = msm_pcm_channel_input_be_get,
  3414. .put = msm_pcm_channel_input_be_put,
  3415. .private_value = (unsigned long)&(mm1_ch1_enum)
  3416. },
  3417. {
  3418. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3419. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3420. .name = "MultiMedia1 Channel2",
  3421. .info = msm_pcm_channel_input_be_info,
  3422. .get = msm_pcm_channel_input_be_get,
  3423. .put = msm_pcm_channel_input_be_put,
  3424. .private_value = (unsigned long)&(mm1_ch2_enum)
  3425. },
  3426. {
  3427. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3428. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3429. .name = "MultiMedia1 Channel3",
  3430. .info = msm_pcm_channel_input_be_info,
  3431. .get = msm_pcm_channel_input_be_get,
  3432. .put = msm_pcm_channel_input_be_put,
  3433. .private_value = (unsigned long)&(mm1_ch3_enum)
  3434. },
  3435. {
  3436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3438. .name = "MultiMedia1 Channel4",
  3439. .info = msm_pcm_channel_input_be_info,
  3440. .get = msm_pcm_channel_input_be_get,
  3441. .put = msm_pcm_channel_input_be_put,
  3442. .private_value = (unsigned long)&(mm1_ch4_enum)
  3443. },
  3444. {
  3445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3447. .name = "MultiMedia1 Channel5",
  3448. .info = msm_pcm_channel_input_be_info,
  3449. .get = msm_pcm_channel_input_be_get,
  3450. .put = msm_pcm_channel_input_be_put,
  3451. .private_value = (unsigned long)&(mm1_ch5_enum)
  3452. },
  3453. {
  3454. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3455. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3456. .name = "MultiMedia1 Channel6",
  3457. .info = msm_pcm_channel_input_be_info,
  3458. .get = msm_pcm_channel_input_be_get,
  3459. .put = msm_pcm_channel_input_be_put,
  3460. .private_value = (unsigned long)&(mm1_ch6_enum)
  3461. },
  3462. {
  3463. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3464. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3465. .name = "MultiMedia1 Channel7",
  3466. .info = msm_pcm_channel_input_be_info,
  3467. .get = msm_pcm_channel_input_be_get,
  3468. .put = msm_pcm_channel_input_be_put,
  3469. .private_value = (unsigned long)&(mm1_ch7_enum)
  3470. },
  3471. {
  3472. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3473. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3474. .name = "MultiMedia1 Channel8",
  3475. .info = msm_pcm_channel_input_be_info,
  3476. .get = msm_pcm_channel_input_be_get,
  3477. .put = msm_pcm_channel_input_be_put,
  3478. .private_value = (unsigned long)&(mm1_ch8_enum)
  3479. },
  3480. };
  3481. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3482. struct snd_ctl_elem_value *ucontrol)
  3483. {
  3484. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3485. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3486. ucontrol->value.integer.value[0]);
  3487. return 0;
  3488. }
  3489. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3490. struct snd_ctl_elem_value *ucontrol)
  3491. {
  3492. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3493. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3494. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3495. return 0;
  3496. }
  3497. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3498. struct snd_ctl_elem_value *ucontrol)
  3499. {
  3500. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3501. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3502. ucontrol->value.integer.value[0]);
  3503. return 0;
  3504. }
  3505. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3506. struct snd_ctl_elem_value *ucontrol)
  3507. {
  3508. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3509. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3510. __func__, msm_ec_ref_ch_downmixed);
  3511. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3512. return 0;
  3513. }
  3514. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3515. struct snd_ctl_elem_value *ucontrol)
  3516. {
  3517. int i = 0, ret = 0;
  3518. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3519. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3520. kcontrol->private_value)->shift;
  3521. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3522. weights[i] = ucontrol->value.integer.value[i];
  3523. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3524. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3525. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3526. return ret;
  3527. }
  3528. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3529. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3530. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3531. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3532. struct snd_ctl_elem_value *ucontrol)
  3533. {
  3534. switch (msm_ec_ref_bit_format) {
  3535. case SNDRV_PCM_FORMAT_S24_LE:
  3536. ucontrol->value.integer.value[0] = 2;
  3537. break;
  3538. case SNDRV_PCM_FORMAT_S16_LE:
  3539. ucontrol->value.integer.value[0] = 1;
  3540. break;
  3541. default:
  3542. ucontrol->value.integer.value[0] = 0;
  3543. break;
  3544. }
  3545. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3546. __func__, ucontrol->value.integer.value[0]);
  3547. return 0;
  3548. }
  3549. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3550. struct snd_ctl_elem_value *ucontrol)
  3551. {
  3552. u16 bit_width = 0;
  3553. switch (ucontrol->value.integer.value[0]) {
  3554. case 2:
  3555. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3556. break;
  3557. case 1:
  3558. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3559. break;
  3560. default:
  3561. msm_ec_ref_bit_format = 0;
  3562. break;
  3563. }
  3564. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3565. bit_width = 16;
  3566. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3567. bit_width = 24;
  3568. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3569. __func__, msm_ec_ref_bit_format);
  3570. adm_ec_ref_rx_bit_width(bit_width);
  3571. return 0;
  3572. }
  3573. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3574. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3575. struct snd_ctl_elem_value *ucontrol)
  3576. {
  3577. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3578. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3579. __func__, ucontrol->value.integer.value[0]);
  3580. return 0;
  3581. }
  3582. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3583. struct snd_ctl_elem_value *ucontrol)
  3584. {
  3585. switch (ucontrol->value.integer.value[0]) {
  3586. case 0:
  3587. msm_ec_ref_sampling_rate = 0;
  3588. break;
  3589. case 1:
  3590. msm_ec_ref_sampling_rate = 8000;
  3591. break;
  3592. case 2:
  3593. msm_ec_ref_sampling_rate = 16000;
  3594. break;
  3595. case 3:
  3596. msm_ec_ref_sampling_rate = 32000;
  3597. break;
  3598. case 4:
  3599. msm_ec_ref_sampling_rate = 44100;
  3600. break;
  3601. case 5:
  3602. msm_ec_ref_sampling_rate = 48000;
  3603. break;
  3604. case 6:
  3605. msm_ec_ref_sampling_rate = 96000;
  3606. break;
  3607. case 7:
  3608. msm_ec_ref_sampling_rate = 192000;
  3609. break;
  3610. case 8:
  3611. msm_ec_ref_sampling_rate = 384000;
  3612. break;
  3613. default:
  3614. msm_ec_ref_sampling_rate = 48000;
  3615. break;
  3616. }
  3617. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3618. __func__, msm_ec_ref_sampling_rate);
  3619. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3620. return 0;
  3621. }
  3622. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3623. "32000", "44100", "48000", "96000", "192000", "384000"};
  3624. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3625. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  3626. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3627. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3628. };
  3629. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3630. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3631. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3632. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3633. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3634. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3635. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3636. SOC_ENUM_EXT("EC Reference Downmixed Channels", msm_route_ec_ref_params_enum[0],
  3637. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  3638. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM, 0,
  3639. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3640. NULL, msm_ec_ref_chmixer_weights_put),
  3641. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM, 1,
  3642. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3643. NULL, msm_ec_ref_chmixer_weights_put),
  3644. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM, 2,
  3645. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3646. NULL, msm_ec_ref_chmixer_weights_put),
  3647. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM, 3,
  3648. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3649. NULL, msm_ec_ref_chmixer_weights_put),
  3650. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM, 4,
  3651. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3652. NULL, msm_ec_ref_chmixer_weights_put),
  3653. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM, 5,
  3654. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3655. NULL, msm_ec_ref_chmixer_weights_put),
  3656. };
  3657. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3658. struct snd_ctl_elem_value *ucontrol)
  3659. {
  3660. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3661. mutex_lock(&routing_lock);
  3662. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3663. mutex_unlock(&routing_lock);
  3664. return 0;
  3665. }
  3666. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3667. struct snd_ctl_elem_value *ucontrol)
  3668. {
  3669. int ec_ref_port_id;
  3670. struct snd_soc_dapm_widget *widget =
  3671. snd_soc_dapm_kcontrol_widget(kcontrol);
  3672. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3673. struct snd_soc_dapm_update *update = NULL;
  3674. mutex_lock(&routing_lock);
  3675. switch (ucontrol->value.integer.value[0]) {
  3676. case 0:
  3677. msm_route_ec_ref_rx = 0;
  3678. ec_ref_port_id = AFE_PORT_INVALID;
  3679. break;
  3680. case 1:
  3681. msm_route_ec_ref_rx = 1;
  3682. ec_ref_port_id = SLIMBUS_0_RX;
  3683. break;
  3684. case 2:
  3685. msm_route_ec_ref_rx = 2;
  3686. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3687. break;
  3688. case 3:
  3689. msm_route_ec_ref_rx = 3;
  3690. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3691. break;
  3692. case 4:
  3693. msm_route_ec_ref_rx = 4;
  3694. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3695. break;
  3696. case 5:
  3697. msm_route_ec_ref_rx = 5;
  3698. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3699. break;
  3700. case 6:
  3701. msm_route_ec_ref_rx = 6;
  3702. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3703. break;
  3704. case 7:
  3705. msm_route_ec_ref_rx = 7;
  3706. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3707. break;
  3708. case 9:
  3709. msm_route_ec_ref_rx = 9;
  3710. ec_ref_port_id = SLIMBUS_5_RX;
  3711. break;
  3712. case 10:
  3713. msm_route_ec_ref_rx = 10;
  3714. ec_ref_port_id = SLIMBUS_1_TX;
  3715. break;
  3716. case 11:
  3717. msm_route_ec_ref_rx = 11;
  3718. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3719. break;
  3720. case 12:
  3721. msm_route_ec_ref_rx = 12;
  3722. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3723. break;
  3724. case 13:
  3725. msm_route_ec_ref_rx = 13;
  3726. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3727. break;
  3728. case 14:
  3729. msm_route_ec_ref_rx = 14;
  3730. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3731. break;
  3732. case 15:
  3733. msm_route_ec_ref_rx = 15;
  3734. ec_ref_port_id = SLIMBUS_6_RX;
  3735. break;
  3736. case 16:
  3737. msm_route_ec_ref_rx = 16;
  3738. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3739. break;
  3740. case 17:
  3741. msm_route_ec_ref_rx = 17;
  3742. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3743. break;
  3744. case 18:
  3745. msm_route_ec_ref_rx = 18;
  3746. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3747. break;
  3748. case 19:
  3749. msm_route_ec_ref_rx = 19;
  3750. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3751. break;
  3752. case 20:
  3753. msm_route_ec_ref_rx = 20;
  3754. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3755. break;
  3756. case 21:
  3757. msm_route_ec_ref_rx = 21;
  3758. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3759. break;
  3760. case 22:
  3761. msm_route_ec_ref_rx = 22;
  3762. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3763. break;
  3764. case 23:
  3765. msm_route_ec_ref_rx = 23;
  3766. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3767. break;
  3768. case 24:
  3769. msm_route_ec_ref_rx = 24;
  3770. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3771. break;
  3772. case 25:
  3773. msm_route_ec_ref_rx = 25;
  3774. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3775. break;
  3776. case 26:
  3777. msm_route_ec_ref_rx = 26;
  3778. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3779. break;
  3780. case 27:
  3781. msm_route_ec_ref_rx = 27;
  3782. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3783. break;
  3784. case 28:
  3785. msm_route_ec_ref_rx = 28;
  3786. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3787. break;
  3788. case 29:
  3789. msm_route_ec_ref_rx = 29;
  3790. ec_ref_port_id = SLIMBUS_7_RX;
  3791. break;
  3792. case 30:
  3793. msm_route_ec_ref_rx = 30;
  3794. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3795. break;
  3796. case 31:
  3797. msm_route_ec_ref_rx = 31;
  3798. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3799. break;
  3800. case 32:
  3801. msm_route_ec_ref_rx = 32;
  3802. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3803. break;
  3804. case 33:
  3805. msm_route_ec_ref_rx = 33;
  3806. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3807. break;
  3808. case 34:
  3809. msm_route_ec_ref_rx = 34;
  3810. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3811. break;
  3812. case 35:
  3813. msm_route_ec_ref_rx = 35;
  3814. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3815. break;
  3816. case 36:
  3817. msm_route_ec_ref_rx = 36;
  3818. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3819. break;
  3820. default:
  3821. msm_route_ec_ref_rx = 0; /* NONE */
  3822. pr_err("%s EC ref rx %ld not valid\n",
  3823. __func__, ucontrol->value.integer.value[0]);
  3824. ec_ref_port_id = AFE_PORT_INVALID;
  3825. break;
  3826. }
  3827. msm_ec_ref_port_id = ec_ref_port_id;
  3828. adm_ec_ref_rx_id(ec_ref_port_id);
  3829. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3830. __func__, msm_route_ec_ref_rx);
  3831. mutex_unlock(&routing_lock);
  3832. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3833. msm_route_ec_ref_rx, e, update);
  3834. return 0;
  3835. }
  3836. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3837. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3838. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3839. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3840. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3841. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3842. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3843. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3844. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3845. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3846. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3847. };
  3848. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3849. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3850. };
  3851. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3852. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3853. msm_route_ec_ref_rx_enum[0],
  3854. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3855. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3856. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3857. msm_route_ec_ref_rx_enum[0],
  3858. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3859. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3860. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3861. msm_route_ec_ref_rx_enum[0],
  3862. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3863. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3864. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3865. msm_route_ec_ref_rx_enum[0],
  3866. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3867. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3868. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3869. msm_route_ec_ref_rx_enum[0],
  3870. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3871. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3872. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3873. msm_route_ec_ref_rx_enum[0],
  3874. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3875. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3876. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3877. msm_route_ec_ref_rx_enum[0],
  3878. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3879. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3880. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3881. msm_route_ec_ref_rx_enum[0],
  3882. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3883. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3884. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3885. msm_route_ec_ref_rx_enum[0],
  3886. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3887. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3888. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3889. msm_route_ec_ref_rx_enum[0],
  3890. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3891. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3892. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3893. msm_route_ec_ref_rx_enum[0],
  3894. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3895. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3896. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3897. msm_route_ec_ref_rx_enum[0],
  3898. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3899. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3900. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3901. msm_route_ec_ref_rx_enum[0],
  3902. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3903. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3904. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3905. msm_route_ec_ref_rx_enum[0],
  3906. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3907. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3908. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3909. msm_route_ec_ref_rx_enum[0],
  3910. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3911. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3912. struct snd_ctl_elem_value *ucontrol)
  3913. {
  3914. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3915. mutex_lock(&routing_lock);
  3916. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3917. mutex_unlock(&routing_lock);
  3918. return 0;
  3919. }
  3920. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3921. struct snd_ctl_elem_value *ucontrol)
  3922. {
  3923. struct snd_soc_dapm_widget *widget =
  3924. snd_soc_dapm_kcontrol_widget(kcontrol);
  3925. int mux = ucontrol->value.enumerated.item[0];
  3926. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3927. int ret = 1;
  3928. bool state = true;
  3929. uint16_t ext_ec_ref_port_id;
  3930. struct snd_soc_dapm_update *update = NULL;
  3931. if (mux >= e->items) {
  3932. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3933. return -EINVAL;
  3934. }
  3935. mutex_lock(&routing_lock);
  3936. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3937. switch (msm_route_ext_ec_ref) {
  3938. case EXT_EC_REF_PRI_MI2S_TX:
  3939. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3940. break;
  3941. case EXT_EC_REF_SEC_MI2S_TX:
  3942. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3943. break;
  3944. case EXT_EC_REF_TERT_MI2S_TX:
  3945. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3946. break;
  3947. case EXT_EC_REF_QUAT_MI2S_TX:
  3948. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3949. break;
  3950. case EXT_EC_REF_QUIN_MI2S_TX:
  3951. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3952. break;
  3953. case EXT_EC_REF_SLIM_1_TX:
  3954. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3955. break;
  3956. case EXT_EC_REF_SEC_TDM_TX:
  3957. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3958. break;
  3959. case EXT_EC_REF_NONE:
  3960. default:
  3961. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3962. state = false;
  3963. break;
  3964. }
  3965. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3966. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3967. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3968. mutex_unlock(&routing_lock);
  3969. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3970. update);
  3971. } else {
  3972. ret = -EINVAL;
  3973. mutex_unlock(&routing_lock);
  3974. }
  3975. return ret;
  3976. }
  3977. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3978. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3979. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3980. "SLIM_1_TX", "SEC_TDM_TX"};
  3981. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3982. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3983. };
  3984. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3985. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3986. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3987. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3988. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_PRI_I2S_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_PRI_I2S_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_PRI_I2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_PRI_I2S_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_PRI_I2S_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_PRI_I2S_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_PRI_I2S_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_PRI_I2S_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_PRI_I2S_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_PRI_I2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4029. MSM_BACKEND_DAI_PRI_I2S_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4033. MSM_BACKEND_DAI_PRI_I2S_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4037. MSM_BACKEND_DAI_PRI_I2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4041. MSM_BACKEND_DAI_PRI_I2S_RX,
  4042. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4043. msm_routing_put_audio_mixer),
  4044. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4045. MSM_BACKEND_DAI_PRI_I2S_RX,
  4046. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4047. msm_routing_put_audio_mixer),
  4048. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4049. MSM_BACKEND_DAI_PRI_I2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4053. MSM_BACKEND_DAI_PRI_I2S_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4057. MSM_BACKEND_DAI_PRI_I2S_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4061. MSM_BACKEND_DAI_PRI_I2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4065. MSM_BACKEND_DAI_PRI_I2S_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4069. MSM_BACKEND_DAI_PRI_I2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4073. MSM_BACKEND_DAI_PRI_I2S_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. };
  4077. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4078. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SEC_I2S_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SEC_I2S_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SEC_I2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SEC_I2S_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SEC_I2S_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SEC_I2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SEC_I2S_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SEC_I2S_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4111. MSM_BACKEND_DAI_SEC_I2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4115. MSM_BACKEND_DAI_SEC_I2S_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4119. MSM_BACKEND_DAI_SEC_I2S_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4123. MSM_BACKEND_DAI_SEC_I2S_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4127. MSM_BACKEND_DAI_SEC_I2S_RX,
  4128. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4129. msm_routing_put_audio_mixer),
  4130. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4131. MSM_BACKEND_DAI_SEC_I2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4135. MSM_BACKEND_DAI_SEC_I2S_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4139. MSM_BACKEND_DAI_SEC_I2S_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4143. MSM_BACKEND_DAI_SEC_I2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4147. MSM_BACKEND_DAI_SEC_I2S_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4151. MSM_BACKEND_DAI_SEC_I2S_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_SEC_I2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_SEC_I2S_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4163. MSM_BACKEND_DAI_SEC_I2S_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. };
  4167. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4168. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4197. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4201. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4205. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4209. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4210. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4211. msm_routing_put_audio_mixer),
  4212. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4213. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4214. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4215. msm_routing_put_audio_mixer),
  4216. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4217. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4221. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4225. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. };
  4257. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4258. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4283. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4287. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4291. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4295. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4297. msm_routing_put_audio_mixer),
  4298. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4299. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4303. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4304. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4305. msm_routing_put_audio_mixer),
  4306. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4307. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4311. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4315. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4316. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4317. msm_routing_put_audio_mixer),
  4318. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. };
  4347. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4348. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4373. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4377. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4381. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4383. msm_routing_put_audio_mixer),
  4384. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4385. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4387. msm_routing_put_audio_mixer),
  4388. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4389. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. };
  4417. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4418. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4451. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4455. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. };
  4507. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4508. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4529. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4530. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4531. msm_routing_put_audio_mixer),
  4532. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4533. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4537. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4541. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. };
  4597. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4598. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_MI2S_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4619. MSM_BACKEND_DAI_MI2S_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4623. MSM_BACKEND_DAI_MI2S_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4627. MSM_BACKEND_DAI_MI2S_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. };
  4687. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4688. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. };
  4777. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4778. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4859. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4863. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. };
  4867. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4868. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4925. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4929. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4933. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4937. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4941. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4945. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. };
  4949. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4950. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. };
  4955. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4956. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. };
  5045. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5046. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5103. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5107. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. };
  5135. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5136. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5137. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5141. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5145. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5149. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5169. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5173. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5174. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5175. msm_routing_put_audio_mixer),
  5176. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. };
  5201. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5202. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5203. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5211. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5215. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5219. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5223. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5225. msm_routing_put_audio_mixer),
  5226. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. };
  5267. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5268. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_HDMI_RX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_HDMI_RX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_HDMI_RX,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5281. MSM_BACKEND_DAI_HDMI_RX,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5285. MSM_BACKEND_DAI_HDMI_RX,
  5286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5287. msm_routing_put_audio_mixer),
  5288. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5289. MSM_BACKEND_DAI_HDMI_RX,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5293. MSM_BACKEND_DAI_HDMI_RX,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_HDMI_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_HDMI_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_HDMI_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_HDMI_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_HDMI_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_HDMI_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_HDMI_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_HDMI_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_HDMI_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_HDMI_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_HDMI_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_HDMI_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_HDMI_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_HDMI_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_HDMI_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. };
  5357. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5358. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. };
  5427. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5428. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. };
  5497. /* incall music delivery mixer */
  5498. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. };
  5516. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. };
  5534. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. };
  5552. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5553. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. };
  5622. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. };
  5692. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. };
  5762. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5763. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. };
  5832. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5833. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. };
  5902. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. };
  5972. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. };
  6042. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6043. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. };
  6112. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. };
  6182. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6183. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. };
  6252. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6253. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. };
  6322. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. };
  6392. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  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_SLIMBUS_9_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. };
  6462. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6463. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_USB_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_USB_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_USB_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_USB_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_USB_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_USB_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_USB_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_USB_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_USB_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_USB_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_USB_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_USB_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_USB_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_USB_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_USB_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_USB_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_USB_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. };
  6532. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. };
  6622. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. };
  6692. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_INT_FM_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_INT_FM_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_INT_FM_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_INT_FM_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_INT_FM_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_INT_FM_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_INT_FM_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_INT_FM_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_INT_FM_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_INT_FM_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_INT_FM_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_INT_FM_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_INT_FM_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_INT_FM_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_INT_FM_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_INT_FM_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_INT_FM_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_INT_FM_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_INT_FM_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_INT_FM_RX,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_INT_FM_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_INT_FM_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. };
  6782. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_AFE_PCM_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_AFE_PCM_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_AFE_PCM_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_AFE_PCM_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_AFE_PCM_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_AFE_PCM_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_AFE_PCM_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_AFE_PCM_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_AFE_PCM_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_AFE_PCM_RX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_AFE_PCM_RX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_AFE_PCM_RX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_AFE_PCM_RX,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_AFE_PCM_RX,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_AFE_PCM_RX,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_AFE_PCM_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_AFE_PCM_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_AFE_PCM_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_AFE_PCM_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_AFE_PCM_RX,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_AFE_PCM_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_AFE_PCM_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. };
  6872. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6873. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_AUXPCM_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_AUXPCM_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_AUXPCM_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_AUXPCM_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_AUXPCM_RX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_AUXPCM_RX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_AUXPCM_RX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_AUXPCM_RX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_AUXPCM_RX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_AUXPCM_RX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_AUXPCM_RX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_AUXPCM_RX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_AUXPCM_RX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_AUXPCM_RX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_AUXPCM_RX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_AUXPCM_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_AUXPCM_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_AUXPCM_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_AUXPCM_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_AUXPCM_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_AUXPCM_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_AUXPCM_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_AUXPCM_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. };
  6966. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. };
  7060. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7061. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. };
  7130. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. };
  7200. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7201. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. };
  7270. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. };
  7340. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7341. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. };
  7410. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7411. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. };
  7480. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7481. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. };
  7550. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7551. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. };
  7616. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7617. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. };
  7686. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7687. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. };
  7756. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7757. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. };
  7826. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. };
  7896. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. };
  7962. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7963. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. };
  8032. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8033. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. };
  8098. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. };
  8168. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. };
  8238. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8239. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. };
  8308. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8309. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. };
  8378. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8379. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. };
  8452. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8453. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. };
  8518. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8519. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. };
  8592. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8593. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. };
  8666. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. };
  8740. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. };
  8814. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8815. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. };
  8880. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. };
  8954. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8955. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. };
  9028. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  9029. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. };
  9102. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9103. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_I2S_TX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_MI2S_TX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_AUXPCM_TX,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_INT_FM_TX,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_AFE_PCM_TX,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_USB_TX,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. };
  9352. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9353. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_INT_FM_TX,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_MI2S_TX,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_USB_TX,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. };
  9554. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9555. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_INT_FM_TX,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_MI2S_TX,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_AFE_PCM_TX,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_AUXPCM_TX,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. };
  9756. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9757. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_INT_FM_TX,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_AFE_PCM_TX,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_USB_TX,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. };
  9954. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9955. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_INT_FM_TX,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_MI2S_TX,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_AFE_PCM_TX,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_AUXPCM_TX,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_USB_TX,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. };
  10180. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  10181. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_INT_FM_TX,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_AUXPCM_TX,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_USB_TX,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10352. msm_routing_put_audio_mixer),
  10353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. };
  10382. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10383. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_INT_FM_TX,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_AFE_PCM_TX,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_USB_TX,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. };
  10592. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_INT_FM_TX,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_AFE_PCM_TX,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_USB_TX,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_MI2S_TX,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_AUXPCM_TX,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10764. msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10769. msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10774. msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10779. msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10784. msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10789. msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. };
  10808. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10809. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_INT_FM_TX,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_AFE_PCM_TX,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. };
  10954. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10955. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_INT_FM_TX,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_AFE_PCM_TX,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_USB_TX,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_MI2S_TX,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_AUXPCM_TX,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11090. msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11095. msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11100. msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11105. msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11110. msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11115. msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. };
  11134. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  11135. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_INT_FM_TX,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_AFE_PCM_TX,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11206. msm_routing_get_audio_mixer,
  11207. msm_routing_put_audio_mixer),
  11208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11210. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11211. msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11216. msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11221. msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11226. msm_routing_get_audio_mixer,
  11227. msm_routing_put_audio_mixer),
  11228. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11230. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11231. msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. };
  11246. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  11247. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_INT_FM_TX,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_AFE_PCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11322. msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11327. msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11332. msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11337. msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11342. msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11347. msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. };
  11362. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  11363. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_INT_FM_TX,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_AFE_PCM_TX,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11438. msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11443. msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11448. msm_routing_get_audio_mixer,
  11449. msm_routing_put_audio_mixer),
  11450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11452. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11453. msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11458. msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11463. msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. };
  11478. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. };
  11640. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11641. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_AUXPCM_TX,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. };
  11790. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11791. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. };
  11844. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11845. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_INT_FM_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_AFE_PCM_TX,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11920. msm_routing_get_audio_mixer,
  11921. msm_routing_put_audio_mixer),
  11922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11924. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11925. msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11930. msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11935. msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11940. msm_routing_get_audio_mixer,
  11941. msm_routing_put_audio_mixer),
  11942. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11945. msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_INT_FM_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_AFE_PCM_TX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12036. msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12041. msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12046. msm_routing_get_audio_mixer,
  12047. msm_routing_put_audio_mixer),
  12048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12050. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12051. msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12056. msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12061. msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. };
  12076. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  12077. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_PRI_I2S_RX,
  12079. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12080. msm_routing_put_voice_mixer),
  12081. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_PRI_I2S_RX,
  12083. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12084. msm_routing_put_voice_mixer),
  12085. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_PRI_I2S_RX,
  12087. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12088. msm_routing_put_voice_mixer),
  12089. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_PRI_I2S_RX,
  12091. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12092. msm_routing_put_voice_mixer),
  12093. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_PRI_I2S_RX,
  12095. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12096. msm_routing_put_voice_mixer),
  12097. };
  12098. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  12099. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEC_I2S_RX,
  12101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12102. msm_routing_put_voice_mixer),
  12103. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SEC_I2S_RX,
  12105. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12106. msm_routing_put_voice_mixer),
  12107. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SEC_I2S_RX,
  12109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12110. msm_routing_put_voice_mixer),
  12111. };
  12112. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  12113. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12115. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12116. msm_routing_put_voice_mixer),
  12117. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12119. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12120. msm_routing_put_voice_mixer),
  12121. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12123. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12124. msm_routing_put_voice_mixer),
  12125. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12127. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12128. msm_routing_put_voice_mixer),
  12129. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12131. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12132. msm_routing_put_voice_mixer),
  12133. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12135. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12136. msm_routing_put_voice_mixer),
  12137. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12139. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12140. msm_routing_put_voice_mixer),
  12141. };
  12142. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  12143. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12145. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12146. msm_routing_put_voice_mixer),
  12147. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12149. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12150. msm_routing_put_voice_mixer),
  12151. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12153. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12154. msm_routing_put_voice_mixer),
  12155. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12157. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12158. msm_routing_put_voice_mixer),
  12159. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12161. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12162. msm_routing_put_voice_mixer),
  12163. };
  12164. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  12165. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12168. msm_routing_put_voice_mixer),
  12169. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12171. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12172. msm_routing_put_voice_mixer),
  12173. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12175. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12176. msm_routing_put_voice_mixer),
  12177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12180. msm_routing_put_voice_mixer),
  12181. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12183. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12184. msm_routing_put_voice_mixer),
  12185. };
  12186. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  12187. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_USB_RX,
  12189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12190. msm_routing_put_voice_mixer),
  12191. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_USB_RX,
  12193. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12194. msm_routing_put_voice_mixer),
  12195. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_USB_RX,
  12197. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12198. msm_routing_put_voice_mixer),
  12199. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_USB_RX,
  12201. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12202. msm_routing_put_voice_mixer),
  12203. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_USB_RX,
  12205. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12206. msm_routing_put_voice_mixer),
  12207. };
  12208. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  12209. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12211. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12212. msm_routing_put_voice_mixer),
  12213. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12215. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12216. msm_routing_put_voice_mixer),
  12217. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12219. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12220. msm_routing_put_voice_mixer),
  12221. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12223. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12224. msm_routing_put_voice_mixer),
  12225. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12227. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12228. msm_routing_put_voice_mixer),
  12229. };
  12230. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  12231. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12237. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12238. msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12242. msm_routing_put_voice_mixer),
  12243. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12245. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12246. msm_routing_put_voice_mixer),
  12247. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12249. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12250. msm_routing_put_voice_mixer),
  12251. };
  12252. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  12253. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12255. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12256. msm_routing_put_voice_mixer),
  12257. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12259. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12260. msm_routing_put_voice_mixer),
  12261. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12263. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12264. msm_routing_put_voice_mixer),
  12265. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12267. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12268. msm_routing_put_voice_mixer),
  12269. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12271. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12272. msm_routing_put_voice_mixer),
  12273. };
  12274. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  12275. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_MI2S_RX,
  12277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12278. msm_routing_put_voice_mixer),
  12279. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_MI2S_RX,
  12281. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12282. msm_routing_put_voice_mixer),
  12283. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_MI2S_RX,
  12285. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12286. msm_routing_put_voice_mixer),
  12287. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_MI2S_RX,
  12289. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12290. msm_routing_put_voice_mixer),
  12291. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_MI2S_RX,
  12293. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12294. msm_routing_put_voice_mixer),
  12295. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_MI2S_RX,
  12297. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12298. msm_routing_put_voice_mixer),
  12299. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_MI2S_RX,
  12301. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12302. msm_routing_put_voice_mixer),
  12303. };
  12304. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  12305. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12307. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12308. msm_routing_put_voice_mixer),
  12309. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12311. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12312. msm_routing_put_voice_mixer),
  12313. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12315. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12316. msm_routing_put_voice_mixer),
  12317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12320. msm_routing_put_voice_mixer),
  12321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12324. msm_routing_put_voice_mixer),
  12325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12328. msm_routing_put_voice_mixer),
  12329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12332. msm_routing_put_voice_mixer),
  12333. };
  12334. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  12335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12338. msm_routing_put_voice_mixer),
  12339. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12341. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12342. msm_routing_put_voice_mixer),
  12343. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12345. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12346. msm_routing_put_voice_mixer),
  12347. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12349. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12350. msm_routing_put_voice_mixer),
  12351. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12353. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12354. msm_routing_put_voice_mixer),
  12355. };
  12356. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  12357. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12359. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12360. msm_routing_put_voice_mixer),
  12361. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12363. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12364. msm_routing_put_voice_mixer),
  12365. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12367. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12368. msm_routing_put_voice_mixer),
  12369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12372. msm_routing_put_voice_mixer),
  12373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12376. msm_routing_put_voice_mixer),
  12377. };
  12378. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  12379. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12381. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12382. msm_routing_put_voice_mixer),
  12383. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12385. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12386. msm_routing_put_voice_mixer),
  12387. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12389. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12390. msm_routing_put_voice_mixer),
  12391. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12393. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12394. msm_routing_put_voice_mixer),
  12395. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12397. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12398. msm_routing_put_voice_mixer),
  12399. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12401. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12402. msm_routing_put_voice_mixer),
  12403. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12405. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12406. msm_routing_put_voice_mixer),
  12407. };
  12408. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  12409. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12411. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12412. msm_routing_put_voice_mixer),
  12413. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12415. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12416. msm_routing_put_voice_mixer),
  12417. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12419. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12420. msm_routing_put_voice_mixer),
  12421. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12423. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12424. msm_routing_put_voice_mixer),
  12425. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12427. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12428. msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12431. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12432. msm_routing_put_voice_mixer),
  12433. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12435. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12436. msm_routing_put_voice_mixer),
  12437. };
  12438. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  12439. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12441. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12442. msm_routing_put_voice_mixer),
  12443. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12445. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12446. msm_routing_put_voice_stub_mixer),
  12447. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12449. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12450. msm_routing_put_voice_stub_mixer),
  12451. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12453. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12454. msm_routing_put_voice_mixer),
  12455. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12457. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12458. msm_routing_put_voice_mixer),
  12459. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12461. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12462. msm_routing_put_voice_mixer),
  12463. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12465. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12466. msm_routing_put_voice_mixer),
  12467. };
  12468. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  12469. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_AFE_PCM_RX,
  12471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12472. msm_routing_put_voice_mixer),
  12473. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_AFE_PCM_RX,
  12475. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12476. msm_routing_put_voice_mixer),
  12477. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_AFE_PCM_RX,
  12479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12480. msm_routing_put_voice_mixer),
  12481. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_AFE_PCM_RX,
  12483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12484. msm_routing_put_voice_mixer),
  12485. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_AFE_PCM_RX,
  12487. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12488. msm_routing_put_voice_mixer),
  12489. };
  12490. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  12491. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_AUXPCM_RX,
  12493. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12494. msm_routing_put_voice_mixer),
  12495. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_AUXPCM_RX,
  12497. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12498. msm_routing_put_voice_mixer),
  12499. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_AUXPCM_RX,
  12501. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12502. msm_routing_put_voice_mixer),
  12503. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_AUXPCM_RX,
  12505. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12506. msm_routing_put_voice_mixer),
  12507. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_AUXPCM_RX,
  12509. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12510. msm_routing_put_voice_mixer),
  12511. };
  12512. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12513. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12516. msm_routing_put_voice_mixer),
  12517. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12519. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12520. msm_routing_put_voice_mixer),
  12521. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12524. msm_routing_put_voice_mixer),
  12525. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12528. msm_routing_put_voice_mixer),
  12529. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12532. msm_routing_put_voice_mixer),
  12533. };
  12534. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12535. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12537. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12538. msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12541. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12542. msm_routing_put_voice_mixer),
  12543. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12545. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12546. msm_routing_put_voice_mixer),
  12547. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12550. msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12553. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12554. msm_routing_put_voice_mixer),
  12555. };
  12556. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12557. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12560. msm_routing_put_voice_mixer),
  12561. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12563. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12564. msm_routing_put_voice_mixer),
  12565. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12567. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12568. msm_routing_put_voice_mixer),
  12569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12572. msm_routing_put_voice_mixer),
  12573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12576. msm_routing_put_voice_mixer),
  12577. };
  12578. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12579. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12581. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12582. msm_routing_put_voice_mixer),
  12583. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12585. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12586. msm_routing_put_voice_mixer),
  12587. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12590. msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12593. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12594. msm_routing_put_voice_mixer),
  12595. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12597. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12598. msm_routing_put_voice_mixer),
  12599. };
  12600. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12601. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_HDMI_RX,
  12603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12604. msm_routing_put_voice_mixer),
  12605. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_HDMI_RX,
  12607. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12608. msm_routing_put_voice_mixer),
  12609. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_HDMI_RX,
  12611. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12612. msm_routing_put_voice_mixer),
  12613. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_HDMI_RX,
  12615. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12616. msm_routing_put_voice_mixer),
  12617. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_HDMI_RX,
  12619. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12620. msm_routing_put_voice_mixer),
  12621. };
  12622. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12623. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12625. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12626. msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12629. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12630. msm_routing_put_voice_mixer),
  12631. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12634. msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12637. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12638. msm_routing_put_voice_mixer),
  12639. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12641. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12642. msm_routing_put_voice_mixer),
  12643. };
  12644. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12645. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12647. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12648. msm_routing_put_voice_mixer),
  12649. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12651. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12652. msm_routing_put_voice_mixer),
  12653. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12655. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12656. msm_routing_put_voice_mixer),
  12657. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12659. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12660. msm_routing_put_voice_mixer),
  12661. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12663. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12664. msm_routing_put_voice_mixer),
  12665. };
  12666. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12667. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12669. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12670. msm_routing_put_voice_mixer),
  12671. };
  12672. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12673. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12675. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12676. msm_routing_put_voice_mixer),
  12677. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12679. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12680. msm_routing_put_voice_mixer),
  12681. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12683. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12684. msm_routing_put_voice_mixer),
  12685. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12687. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12688. msm_routing_put_voice_mixer),
  12689. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12691. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12692. msm_routing_put_voice_mixer),
  12693. };
  12694. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12695. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12697. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12698. msm_routing_put_voice_mixer),
  12699. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12701. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12702. msm_routing_put_voice_mixer),
  12703. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12705. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12706. msm_routing_put_voice_mixer),
  12707. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12709. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12710. msm_routing_put_voice_mixer),
  12711. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12713. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12714. msm_routing_put_voice_mixer),
  12715. };
  12716. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12717. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12719. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12720. msm_routing_put_voice_mixer),
  12721. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12723. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12724. msm_routing_put_voice_mixer),
  12725. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12727. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12728. msm_routing_put_voice_mixer),
  12729. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12731. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12732. msm_routing_put_voice_mixer),
  12733. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12735. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12736. msm_routing_put_voice_mixer),
  12737. };
  12738. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12739. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12741. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12742. msm_routing_put_voice_mixer),
  12743. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12745. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12746. msm_routing_put_voice_mixer),
  12747. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12749. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12750. msm_routing_put_voice_mixer),
  12751. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12753. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12754. msm_routing_put_voice_mixer),
  12755. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12757. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12758. msm_routing_put_voice_mixer),
  12759. };
  12760. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12761. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12763. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12764. msm_routing_put_voice_mixer),
  12765. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12767. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12768. msm_routing_put_voice_mixer),
  12769. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12771. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12772. msm_routing_put_voice_mixer),
  12773. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12775. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12776. msm_routing_put_voice_mixer),
  12777. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12779. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12780. msm_routing_put_voice_mixer),
  12781. };
  12782. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12783. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12785. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12786. msm_routing_put_voice_mixer),
  12787. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12789. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12790. msm_routing_put_voice_mixer),
  12791. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12793. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12794. msm_routing_put_voice_mixer),
  12795. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12797. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12798. msm_routing_put_voice_mixer),
  12799. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12801. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12802. msm_routing_put_voice_mixer),
  12803. };
  12804. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12805. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12808. msm_routing_put_voice_mixer),
  12809. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12811. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12812. msm_routing_put_voice_mixer),
  12813. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12815. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12816. msm_routing_put_voice_mixer),
  12817. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12819. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12820. msm_routing_put_voice_mixer),
  12821. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12823. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12824. msm_routing_put_voice_mixer),
  12825. };
  12826. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12827. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12829. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12830. msm_routing_put_voice_mixer),
  12831. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12833. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12834. msm_routing_put_voice_mixer),
  12835. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12837. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12838. msm_routing_put_voice_mixer),
  12839. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12841. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12842. msm_routing_put_voice_mixer),
  12843. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12845. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12846. msm_routing_put_voice_mixer),
  12847. };
  12848. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12849. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12851. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12852. msm_routing_put_voice_mixer),
  12853. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12855. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12856. msm_routing_put_voice_mixer),
  12857. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12859. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12860. msm_routing_put_voice_mixer),
  12861. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12863. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12864. msm_routing_put_voice_mixer),
  12865. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12867. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12868. msm_routing_put_voice_mixer),
  12869. };
  12870. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12871. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12873. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12874. msm_routing_put_voice_mixer),
  12875. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12877. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12878. msm_routing_put_voice_mixer),
  12879. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12882. msm_routing_put_voice_mixer),
  12883. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12885. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12886. msm_routing_put_voice_mixer),
  12887. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12889. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12890. msm_routing_put_voice_mixer),
  12891. };
  12892. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  12893. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12895. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12896. msm_routing_put_voice_mixer),
  12897. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12899. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12900. msm_routing_put_voice_stub_mixer),
  12901. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12903. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12904. msm_routing_put_voice_stub_mixer),
  12905. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12907. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12908. msm_routing_put_voice_mixer),
  12909. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12911. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12912. msm_routing_put_voice_mixer),
  12913. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12915. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12916. msm_routing_put_voice_mixer),
  12917. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12919. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12920. msm_routing_put_voice_mixer),
  12921. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12923. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12924. msm_routing_put_voice_mixer),
  12925. };
  12926. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  12927. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12929. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12930. msm_routing_put_voice_mixer),
  12931. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12933. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12934. msm_routing_put_voice_stub_mixer),
  12935. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12937. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12938. msm_routing_put_voice_stub_mixer),
  12939. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12941. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12942. msm_routing_put_voice_mixer),
  12943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12946. msm_routing_put_voice_mixer),
  12947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12950. msm_routing_put_voice_mixer),
  12951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12954. msm_routing_put_voice_mixer),
  12955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12958. msm_routing_put_voice_mixer),
  12959. };
  12960. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  12961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12964. msm_routing_put_voice_mixer),
  12965. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12967. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12968. msm_routing_put_voice_stub_mixer),
  12969. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12971. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12972. msm_routing_put_voice_stub_mixer),
  12973. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12975. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12976. msm_routing_put_voice_mixer),
  12977. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12979. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12980. msm_routing_put_voice_mixer),
  12981. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12983. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12984. msm_routing_put_voice_mixer),
  12985. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12987. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12988. msm_routing_put_voice_mixer),
  12989. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12991. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12992. msm_routing_put_voice_mixer),
  12993. };
  12994. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  12995. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12997. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12998. msm_routing_put_voice_mixer),
  12999. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13001. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13002. msm_routing_put_voice_stub_mixer),
  13003. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13005. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13006. msm_routing_put_voice_stub_mixer),
  13007. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13009. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13010. msm_routing_put_voice_mixer),
  13011. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13013. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13014. msm_routing_put_voice_mixer),
  13015. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13017. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13018. msm_routing_put_voice_mixer),
  13019. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13021. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13022. msm_routing_put_voice_mixer),
  13023. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13025. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13026. msm_routing_put_voice_mixer),
  13027. };
  13028. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  13029. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_EXTPROC_RX,
  13031. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13032. msm_routing_put_voice_mixer),
  13033. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_EXTPROC_RX,
  13035. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13036. msm_routing_put_voice_mixer),
  13037. };
  13038. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  13039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13042. msm_routing_put_voice_mixer),
  13043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13046. msm_routing_put_voice_mixer),
  13047. };
  13048. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  13049. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13051. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13052. msm_routing_put_voice_mixer),
  13053. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13055. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13056. msm_routing_put_voice_mixer),
  13057. };
  13058. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  13059. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_PRI_I2S_TX,
  13061. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13062. msm_routing_put_voice_mixer),
  13063. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_MI2S_TX,
  13065. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13066. msm_routing_put_voice_mixer),
  13067. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13069. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13070. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13072. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13073. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13075. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13076. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13078. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13079. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13081. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13082. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13084. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13085. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13087. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13088. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13089. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13090. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13091. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13093. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13094. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13096. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13097. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13100. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13102. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13103. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13105. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13106. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_USB_TX,
  13108. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13109. msm_routing_put_voice_mixer),
  13110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  13112. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13113. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  13115. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  13118. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  13121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13122. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  13124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  13127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  13130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  13133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  13136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  13139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13140. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13143. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13145. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13146. SOC_DOUBLE_EXT("PRI_TDM_TX3_MMode1", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  13148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13149. };
  13150. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  13151. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_PRI_I2S_TX,
  13153. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13154. msm_routing_put_voice_mixer),
  13155. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_MI2S_TX,
  13157. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13158. msm_routing_put_voice_mixer),
  13159. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13161. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13162. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13164. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13165. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  13167. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13168. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  13170. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13171. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13173. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13174. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13176. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13177. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13179. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13180. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13182. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13183. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  13185. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13186. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  13188. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13189. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  13191. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13192. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13194. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13195. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13197. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13198. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  13200. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  13203. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13204. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  13206. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13207. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  13209. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13210. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  13212. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  13215. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  13218. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13219. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  13221. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  13224. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  13227. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13228. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  13230. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13231. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  13233. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13234. SOC_DOUBLE_EXT("PRI_TDM_TX3_MMode2", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  13236. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13237. };
  13238. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  13239. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_PRI_I2S_TX,
  13241. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13242. msm_routing_put_voice_mixer),
  13243. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_MI2S_TX,
  13245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13246. msm_routing_put_voice_mixer),
  13247. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13249. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13250. msm_routing_put_voice_mixer),
  13251. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13253. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13254. msm_routing_put_voice_mixer),
  13255. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_AFE_PCM_TX,
  13257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13258. msm_routing_put_voice_mixer),
  13259. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_AUXPCM_TX,
  13261. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13262. msm_routing_put_voice_mixer),
  13263. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13265. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13266. msm_routing_put_voice_mixer),
  13267. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13269. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13270. msm_routing_put_voice_mixer),
  13271. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13274. msm_routing_put_voice_mixer),
  13275. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13278. msm_routing_put_voice_mixer),
  13279. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13281. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13282. msm_routing_put_voice_mixer),
  13283. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13285. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13286. msm_routing_put_voice_mixer),
  13287. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13289. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13290. msm_routing_put_voice_mixer),
  13291. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13293. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13294. msm_routing_put_voice_mixer),
  13295. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13297. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13298. msm_routing_put_voice_mixer),
  13299. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_USB_TX,
  13301. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13302. msm_routing_put_voice_mixer),
  13303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  13305. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  13308. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13309. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  13311. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  13314. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13315. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  13317. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  13319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  13320. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13321. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  13323. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  13326. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  13329. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13330. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13331. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13332. msm_routing_put_voice_mixer),
  13333. };
  13334. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  13335. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_EXTPROC_TX,
  13337. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13338. msm_routing_put_voice_stub_mixer),
  13339. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13341. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13342. msm_routing_put_voice_stub_mixer),
  13343. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13345. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13346. msm_routing_put_voice_stub_mixer),
  13347. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13349. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13350. msm_routing_put_voice_stub_mixer),
  13351. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_MI2S_TX,
  13353. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13354. msm_routing_put_voice_stub_mixer),
  13355. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13357. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13358. msm_routing_put_voice_stub_mixer),
  13359. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13361. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13362. msm_routing_put_voice_stub_mixer),
  13363. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13365. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13366. msm_routing_put_voice_stub_mixer),
  13367. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13369. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13370. msm_routing_put_voice_stub_mixer),
  13371. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_AUXPCM_TX,
  13373. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13374. msm_routing_put_voice_stub_mixer),
  13375. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13377. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13378. msm_routing_put_voice_stub_mixer),
  13379. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13381. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13382. msm_routing_put_voice_stub_mixer),
  13383. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13385. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13386. msm_routing_put_voice_stub_mixer),
  13387. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13389. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13390. msm_routing_put_voice_stub_mixer),
  13391. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13393. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13394. msm_routing_put_voice_stub_mixer),
  13395. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13397. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13398. msm_routing_put_voice_stub_mixer),
  13399. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_AFE_PCM_TX,
  13401. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13402. msm_routing_put_voice_stub_mixer),
  13403. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13405. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13406. msm_routing_put_voice_stub_mixer),
  13407. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13409. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13410. msm_routing_put_voice_stub_mixer),
  13411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  13413. 1, 0, msm_routing_get_voice_stub_mixer,
  13414. msm_routing_put_voice_stub_mixer),
  13415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  13417. 1, 0, msm_routing_get_voice_stub_mixer,
  13418. msm_routing_put_voice_stub_mixer),
  13419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  13421. 1, 0, msm_routing_get_voice_stub_mixer,
  13422. msm_routing_put_voice_stub_mixer),
  13423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  13425. 1, 0, msm_routing_get_voice_stub_mixer,
  13426. msm_routing_put_voice_stub_mixer),
  13427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  13429. 1, 0, msm_routing_get_voice_stub_mixer,
  13430. msm_routing_put_voice_stub_mixer),
  13431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  13433. 1, 0, msm_routing_get_voice_stub_mixer,
  13434. msm_routing_put_voice_stub_mixer),
  13435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  13437. 1, 0, msm_routing_get_voice_stub_mixer,
  13438. msm_routing_put_voice_stub_mixer),
  13439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  13441. 1, 0, msm_routing_get_voice_stub_mixer,
  13442. msm_routing_put_voice_stub_mixer),
  13443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  13445. 1, 0, msm_routing_get_voice_stub_mixer,
  13446. msm_routing_put_voice_stub_mixer),
  13447. };
  13448. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  13449. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_EXTPROC_TX,
  13451. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13452. msm_routing_put_voice_stub_mixer),
  13453. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13455. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13456. msm_routing_put_voice_stub_mixer),
  13457. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13459. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13460. msm_routing_put_voice_stub_mixer),
  13461. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_AUXPCM_TX,
  13463. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13464. msm_routing_put_voice_stub_mixer),
  13465. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13467. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13468. msm_routing_put_voice_stub_mixer),
  13469. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13471. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13472. msm_routing_put_voice_stub_mixer),
  13473. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13475. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13476. msm_routing_put_voice_stub_mixer),
  13477. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13479. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13480. msm_routing_put_voice_stub_mixer),
  13481. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13483. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13484. msm_routing_put_voice_stub_mixer),
  13485. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13487. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13488. msm_routing_put_voice_stub_mixer),
  13489. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_AFE_PCM_TX,
  13491. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13492. msm_routing_put_voice_stub_mixer),
  13493. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13495. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13496. msm_routing_put_voice_stub_mixer),
  13497. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13499. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13500. msm_routing_put_voice_stub_mixer),
  13501. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13503. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13504. msm_routing_put_voice_stub_mixer),
  13505. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13507. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13508. msm_routing_put_voice_stub_mixer),
  13509. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13511. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13512. msm_routing_put_voice_stub_mixer),
  13513. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  13515. 1, 0, msm_routing_get_voice_stub_mixer,
  13516. msm_routing_put_voice_stub_mixer),
  13517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  13519. 1, 0, msm_routing_get_voice_stub_mixer,
  13520. msm_routing_put_voice_stub_mixer),
  13521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  13523. 1, 0, msm_routing_get_voice_stub_mixer,
  13524. msm_routing_put_voice_stub_mixer),
  13525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  13527. 1, 0, msm_routing_get_voice_stub_mixer,
  13528. msm_routing_put_voice_stub_mixer),
  13529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  13531. 1, 0, msm_routing_get_voice_stub_mixer,
  13532. msm_routing_put_voice_stub_mixer),
  13533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  13535. 1, 0, msm_routing_get_voice_stub_mixer,
  13536. msm_routing_put_voice_stub_mixer),
  13537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  13539. 1, 0, msm_routing_get_voice_stub_mixer,
  13540. msm_routing_put_voice_stub_mixer),
  13541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  13543. 1, 0, msm_routing_get_voice_stub_mixer,
  13544. msm_routing_put_voice_stub_mixer),
  13545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  13547. 1, 0, msm_routing_get_voice_stub_mixer,
  13548. msm_routing_put_voice_stub_mixer),
  13549. };
  13550. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  13551. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_EXTPROC_TX,
  13553. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13554. msm_routing_put_voice_stub_mixer),
  13555. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13557. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13558. msm_routing_put_voice_stub_mixer),
  13559. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13561. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13562. msm_routing_put_voice_stub_mixer),
  13563. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_AUXPCM_TX,
  13565. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13566. msm_routing_put_voice_stub_mixer),
  13567. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13569. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13570. msm_routing_put_voice_stub_mixer),
  13571. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13573. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13574. msm_routing_put_voice_stub_mixer),
  13575. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13577. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13578. msm_routing_put_voice_stub_mixer),
  13579. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13581. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13582. msm_routing_put_voice_stub_mixer),
  13583. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13585. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13586. msm_routing_put_voice_stub_mixer),
  13587. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13589. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13590. msm_routing_put_voice_stub_mixer),
  13591. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_AFE_PCM_TX,
  13593. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13594. msm_routing_put_voice_stub_mixer),
  13595. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13597. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13598. msm_routing_put_voice_stub_mixer),
  13599. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13601. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13602. msm_routing_put_voice_stub_mixer),
  13603. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13605. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13606. msm_routing_put_voice_stub_mixer),
  13607. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13609. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13610. msm_routing_put_voice_stub_mixer),
  13611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13613. 1, 0, msm_routing_get_voice_stub_mixer,
  13614. msm_routing_put_voice_stub_mixer),
  13615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13617. 1, 0, msm_routing_get_voice_stub_mixer,
  13618. msm_routing_put_voice_stub_mixer),
  13619. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13621. 1, 0, msm_routing_get_voice_stub_mixer,
  13622. msm_routing_put_voice_stub_mixer),
  13623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13625. 1, 0, msm_routing_get_voice_stub_mixer,
  13626. msm_routing_put_voice_stub_mixer),
  13627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13629. 1, 0, msm_routing_get_voice_stub_mixer,
  13630. msm_routing_put_voice_stub_mixer),
  13631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13633. 1, 0, msm_routing_get_voice_stub_mixer,
  13634. msm_routing_put_voice_stub_mixer),
  13635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  13637. 1, 0, msm_routing_get_voice_stub_mixer,
  13638. msm_routing_put_voice_stub_mixer),
  13639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  13641. 1, 0, msm_routing_get_voice_stub_mixer,
  13642. msm_routing_put_voice_stub_mixer),
  13643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  13645. 1, 0, msm_routing_get_voice_stub_mixer,
  13646. msm_routing_put_voice_stub_mixer),
  13647. };
  13648. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  13649. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_PRI_I2S_TX,
  13651. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13652. msm_routing_put_voice_mixer),
  13653. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13655. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13656. msm_routing_put_voice_mixer),
  13657. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13659. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  13660. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13661. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_AFE_PCM_TX,
  13663. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13664. msm_routing_put_voice_mixer),
  13665. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_AUXPCM_TX,
  13667. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13668. msm_routing_put_voice_mixer),
  13669. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13671. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13672. msm_routing_put_voice_mixer),
  13673. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13675. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13676. msm_routing_put_voice_mixer),
  13677. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13679. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13680. msm_routing_put_voice_mixer),
  13681. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13683. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13684. msm_routing_put_voice_mixer),
  13685. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_MI2S_TX,
  13687. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13688. msm_routing_put_voice_mixer),
  13689. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13691. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13692. msm_routing_put_voice_mixer),
  13693. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13695. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13696. msm_routing_put_voice_mixer),
  13697. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13699. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13700. msm_routing_put_voice_mixer),
  13701. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13703. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13704. msm_routing_put_voice_mixer),
  13705. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13707. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13708. msm_routing_put_voice_mixer),
  13709. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_USB_TX,
  13711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13712. msm_routing_put_voice_mixer),
  13713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13715. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13716. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13718. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13721. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13724. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13727. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13730. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13733. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13736. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13739. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13740. };
  13741. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13742. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13744. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13745. msm_routing_put_port_mixer),
  13746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13749. msm_routing_put_port_mixer),
  13750. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13752. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13753. msm_routing_put_port_mixer),
  13754. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13756. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13760. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13761. msm_routing_put_port_mixer),
  13762. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13764. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13765. msm_routing_put_port_mixer),
  13766. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13768. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13769. msm_routing_put_port_mixer),
  13770. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13772. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13773. msm_routing_put_port_mixer),
  13774. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13776. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13780. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13781. msm_routing_put_port_mixer),
  13782. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13784. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13785. msm_routing_put_port_mixer),
  13786. };
  13787. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13788. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13790. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13791. msm_routing_put_port_mixer),
  13792. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13794. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13795. msm_routing_put_port_mixer),
  13796. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13798. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13799. msm_routing_put_port_mixer),
  13800. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13802. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13803. msm_routing_put_port_mixer),
  13804. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13806. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13807. msm_routing_put_port_mixer),
  13808. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13810. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13811. msm_routing_put_port_mixer),
  13812. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13814. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13815. msm_routing_put_port_mixer),
  13816. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13818. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13819. msm_routing_put_port_mixer),
  13820. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13822. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13823. msm_routing_put_port_mixer),
  13824. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13826. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13827. msm_routing_put_port_mixer),
  13828. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13830. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13831. msm_routing_put_port_mixer),
  13832. };
  13833. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13834. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13837. msm_routing_put_port_mixer),
  13838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13841. msm_routing_put_port_mixer),
  13842. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13844. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13845. msm_routing_put_port_mixer),
  13846. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13848. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. };
  13851. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13855. msm_routing_put_port_mixer),
  13856. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13858. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13862. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13863. msm_routing_put_port_mixer),
  13864. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13866. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13867. msm_routing_put_port_mixer),
  13868. };
  13869. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13870. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13872. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13873. msm_routing_put_port_mixer),
  13874. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13876. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13877. msm_routing_put_port_mixer),
  13878. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13880. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13881. msm_routing_put_port_mixer),
  13882. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13884. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13885. msm_routing_put_port_mixer),
  13886. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13888. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13892. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13893. msm_routing_put_port_mixer),
  13894. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13896. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13897. msm_routing_put_port_mixer),
  13898. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13900. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13901. msm_routing_put_port_mixer),
  13902. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13904. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13905. msm_routing_put_port_mixer),
  13906. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13908. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13909. msm_routing_put_port_mixer),
  13910. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13912. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13913. msm_routing_put_port_mixer),
  13914. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13916. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13917. msm_routing_put_port_mixer),
  13918. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13920. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13921. msm_routing_put_port_mixer),
  13922. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13925. msm_routing_put_port_mixer),
  13926. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13928. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13929. msm_routing_put_port_mixer),
  13930. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13932. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13933. msm_routing_put_port_mixer),
  13934. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13936. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13937. msm_routing_put_port_mixer),
  13938. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13940. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13944. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13945. msm_routing_put_port_mixer),
  13946. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13948. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13949. msm_routing_put_port_mixer),
  13950. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13952. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13953. msm_routing_put_port_mixer),
  13954. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13956. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13957. msm_routing_put_port_mixer),
  13958. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13960. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. };
  13963. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13964. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_AUXPCM_RX,
  13966. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13967. msm_routing_put_port_mixer),
  13968. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_AUXPCM_RX,
  13970. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_AUXPCM_RX,
  13974. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13975. msm_routing_put_port_mixer),
  13976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_AUXPCM_RX,
  13978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13979. msm_routing_put_port_mixer),
  13980. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_AUXPCM_RX,
  13982. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13983. msm_routing_put_port_mixer),
  13984. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_AUXPCM_RX,
  13986. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13987. msm_routing_put_port_mixer),
  13988. };
  13989. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13990. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13992. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13993. msm_routing_put_port_mixer),
  13994. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13996. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14001. msm_routing_put_port_mixer),
  14002. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14004. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14005. msm_routing_put_port_mixer),
  14006. };
  14007. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  14008. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14010. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14011. msm_routing_put_port_mixer),
  14012. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14014. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14015. msm_routing_put_port_mixer),
  14016. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14017. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14018. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14019. msm_routing_put_port_mixer),
  14020. };
  14021. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  14022. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14024. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14025. msm_routing_put_port_mixer),
  14026. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14028. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14029. msm_routing_put_port_mixer),
  14030. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14032. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. };
  14035. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  14036. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14038. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14039. msm_routing_put_port_mixer),
  14040. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14042. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14046. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14047. msm_routing_put_port_mixer),
  14048. };
  14049. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  14050. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14052. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14056. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  14057. msm_routing_put_port_mixer),
  14058. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14060. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14061. msm_routing_put_port_mixer),
  14062. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14064. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14065. msm_routing_put_port_mixer),
  14066. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14068. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14069. msm_routing_put_port_mixer),
  14070. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14072. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. };
  14075. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  14076. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  14077. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14078. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  14079. msm_routing_put_port_mixer),
  14080. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14082. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14086. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  14087. msm_routing_put_port_mixer),
  14088. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14090. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  14091. msm_routing_put_port_mixer),
  14092. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14094. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  14095. msm_routing_put_port_mixer),
  14096. };
  14097. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  14098. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14100. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14101. msm_routing_put_port_mixer),
  14102. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14104. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14105. msm_routing_put_port_mixer),
  14106. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14108. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14109. msm_routing_put_port_mixer),
  14110. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14112. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14113. msm_routing_put_port_mixer),
  14114. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14116. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14117. msm_routing_put_port_mixer),
  14118. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14120. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14121. msm_routing_put_port_mixer),
  14122. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14124. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14125. msm_routing_put_port_mixer),
  14126. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14128. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14129. msm_routing_put_port_mixer),
  14130. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14132. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14133. msm_routing_put_port_mixer),
  14134. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14136. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14137. msm_routing_put_port_mixer),
  14138. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14140. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14141. msm_routing_put_port_mixer),
  14142. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14144. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14148. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14149. msm_routing_put_port_mixer),
  14150. };
  14151. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  14152. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14153. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14154. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14158. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14159. msm_routing_put_port_mixer),
  14160. };
  14161. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  14162. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_AFE_PCM_RX,
  14164. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_AFE_PCM_RX,
  14168. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14169. msm_routing_put_port_mixer),
  14170. };
  14171. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  14172. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_HDMI_RX,
  14174. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. };
  14177. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  14178. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14180. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14181. msm_routing_put_port_mixer),
  14182. };
  14183. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  14184. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14186. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14187. msm_routing_put_port_mixer),
  14188. };
  14189. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  14190. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_SEC_I2S_RX,
  14192. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14193. msm_routing_put_port_mixer),
  14194. };
  14195. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  14196. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_MI2S_RX,
  14198. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14199. msm_routing_put_port_mixer),
  14200. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_MI2S_RX,
  14202. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14203. msm_routing_put_port_mixer),
  14204. };
  14205. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  14206. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14208. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14209. msm_routing_put_port_mixer),
  14210. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14213. msm_routing_put_port_mixer),
  14214. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14215. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14216. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14217. msm_routing_put_port_mixer),
  14218. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14220. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14221. msm_routing_put_port_mixer),
  14222. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14223. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14224. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14225. msm_routing_put_port_mixer),
  14226. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14227. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14228. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14229. msm_routing_put_port_mixer),
  14230. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14232. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14233. msm_routing_put_port_mixer),
  14234. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14236. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14240. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14241. msm_routing_put_port_mixer),
  14242. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14244. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14245. msm_routing_put_port_mixer),
  14246. };
  14247. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  14248. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_USB_RX,
  14250. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  14251. msm_routing_put_port_mixer),
  14252. };
  14253. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  14254. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14256. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14260. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14261. msm_routing_put_port_mixer),
  14262. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14264. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14265. msm_routing_put_port_mixer),
  14266. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14268. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14269. msm_routing_put_port_mixer),
  14270. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14272. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14273. msm_routing_put_port_mixer),
  14274. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14276. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14280. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14281. msm_routing_put_port_mixer),
  14282. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14284. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14285. msm_routing_put_port_mixer),
  14286. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14287. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14288. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14289. msm_routing_put_port_mixer),
  14290. };
  14291. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  14292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14294. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14295. msm_routing_put_port_mixer),
  14296. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14298. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14299. msm_routing_put_port_mixer),
  14300. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14302. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14306. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14307. msm_routing_put_port_mixer),
  14308. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14310. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14311. msm_routing_put_port_mixer),
  14312. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14315. msm_routing_put_port_mixer),
  14316. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14318. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. };
  14321. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  14322. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14324. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14325. msm_routing_get_port_mixer,
  14326. msm_routing_put_port_mixer),
  14327. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14329. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14330. msm_routing_get_port_mixer,
  14331. msm_routing_put_port_mixer),
  14332. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14334. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14335. msm_routing_get_port_mixer,
  14336. msm_routing_put_port_mixer),
  14337. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14339. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14340. msm_routing_get_port_mixer,
  14341. msm_routing_put_port_mixer),
  14342. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14343. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14344. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14345. msm_routing_get_port_mixer,
  14346. msm_routing_put_port_mixer),
  14347. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14349. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14350. msm_routing_get_port_mixer,
  14351. msm_routing_put_port_mixer),
  14352. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14354. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14355. msm_routing_get_port_mixer,
  14356. msm_routing_put_port_mixer),
  14357. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14359. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14360. msm_routing_get_port_mixer,
  14361. msm_routing_put_port_mixer),
  14362. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14364. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14365. msm_routing_get_port_mixer,
  14366. msm_routing_put_port_mixer),
  14367. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14369. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14370. msm_routing_get_port_mixer,
  14371. msm_routing_put_port_mixer),
  14372. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14374. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14375. msm_routing_get_port_mixer,
  14376. msm_routing_put_port_mixer),
  14377. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14379. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14380. msm_routing_get_port_mixer,
  14381. msm_routing_put_port_mixer),
  14382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14384. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14385. msm_routing_get_port_mixer,
  14386. msm_routing_put_port_mixer),
  14387. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14389. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14390. msm_routing_get_port_mixer,
  14391. msm_routing_put_port_mixer),
  14392. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14394. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14395. msm_routing_get_port_mixer,
  14396. msm_routing_put_port_mixer),
  14397. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14399. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14400. msm_routing_get_port_mixer,
  14401. msm_routing_put_port_mixer),
  14402. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14404. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14405. msm_routing_get_port_mixer,
  14406. msm_routing_put_port_mixer),
  14407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14409. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14410. msm_routing_get_port_mixer,
  14411. msm_routing_put_port_mixer),
  14412. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14414. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14415. msm_routing_get_port_mixer,
  14416. msm_routing_put_port_mixer),
  14417. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14419. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14420. msm_routing_get_port_mixer,
  14421. msm_routing_put_port_mixer),
  14422. };
  14423. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  14424. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14426. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14427. msm_routing_get_port_mixer,
  14428. msm_routing_put_port_mixer),
  14429. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14431. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14432. msm_routing_get_port_mixer,
  14433. msm_routing_put_port_mixer),
  14434. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14435. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14437. msm_routing_get_port_mixer,
  14438. msm_routing_put_port_mixer),
  14439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14441. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14442. msm_routing_get_port_mixer,
  14443. msm_routing_put_port_mixer),
  14444. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14446. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14447. msm_routing_get_port_mixer,
  14448. msm_routing_put_port_mixer),
  14449. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14451. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14452. msm_routing_get_port_mixer,
  14453. msm_routing_put_port_mixer),
  14454. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14456. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14457. msm_routing_get_port_mixer,
  14458. msm_routing_put_port_mixer),
  14459. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14460. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14461. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14462. msm_routing_get_port_mixer,
  14463. msm_routing_put_port_mixer),
  14464. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14466. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14467. msm_routing_get_port_mixer,
  14468. msm_routing_put_port_mixer),
  14469. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14471. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14472. msm_routing_get_port_mixer,
  14473. msm_routing_put_port_mixer),
  14474. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14476. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14477. msm_routing_get_port_mixer,
  14478. msm_routing_put_port_mixer),
  14479. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14481. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14482. msm_routing_get_port_mixer,
  14483. msm_routing_put_port_mixer),
  14484. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14486. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14487. msm_routing_get_port_mixer,
  14488. msm_routing_put_port_mixer),
  14489. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14491. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14492. msm_routing_get_port_mixer,
  14493. msm_routing_put_port_mixer),
  14494. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14496. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14497. msm_routing_get_port_mixer,
  14498. msm_routing_put_port_mixer),
  14499. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14501. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14502. msm_routing_get_port_mixer,
  14503. msm_routing_put_port_mixer),
  14504. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14506. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14507. msm_routing_get_port_mixer,
  14508. msm_routing_put_port_mixer),
  14509. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14511. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14512. msm_routing_get_port_mixer,
  14513. msm_routing_put_port_mixer),
  14514. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14516. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14517. msm_routing_get_port_mixer,
  14518. msm_routing_put_port_mixer),
  14519. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14521. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14522. msm_routing_get_port_mixer,
  14523. msm_routing_put_port_mixer),
  14524. };
  14525. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  14526. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14528. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14533. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14538. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14539. msm_routing_get_port_mixer,
  14540. msm_routing_put_port_mixer),
  14541. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14543. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14544. msm_routing_get_port_mixer,
  14545. msm_routing_put_port_mixer),
  14546. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14548. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14553. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14558. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14563. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14568. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14573. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14578. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14583. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14593. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14594. msm_routing_get_port_mixer,
  14595. msm_routing_put_port_mixer),
  14596. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14598. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14599. msm_routing_get_port_mixer,
  14600. msm_routing_put_port_mixer),
  14601. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14603. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14604. msm_routing_get_port_mixer,
  14605. msm_routing_put_port_mixer),
  14606. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14609. msm_routing_get_port_mixer,
  14610. msm_routing_put_port_mixer),
  14611. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14613. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14614. msm_routing_get_port_mixer,
  14615. msm_routing_put_port_mixer),
  14616. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14618. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14619. msm_routing_get_port_mixer,
  14620. msm_routing_put_port_mixer),
  14621. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14623. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14624. msm_routing_get_port_mixer,
  14625. msm_routing_put_port_mixer),
  14626. };
  14627. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  14628. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14630. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14635. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14640. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14641. msm_routing_get_port_mixer,
  14642. msm_routing_put_port_mixer),
  14643. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14645. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14646. msm_routing_get_port_mixer,
  14647. msm_routing_put_port_mixer),
  14648. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14650. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14655. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14660. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14665. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14670. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14675. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14680. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14685. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14690. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14695. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14696. msm_routing_get_port_mixer,
  14697. msm_routing_put_port_mixer),
  14698. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14700. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14701. msm_routing_get_port_mixer,
  14702. msm_routing_put_port_mixer),
  14703. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14705. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14706. msm_routing_get_port_mixer,
  14707. msm_routing_put_port_mixer),
  14708. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14710. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14711. msm_routing_get_port_mixer,
  14712. msm_routing_put_port_mixer),
  14713. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14715. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14716. msm_routing_get_port_mixer,
  14717. msm_routing_put_port_mixer),
  14718. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14720. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14721. msm_routing_get_port_mixer,
  14722. msm_routing_put_port_mixer),
  14723. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14725. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14726. msm_routing_get_port_mixer,
  14727. msm_routing_put_port_mixer),
  14728. };
  14729. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14730. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14732. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14737. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14742. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14743. msm_routing_get_port_mixer,
  14744. msm_routing_put_port_mixer),
  14745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14747. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14748. msm_routing_get_port_mixer,
  14749. msm_routing_put_port_mixer),
  14750. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14752. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14757. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14762. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14767. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14772. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14777. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14782. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14787. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14792. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14797. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14798. msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14802. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14803. msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14807. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14808. msm_routing_get_port_mixer,
  14809. msm_routing_put_port_mixer),
  14810. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14812. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14813. msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14817. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14818. msm_routing_get_port_mixer,
  14819. msm_routing_put_port_mixer),
  14820. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14822. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14823. msm_routing_get_port_mixer,
  14824. msm_routing_put_port_mixer),
  14825. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14827. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14828. msm_routing_get_port_mixer,
  14829. msm_routing_put_port_mixer),
  14830. };
  14831. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14832. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14834. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14839. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14844. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14849. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14854. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14859. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14864. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14869. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14874. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14879. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14884. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14889. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14894. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14899. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14904. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14909. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14914. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14919. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14920. msm_routing_get_port_mixer,
  14921. msm_routing_put_port_mixer),
  14922. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14923. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14924. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14925. msm_routing_get_port_mixer,
  14926. msm_routing_put_port_mixer),
  14927. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14929. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14930. msm_routing_get_port_mixer,
  14931. msm_routing_put_port_mixer),
  14932. };
  14933. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14934. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14936. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14937. msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14941. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14942. msm_routing_get_port_mixer,
  14943. msm_routing_put_port_mixer),
  14944. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14946. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14947. msm_routing_get_port_mixer,
  14948. msm_routing_put_port_mixer),
  14949. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14951. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14952. msm_routing_get_port_mixer,
  14953. msm_routing_put_port_mixer),
  14954. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14956. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14957. msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14961. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14962. msm_routing_get_port_mixer,
  14963. msm_routing_put_port_mixer),
  14964. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14966. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14967. msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14971. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14972. msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14976. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14977. msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14981. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14982. msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14986. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14987. msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14991. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14992. msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14996. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14997. msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15001. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15002. msm_routing_get_port_mixer,
  15003. msm_routing_put_port_mixer),
  15004. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15006. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15007. msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15011. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15012. msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15016. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15017. msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15021. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15022. msm_routing_get_port_mixer,
  15023. msm_routing_put_port_mixer),
  15024. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15025. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15026. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15027. msm_routing_get_port_mixer,
  15028. msm_routing_put_port_mixer),
  15029. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  15031. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15032. msm_routing_get_port_mixer,
  15033. msm_routing_put_port_mixer),
  15034. };
  15035. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  15036. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15038. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15039. msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15043. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15044. msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15048. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15049. msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15053. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15054. msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15058. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15063. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15068. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15069. msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15073. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15074. msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15078. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15079. msm_routing_get_port_mixer,
  15080. msm_routing_put_port_mixer),
  15081. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15083. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15084. msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15088. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15089. msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15093. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15094. msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15098. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15099. msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15103. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15104. msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15108. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15109. msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15113. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15114. msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15118. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15119. msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15123. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15124. msm_routing_get_port_mixer,
  15125. msm_routing_put_port_mixer),
  15126. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15127. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15128. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15129. msm_routing_get_port_mixer,
  15130. msm_routing_put_port_mixer),
  15131. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  15133. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15134. msm_routing_get_port_mixer,
  15135. msm_routing_put_port_mixer),
  15136. };
  15137. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  15138. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  15140. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  15141. msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. };
  15144. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  15145. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15147. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15148. msm_routing_get_port_mixer,
  15149. msm_routing_put_port_mixer),
  15150. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15152. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15153. msm_routing_get_port_mixer,
  15154. msm_routing_put_port_mixer),
  15155. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15157. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15158. msm_routing_get_port_mixer,
  15159. msm_routing_put_port_mixer),
  15160. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15163. msm_routing_get_port_mixer,
  15164. msm_routing_put_port_mixer),
  15165. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15167. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15168. msm_routing_get_port_mixer,
  15169. msm_routing_put_port_mixer),
  15170. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15172. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15173. msm_routing_get_port_mixer,
  15174. msm_routing_put_port_mixer),
  15175. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15177. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15178. msm_routing_get_port_mixer,
  15179. msm_routing_put_port_mixer),
  15180. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15182. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15183. msm_routing_get_port_mixer,
  15184. msm_routing_put_port_mixer),
  15185. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15187. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15188. msm_routing_get_port_mixer,
  15189. msm_routing_put_port_mixer),
  15190. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15192. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15193. msm_routing_get_port_mixer,
  15194. msm_routing_put_port_mixer),
  15195. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15197. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15198. msm_routing_get_port_mixer,
  15199. msm_routing_put_port_mixer),
  15200. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15202. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15203. msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15207. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15208. msm_routing_get_port_mixer,
  15209. msm_routing_put_port_mixer),
  15210. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15212. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15213. msm_routing_get_port_mixer,
  15214. msm_routing_put_port_mixer),
  15215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15217. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15218. msm_routing_get_port_mixer,
  15219. msm_routing_put_port_mixer),
  15220. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15222. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15223. msm_routing_get_port_mixer,
  15224. msm_routing_put_port_mixer),
  15225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15227. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15228. msm_routing_get_port_mixer,
  15229. msm_routing_put_port_mixer),
  15230. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15232. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15233. msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15237. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15238. msm_routing_get_port_mixer,
  15239. msm_routing_put_port_mixer),
  15240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15242. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15243. msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. };
  15246. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  15247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15249. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15250. msm_routing_get_port_mixer,
  15251. msm_routing_put_port_mixer),
  15252. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15254. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15255. msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15259. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15260. msm_routing_get_port_mixer,
  15261. msm_routing_put_port_mixer),
  15262. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15264. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15265. msm_routing_get_port_mixer,
  15266. msm_routing_put_port_mixer),
  15267. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15269. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15270. msm_routing_get_port_mixer,
  15271. msm_routing_put_port_mixer),
  15272. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15274. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15275. msm_routing_get_port_mixer,
  15276. msm_routing_put_port_mixer),
  15277. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15279. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15280. msm_routing_get_port_mixer,
  15281. msm_routing_put_port_mixer),
  15282. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15284. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15285. msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15289. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15290. msm_routing_get_port_mixer,
  15291. msm_routing_put_port_mixer),
  15292. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15294. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15295. msm_routing_get_port_mixer,
  15296. msm_routing_put_port_mixer),
  15297. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15299. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15300. msm_routing_get_port_mixer,
  15301. msm_routing_put_port_mixer),
  15302. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15304. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15305. msm_routing_get_port_mixer,
  15306. msm_routing_put_port_mixer),
  15307. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15309. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15310. msm_routing_get_port_mixer,
  15311. msm_routing_put_port_mixer),
  15312. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15314. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15315. msm_routing_get_port_mixer,
  15316. msm_routing_put_port_mixer),
  15317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15319. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15320. msm_routing_get_port_mixer,
  15321. msm_routing_put_port_mixer),
  15322. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15324. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15325. msm_routing_get_port_mixer,
  15326. msm_routing_put_port_mixer),
  15327. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15329. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15330. msm_routing_get_port_mixer,
  15331. msm_routing_put_port_mixer),
  15332. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15334. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15335. msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15339. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15340. msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15344. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15345. msm_routing_get_port_mixer,
  15346. msm_routing_put_port_mixer),
  15347. };
  15348. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  15349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15351. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15352. msm_routing_get_port_mixer,
  15353. msm_routing_put_port_mixer),
  15354. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15356. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15357. msm_routing_get_port_mixer,
  15358. msm_routing_put_port_mixer),
  15359. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15361. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15362. msm_routing_get_port_mixer,
  15363. msm_routing_put_port_mixer),
  15364. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15366. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15367. msm_routing_get_port_mixer,
  15368. msm_routing_put_port_mixer),
  15369. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15371. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15372. msm_routing_get_port_mixer,
  15373. msm_routing_put_port_mixer),
  15374. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15376. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15377. msm_routing_get_port_mixer,
  15378. msm_routing_put_port_mixer),
  15379. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15381. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15382. msm_routing_get_port_mixer,
  15383. msm_routing_put_port_mixer),
  15384. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15386. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15387. msm_routing_get_port_mixer,
  15388. msm_routing_put_port_mixer),
  15389. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15391. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15392. msm_routing_get_port_mixer,
  15393. msm_routing_put_port_mixer),
  15394. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15396. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15397. msm_routing_get_port_mixer,
  15398. msm_routing_put_port_mixer),
  15399. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15401. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15402. msm_routing_get_port_mixer,
  15403. msm_routing_put_port_mixer),
  15404. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15406. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15407. msm_routing_get_port_mixer,
  15408. msm_routing_put_port_mixer),
  15409. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15411. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15412. msm_routing_get_port_mixer,
  15413. msm_routing_put_port_mixer),
  15414. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15416. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15417. msm_routing_get_port_mixer,
  15418. msm_routing_put_port_mixer),
  15419. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15421. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15422. msm_routing_get_port_mixer,
  15423. msm_routing_put_port_mixer),
  15424. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15426. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15427. msm_routing_get_port_mixer,
  15428. msm_routing_put_port_mixer),
  15429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15431. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15432. msm_routing_get_port_mixer,
  15433. msm_routing_put_port_mixer),
  15434. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15436. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15437. msm_routing_get_port_mixer,
  15438. msm_routing_put_port_mixer),
  15439. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15441. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15446. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15447. msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. };
  15450. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  15451. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15453. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15454. msm_routing_get_port_mixer,
  15455. msm_routing_put_port_mixer),
  15456. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15458. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15459. msm_routing_get_port_mixer,
  15460. msm_routing_put_port_mixer),
  15461. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15463. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15464. msm_routing_get_port_mixer,
  15465. msm_routing_put_port_mixer),
  15466. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15468. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15469. msm_routing_get_port_mixer,
  15470. msm_routing_put_port_mixer),
  15471. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15473. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15474. msm_routing_get_port_mixer,
  15475. msm_routing_put_port_mixer),
  15476. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15478. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15479. msm_routing_get_port_mixer,
  15480. msm_routing_put_port_mixer),
  15481. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15483. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15484. msm_routing_get_port_mixer,
  15485. msm_routing_put_port_mixer),
  15486. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15488. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15489. msm_routing_get_port_mixer,
  15490. msm_routing_put_port_mixer),
  15491. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15493. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15494. msm_routing_get_port_mixer,
  15495. msm_routing_put_port_mixer),
  15496. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15498. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15499. msm_routing_get_port_mixer,
  15500. msm_routing_put_port_mixer),
  15501. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15503. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15504. msm_routing_get_port_mixer,
  15505. msm_routing_put_port_mixer),
  15506. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15508. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15509. msm_routing_get_port_mixer,
  15510. msm_routing_put_port_mixer),
  15511. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15513. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15514. msm_routing_get_port_mixer,
  15515. msm_routing_put_port_mixer),
  15516. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15518. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15519. msm_routing_get_port_mixer,
  15520. msm_routing_put_port_mixer),
  15521. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15523. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15524. msm_routing_get_port_mixer,
  15525. msm_routing_put_port_mixer),
  15526. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15528. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15529. msm_routing_get_port_mixer,
  15530. msm_routing_put_port_mixer),
  15531. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15533. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15534. msm_routing_get_port_mixer,
  15535. msm_routing_put_port_mixer),
  15536. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15538. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15539. msm_routing_get_port_mixer,
  15540. msm_routing_put_port_mixer),
  15541. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15543. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15544. msm_routing_get_port_mixer,
  15545. msm_routing_put_port_mixer),
  15546. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15548. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15549. msm_routing_get_port_mixer,
  15550. msm_routing_put_port_mixer),
  15551. };
  15552. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  15553. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15555. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15556. msm_routing_get_port_mixer,
  15557. msm_routing_put_port_mixer),
  15558. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15560. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15561. msm_routing_get_port_mixer,
  15562. msm_routing_put_port_mixer),
  15563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15565. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15566. msm_routing_get_port_mixer,
  15567. msm_routing_put_port_mixer),
  15568. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15570. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15571. msm_routing_get_port_mixer,
  15572. msm_routing_put_port_mixer),
  15573. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15575. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15576. msm_routing_get_port_mixer,
  15577. msm_routing_put_port_mixer),
  15578. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15580. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15581. msm_routing_get_port_mixer,
  15582. msm_routing_put_port_mixer),
  15583. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15585. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15586. msm_routing_get_port_mixer,
  15587. msm_routing_put_port_mixer),
  15588. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15590. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15591. msm_routing_get_port_mixer,
  15592. msm_routing_put_port_mixer),
  15593. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15594. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15595. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15596. msm_routing_get_port_mixer,
  15597. msm_routing_put_port_mixer),
  15598. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15600. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15601. msm_routing_get_port_mixer,
  15602. msm_routing_put_port_mixer),
  15603. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15605. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15606. msm_routing_get_port_mixer,
  15607. msm_routing_put_port_mixer),
  15608. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15610. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15611. msm_routing_get_port_mixer,
  15612. msm_routing_put_port_mixer),
  15613. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15615. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15616. msm_routing_get_port_mixer,
  15617. msm_routing_put_port_mixer),
  15618. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15620. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15621. msm_routing_get_port_mixer,
  15622. msm_routing_put_port_mixer),
  15623. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15624. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15625. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15626. msm_routing_get_port_mixer,
  15627. msm_routing_put_port_mixer),
  15628. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15630. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15631. msm_routing_get_port_mixer,
  15632. msm_routing_put_port_mixer),
  15633. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15635. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15636. msm_routing_get_port_mixer,
  15637. msm_routing_put_port_mixer),
  15638. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15640. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15641. msm_routing_get_port_mixer,
  15642. msm_routing_put_port_mixer),
  15643. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15645. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15646. msm_routing_get_port_mixer,
  15647. msm_routing_put_port_mixer),
  15648. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15650. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15651. msm_routing_get_port_mixer,
  15652. msm_routing_put_port_mixer),
  15653. };
  15654. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  15655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15657. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15658. msm_routing_get_port_mixer,
  15659. msm_routing_put_port_mixer),
  15660. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15662. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15663. msm_routing_get_port_mixer,
  15664. msm_routing_put_port_mixer),
  15665. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15666. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15667. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15668. msm_routing_get_port_mixer,
  15669. msm_routing_put_port_mixer),
  15670. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15672. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15673. msm_routing_get_port_mixer,
  15674. msm_routing_put_port_mixer),
  15675. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15677. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15678. msm_routing_get_port_mixer,
  15679. msm_routing_put_port_mixer),
  15680. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15682. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15683. msm_routing_get_port_mixer,
  15684. msm_routing_put_port_mixer),
  15685. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15687. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15688. msm_routing_get_port_mixer,
  15689. msm_routing_put_port_mixer),
  15690. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15692. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15693. msm_routing_get_port_mixer,
  15694. msm_routing_put_port_mixer),
  15695. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15697. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15698. msm_routing_get_port_mixer,
  15699. msm_routing_put_port_mixer),
  15700. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15702. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15703. msm_routing_get_port_mixer,
  15704. msm_routing_put_port_mixer),
  15705. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15707. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15708. msm_routing_get_port_mixer,
  15709. msm_routing_put_port_mixer),
  15710. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15712. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15713. msm_routing_get_port_mixer,
  15714. msm_routing_put_port_mixer),
  15715. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15717. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15718. msm_routing_get_port_mixer,
  15719. msm_routing_put_port_mixer),
  15720. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15722. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15723. msm_routing_get_port_mixer,
  15724. msm_routing_put_port_mixer),
  15725. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15726. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15727. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15728. msm_routing_get_port_mixer,
  15729. msm_routing_put_port_mixer),
  15730. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15732. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15733. msm_routing_get_port_mixer,
  15734. msm_routing_put_port_mixer),
  15735. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15737. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15738. msm_routing_get_port_mixer,
  15739. msm_routing_put_port_mixer),
  15740. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15742. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15743. msm_routing_get_port_mixer,
  15744. msm_routing_put_port_mixer),
  15745. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15747. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15748. msm_routing_get_port_mixer,
  15749. msm_routing_put_port_mixer),
  15750. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15752. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15753. msm_routing_get_port_mixer,
  15754. msm_routing_put_port_mixer),
  15755. };
  15756. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15757. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15759. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15760. msm_routing_get_port_mixer,
  15761. msm_routing_put_port_mixer),
  15762. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15764. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15765. msm_routing_get_port_mixer,
  15766. msm_routing_put_port_mixer),
  15767. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15769. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15770. msm_routing_get_port_mixer,
  15771. msm_routing_put_port_mixer),
  15772. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15774. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15775. msm_routing_get_port_mixer,
  15776. msm_routing_put_port_mixer),
  15777. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15779. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15780. msm_routing_get_port_mixer,
  15781. msm_routing_put_port_mixer),
  15782. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15784. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15785. msm_routing_get_port_mixer,
  15786. msm_routing_put_port_mixer),
  15787. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15789. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15790. msm_routing_get_port_mixer,
  15791. msm_routing_put_port_mixer),
  15792. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15794. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15795. msm_routing_get_port_mixer,
  15796. msm_routing_put_port_mixer),
  15797. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15799. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15800. msm_routing_get_port_mixer,
  15801. msm_routing_put_port_mixer),
  15802. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15804. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15805. msm_routing_get_port_mixer,
  15806. msm_routing_put_port_mixer),
  15807. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15809. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15810. msm_routing_get_port_mixer,
  15811. msm_routing_put_port_mixer),
  15812. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15814. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15815. msm_routing_get_port_mixer,
  15816. msm_routing_put_port_mixer),
  15817. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15819. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15820. msm_routing_get_port_mixer,
  15821. msm_routing_put_port_mixer),
  15822. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15824. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15825. msm_routing_get_port_mixer,
  15826. msm_routing_put_port_mixer),
  15827. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15829. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15830. msm_routing_get_port_mixer,
  15831. msm_routing_put_port_mixer),
  15832. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15834. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15835. msm_routing_get_port_mixer,
  15836. msm_routing_put_port_mixer),
  15837. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15839. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15840. msm_routing_get_port_mixer,
  15841. msm_routing_put_port_mixer),
  15842. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15844. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15845. msm_routing_get_port_mixer,
  15846. msm_routing_put_port_mixer),
  15847. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15849. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15850. msm_routing_get_port_mixer,
  15851. msm_routing_put_port_mixer),
  15852. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15854. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15855. msm_routing_get_port_mixer,
  15856. msm_routing_put_port_mixer),
  15857. };
  15858. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15861. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15862. msm_routing_get_port_mixer,
  15863. msm_routing_put_port_mixer),
  15864. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15866. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15867. msm_routing_get_port_mixer,
  15868. msm_routing_put_port_mixer),
  15869. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15872. msm_routing_get_port_mixer,
  15873. msm_routing_put_port_mixer),
  15874. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15876. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15877. msm_routing_get_port_mixer,
  15878. msm_routing_put_port_mixer),
  15879. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15881. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15882. msm_routing_get_port_mixer,
  15883. msm_routing_put_port_mixer),
  15884. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15886. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15887. msm_routing_get_port_mixer,
  15888. msm_routing_put_port_mixer),
  15889. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15891. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15892. msm_routing_get_port_mixer,
  15893. msm_routing_put_port_mixer),
  15894. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15896. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15897. msm_routing_get_port_mixer,
  15898. msm_routing_put_port_mixer),
  15899. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15901. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15902. msm_routing_get_port_mixer,
  15903. msm_routing_put_port_mixer),
  15904. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15906. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15907. msm_routing_get_port_mixer,
  15908. msm_routing_put_port_mixer),
  15909. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15911. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15912. msm_routing_get_port_mixer,
  15913. msm_routing_put_port_mixer),
  15914. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15916. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15917. msm_routing_get_port_mixer,
  15918. msm_routing_put_port_mixer),
  15919. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15921. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15922. msm_routing_get_port_mixer,
  15923. msm_routing_put_port_mixer),
  15924. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15926. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15927. msm_routing_get_port_mixer,
  15928. msm_routing_put_port_mixer),
  15929. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15931. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15932. msm_routing_get_port_mixer,
  15933. msm_routing_put_port_mixer),
  15934. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15936. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15937. msm_routing_get_port_mixer,
  15938. msm_routing_put_port_mixer),
  15939. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15941. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15942. msm_routing_get_port_mixer,
  15943. msm_routing_put_port_mixer),
  15944. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15946. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15947. msm_routing_get_port_mixer,
  15948. msm_routing_put_port_mixer),
  15949. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15950. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15951. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15952. msm_routing_get_port_mixer,
  15953. msm_routing_put_port_mixer),
  15954. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15956. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15957. msm_routing_get_port_mixer,
  15958. msm_routing_put_port_mixer),
  15959. };
  15960. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  15961. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  15963. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  15964. msm_routing_get_port_mixer,
  15965. msm_routing_put_port_mixer),
  15966. };
  15967. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15968. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15971. msm_routing_get_port_mixer,
  15972. msm_routing_put_port_mixer),
  15973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15976. msm_routing_get_port_mixer,
  15977. msm_routing_put_port_mixer),
  15978. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15980. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15981. msm_routing_get_port_mixer,
  15982. msm_routing_put_port_mixer),
  15983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15986. msm_routing_get_port_mixer,
  15987. msm_routing_put_port_mixer),
  15988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15991. msm_routing_get_port_mixer,
  15992. msm_routing_put_port_mixer),
  15993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15995. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15996. msm_routing_get_port_mixer,
  15997. msm_routing_put_port_mixer),
  15998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16001. msm_routing_get_port_mixer,
  16002. msm_routing_put_port_mixer),
  16003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16006. msm_routing_get_port_mixer,
  16007. msm_routing_put_port_mixer),
  16008. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16010. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16011. msm_routing_get_port_mixer,
  16012. msm_routing_put_port_mixer),
  16013. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16015. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16016. msm_routing_get_port_mixer,
  16017. msm_routing_put_port_mixer),
  16018. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16020. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16021. msm_routing_get_port_mixer,
  16022. msm_routing_put_port_mixer),
  16023. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16025. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16026. msm_routing_get_port_mixer,
  16027. msm_routing_put_port_mixer),
  16028. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16030. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16031. msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16035. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16036. msm_routing_get_port_mixer,
  16037. msm_routing_put_port_mixer),
  16038. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16040. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16041. msm_routing_get_port_mixer,
  16042. msm_routing_put_port_mixer),
  16043. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16045. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16046. msm_routing_get_port_mixer,
  16047. msm_routing_put_port_mixer),
  16048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16051. msm_routing_get_port_mixer,
  16052. msm_routing_put_port_mixer),
  16053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16055. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16056. msm_routing_get_port_mixer,
  16057. msm_routing_put_port_mixer),
  16058. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16060. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16061. msm_routing_get_port_mixer,
  16062. msm_routing_put_port_mixer),
  16063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  16065. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16066. msm_routing_get_port_mixer,
  16067. msm_routing_put_port_mixer),
  16068. };
  16069. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  16070. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16072. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16073. msm_routing_get_port_mixer,
  16074. msm_routing_put_port_mixer),
  16075. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16077. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16078. msm_routing_get_port_mixer,
  16079. msm_routing_put_port_mixer),
  16080. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16082. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16083. msm_routing_get_port_mixer,
  16084. msm_routing_put_port_mixer),
  16085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16087. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16088. msm_routing_get_port_mixer,
  16089. msm_routing_put_port_mixer),
  16090. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16092. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16093. msm_routing_get_port_mixer,
  16094. msm_routing_put_port_mixer),
  16095. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16097. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16098. msm_routing_get_port_mixer,
  16099. msm_routing_put_port_mixer),
  16100. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16102. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16103. msm_routing_get_port_mixer,
  16104. msm_routing_put_port_mixer),
  16105. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16107. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16108. msm_routing_get_port_mixer,
  16109. msm_routing_put_port_mixer),
  16110. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16112. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16113. msm_routing_get_port_mixer,
  16114. msm_routing_put_port_mixer),
  16115. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16117. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16118. msm_routing_get_port_mixer,
  16119. msm_routing_put_port_mixer),
  16120. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16122. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16123. msm_routing_get_port_mixer,
  16124. msm_routing_put_port_mixer),
  16125. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16127. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16128. msm_routing_get_port_mixer,
  16129. msm_routing_put_port_mixer),
  16130. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16132. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16133. msm_routing_get_port_mixer,
  16134. msm_routing_put_port_mixer),
  16135. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16137. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16138. msm_routing_get_port_mixer,
  16139. msm_routing_put_port_mixer),
  16140. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16142. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16143. msm_routing_get_port_mixer,
  16144. msm_routing_put_port_mixer),
  16145. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16147. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16148. msm_routing_get_port_mixer,
  16149. msm_routing_put_port_mixer),
  16150. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16152. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16153. msm_routing_get_port_mixer,
  16154. msm_routing_put_port_mixer),
  16155. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16157. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16158. msm_routing_get_port_mixer,
  16159. msm_routing_put_port_mixer),
  16160. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16162. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16163. msm_routing_get_port_mixer,
  16164. msm_routing_put_port_mixer),
  16165. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16166. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  16167. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16168. msm_routing_get_port_mixer,
  16169. msm_routing_put_port_mixer),
  16170. };
  16171. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  16172. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16174. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16175. msm_routing_get_port_mixer,
  16176. msm_routing_put_port_mixer),
  16177. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16179. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16180. msm_routing_get_port_mixer,
  16181. msm_routing_put_port_mixer),
  16182. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16184. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16185. msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16189. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16190. msm_routing_get_port_mixer,
  16191. msm_routing_put_port_mixer),
  16192. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16194. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16195. msm_routing_get_port_mixer,
  16196. msm_routing_put_port_mixer),
  16197. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16199. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16200. msm_routing_get_port_mixer,
  16201. msm_routing_put_port_mixer),
  16202. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16204. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16205. msm_routing_get_port_mixer,
  16206. msm_routing_put_port_mixer),
  16207. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16209. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16210. msm_routing_get_port_mixer,
  16211. msm_routing_put_port_mixer),
  16212. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16214. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16215. msm_routing_get_port_mixer,
  16216. msm_routing_put_port_mixer),
  16217. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16219. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16220. msm_routing_get_port_mixer,
  16221. msm_routing_put_port_mixer),
  16222. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16224. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16225. msm_routing_get_port_mixer,
  16226. msm_routing_put_port_mixer),
  16227. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16229. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16230. msm_routing_get_port_mixer,
  16231. msm_routing_put_port_mixer),
  16232. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16234. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16235. msm_routing_get_port_mixer,
  16236. msm_routing_put_port_mixer),
  16237. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16239. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16240. msm_routing_get_port_mixer,
  16241. msm_routing_put_port_mixer),
  16242. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16244. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16245. msm_routing_get_port_mixer,
  16246. msm_routing_put_port_mixer),
  16247. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16248. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16249. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16250. msm_routing_get_port_mixer,
  16251. msm_routing_put_port_mixer),
  16252. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16254. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16255. msm_routing_get_port_mixer,
  16256. msm_routing_put_port_mixer),
  16257. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16259. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16260. msm_routing_get_port_mixer,
  16261. msm_routing_put_port_mixer),
  16262. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16264. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16265. msm_routing_get_port_mixer,
  16266. msm_routing_put_port_mixer),
  16267. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16268. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16269. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16270. msm_routing_get_port_mixer,
  16271. msm_routing_put_port_mixer),
  16272. };
  16273. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  16274. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16276. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16277. msm_routing_get_port_mixer,
  16278. msm_routing_put_port_mixer),
  16279. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16280. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16281. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16282. msm_routing_get_port_mixer,
  16283. msm_routing_put_port_mixer),
  16284. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16286. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16287. msm_routing_get_port_mixer,
  16288. msm_routing_put_port_mixer),
  16289. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16290. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16291. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16292. msm_routing_get_port_mixer,
  16293. msm_routing_put_port_mixer),
  16294. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16296. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16297. msm_routing_get_port_mixer,
  16298. msm_routing_put_port_mixer),
  16299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16300. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16301. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16302. msm_routing_get_port_mixer,
  16303. msm_routing_put_port_mixer),
  16304. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16306. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16307. msm_routing_get_port_mixer,
  16308. msm_routing_put_port_mixer),
  16309. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16311. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16312. msm_routing_get_port_mixer,
  16313. msm_routing_put_port_mixer),
  16314. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16316. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16317. msm_routing_get_port_mixer,
  16318. msm_routing_put_port_mixer),
  16319. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16321. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16322. msm_routing_get_port_mixer,
  16323. msm_routing_put_port_mixer),
  16324. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16326. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16327. msm_routing_get_port_mixer,
  16328. msm_routing_put_port_mixer),
  16329. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16331. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16332. msm_routing_get_port_mixer,
  16333. msm_routing_put_port_mixer),
  16334. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16336. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16337. msm_routing_get_port_mixer,
  16338. msm_routing_put_port_mixer),
  16339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16341. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16342. msm_routing_get_port_mixer,
  16343. msm_routing_put_port_mixer),
  16344. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16346. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16347. msm_routing_get_port_mixer,
  16348. msm_routing_put_port_mixer),
  16349. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16351. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16352. msm_routing_get_port_mixer,
  16353. msm_routing_put_port_mixer),
  16354. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16356. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16357. msm_routing_get_port_mixer,
  16358. msm_routing_put_port_mixer),
  16359. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16361. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16362. msm_routing_get_port_mixer,
  16363. msm_routing_put_port_mixer),
  16364. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16365. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16366. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16367. msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16371. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16372. msm_routing_get_port_mixer,
  16373. msm_routing_put_port_mixer),
  16374. };
  16375. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  16376. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16378. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16379. msm_routing_put_port_mixer),
  16380. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16382. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16383. msm_routing_put_port_mixer),
  16384. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16386. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16387. msm_routing_put_port_mixer),
  16388. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16390. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16391. msm_routing_put_port_mixer),
  16392. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16394. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16395. msm_routing_put_port_mixer),
  16396. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16398. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16399. msm_routing_put_port_mixer),
  16400. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16402. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16403. msm_routing_put_port_mixer),
  16404. };
  16405. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  16406. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16408. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16409. msm_routing_put_port_mixer),
  16410. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16412. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16413. msm_routing_put_port_mixer),
  16414. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16416. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16417. msm_routing_put_port_mixer),
  16418. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16420. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16421. msm_routing_put_port_mixer),
  16422. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16424. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16425. msm_routing_put_port_mixer),
  16426. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16428. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16429. msm_routing_put_port_mixer),
  16430. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16432. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16433. msm_routing_put_port_mixer),
  16434. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16435. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16436. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16437. msm_routing_put_port_mixer),
  16438. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16440. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16441. msm_routing_put_port_mixer),
  16442. };
  16443. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  16444. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16446. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16447. msm_routing_put_listen_mixer),
  16448. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16450. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16451. msm_routing_put_listen_mixer),
  16452. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16454. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16455. msm_routing_put_listen_mixer),
  16456. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16458. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16459. msm_routing_put_listen_mixer),
  16460. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16462. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16463. msm_routing_put_listen_mixer),
  16464. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16466. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16467. msm_routing_put_listen_mixer),
  16468. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16470. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16471. msm_routing_put_listen_mixer),
  16472. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16474. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16475. msm_routing_put_listen_mixer),
  16476. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16478. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16479. msm_routing_put_listen_mixer),
  16480. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16482. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16483. msm_routing_put_listen_mixer),
  16484. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16486. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16487. msm_routing_put_listen_mixer),
  16488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16490. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16491. msm_routing_put_listen_mixer),
  16492. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16494. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16495. msm_routing_put_listen_mixer),
  16496. };
  16497. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  16498. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16500. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16501. msm_routing_put_listen_mixer),
  16502. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  16503. SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16505. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16506. msm_routing_put_listen_mixer),
  16507. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16509. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16510. msm_routing_put_listen_mixer),
  16511. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16512. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16513. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16514. msm_routing_put_listen_mixer),
  16515. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16516. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16517. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16518. msm_routing_put_listen_mixer),
  16519. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16520. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16521. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16522. msm_routing_put_listen_mixer),
  16523. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16525. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16526. msm_routing_put_listen_mixer),
  16527. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16528. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16529. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16530. msm_routing_put_listen_mixer),
  16531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16533. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16534. msm_routing_put_listen_mixer),
  16535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16537. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16538. msm_routing_put_listen_mixer),
  16539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16541. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16542. msm_routing_put_listen_mixer),
  16543. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16545. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16546. msm_routing_put_listen_mixer),
  16547. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16549. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16550. msm_routing_put_listen_mixer),
  16551. };
  16552. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  16553. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16555. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16556. msm_routing_put_listen_mixer),
  16557. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16559. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16560. msm_routing_put_listen_mixer),
  16561. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16563. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16564. msm_routing_put_listen_mixer),
  16565. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16567. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16568. msm_routing_put_listen_mixer),
  16569. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16571. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16572. msm_routing_put_listen_mixer),
  16573. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16575. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16576. msm_routing_put_listen_mixer),
  16577. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16579. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16580. msm_routing_put_listen_mixer),
  16581. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16583. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16584. msm_routing_put_listen_mixer),
  16585. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16587. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16588. msm_routing_put_listen_mixer),
  16589. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16591. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16592. msm_routing_put_listen_mixer),
  16593. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16595. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16596. msm_routing_put_listen_mixer),
  16597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16599. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16600. msm_routing_put_listen_mixer),
  16601. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16603. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16604. msm_routing_put_listen_mixer),
  16605. };
  16606. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  16607. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16609. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16610. msm_routing_put_listen_mixer),
  16611. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16613. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16614. msm_routing_put_listen_mixer),
  16615. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16616. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16617. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16618. msm_routing_put_listen_mixer),
  16619. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16621. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16622. msm_routing_put_listen_mixer),
  16623. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16625. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16626. msm_routing_put_listen_mixer),
  16627. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16629. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16630. msm_routing_put_listen_mixer),
  16631. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16633. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16634. msm_routing_put_listen_mixer),
  16635. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16637. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16638. msm_routing_put_listen_mixer),
  16639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16641. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16642. msm_routing_put_listen_mixer),
  16643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16645. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16646. msm_routing_put_listen_mixer),
  16647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16649. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16650. msm_routing_put_listen_mixer),
  16651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16653. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16654. msm_routing_put_listen_mixer),
  16655. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16656. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16657. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16658. msm_routing_put_listen_mixer),
  16659. };
  16660. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  16661. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16662. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16663. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16664. msm_routing_put_listen_mixer),
  16665. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16667. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16668. msm_routing_put_listen_mixer),
  16669. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16671. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16672. msm_routing_put_listen_mixer),
  16673. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16674. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16675. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16676. msm_routing_put_listen_mixer),
  16677. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16679. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16680. msm_routing_put_listen_mixer),
  16681. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16683. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16684. msm_routing_put_listen_mixer),
  16685. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16687. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16688. msm_routing_put_listen_mixer),
  16689. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16691. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16692. msm_routing_put_listen_mixer),
  16693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16695. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16696. msm_routing_put_listen_mixer),
  16697. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16699. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16700. msm_routing_put_listen_mixer),
  16701. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16702. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16703. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16704. msm_routing_put_listen_mixer),
  16705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16707. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16708. msm_routing_put_listen_mixer),
  16709. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16711. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16712. msm_routing_put_listen_mixer),
  16713. };
  16714. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  16715. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16717. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16718. msm_routing_put_listen_mixer),
  16719. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16721. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16722. msm_routing_put_listen_mixer),
  16723. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16725. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16726. msm_routing_put_listen_mixer),
  16727. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16729. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16730. msm_routing_put_listen_mixer),
  16731. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16733. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16734. msm_routing_put_listen_mixer),
  16735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16737. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16738. msm_routing_put_listen_mixer),
  16739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16741. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16742. msm_routing_put_listen_mixer),
  16743. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16745. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16746. msm_routing_put_listen_mixer),
  16747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16749. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16750. msm_routing_put_listen_mixer),
  16751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16753. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16754. msm_routing_put_listen_mixer),
  16755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16757. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16758. msm_routing_put_listen_mixer),
  16759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16761. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16762. msm_routing_put_listen_mixer),
  16763. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16765. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16766. msm_routing_put_listen_mixer),
  16767. };
  16768. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16769. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16771. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16772. msm_routing_put_listen_mixer),
  16773. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16775. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16776. msm_routing_put_listen_mixer),
  16777. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16779. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16780. msm_routing_put_listen_mixer),
  16781. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16783. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16784. msm_routing_put_listen_mixer),
  16785. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16787. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16788. msm_routing_put_listen_mixer),
  16789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16791. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16792. msm_routing_put_listen_mixer),
  16793. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16795. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16796. msm_routing_put_listen_mixer),
  16797. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16799. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16800. msm_routing_put_listen_mixer),
  16801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16803. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16804. msm_routing_put_listen_mixer),
  16805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16807. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16808. msm_routing_put_listen_mixer),
  16809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16811. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16812. msm_routing_put_listen_mixer),
  16813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16815. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16816. msm_routing_put_listen_mixer),
  16817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16819. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16820. msm_routing_put_listen_mixer),
  16821. };
  16822. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16823. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16824. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16825. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16826. msm_routing_put_listen_mixer),
  16827. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16829. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16830. msm_routing_put_listen_mixer),
  16831. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16833. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16834. msm_routing_put_listen_mixer),
  16835. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16837. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16838. msm_routing_put_listen_mixer),
  16839. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16841. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16842. msm_routing_put_listen_mixer),
  16843. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16845. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16846. msm_routing_put_listen_mixer),
  16847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16849. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16850. msm_routing_put_listen_mixer),
  16851. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16853. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16854. msm_routing_put_listen_mixer),
  16855. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16857. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16858. msm_routing_put_listen_mixer),
  16859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16861. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16862. msm_routing_put_listen_mixer),
  16863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16865. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16866. msm_routing_put_listen_mixer),
  16867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16869. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16870. msm_routing_put_listen_mixer),
  16871. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16873. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16874. msm_routing_put_listen_mixer),
  16875. };
  16876. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16877. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16878. 0, 1, 0, msm_routing_get_switch_mixer,
  16879. msm_routing_put_switch_mixer);
  16880. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16881. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16882. 0, 1, 0, msm_routing_get_switch_mixer,
  16883. msm_routing_put_switch_mixer);
  16884. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16885. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16886. 0, 1, 0, msm_routing_get_switch_mixer,
  16887. msm_routing_put_switch_mixer);
  16888. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16889. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16890. 0, 1, 0, msm_routing_get_switch_mixer,
  16891. msm_routing_put_switch_mixer);
  16892. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16893. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16894. 0, 1, 0, msm_routing_get_switch_mixer,
  16895. msm_routing_put_switch_mixer);
  16896. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16897. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16898. 0, 1, 0, msm_routing_get_switch_mixer,
  16899. msm_routing_put_switch_mixer);
  16900. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16901. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16902. 0, 1, 0, msm_routing_get_switch_mixer,
  16903. msm_routing_put_switch_mixer);
  16904. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16905. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16906. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16907. msm_routing_put_fm_pcmrx_switch_mixer);
  16908. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16909. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16910. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16911. msm_routing_put_int0_mi2s_switch_mixer);
  16912. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16913. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16914. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16915. msm_routing_put_int4_mi2s_switch_mixer);
  16916. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16917. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16918. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16919. msm_routing_put_pri_mi2s_switch_mixer);
  16920. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16921. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16922. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16923. msm_routing_put_sec_mi2s_switch_mixer);
  16924. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16925. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16926. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16927. msm_routing_put_tert_mi2s_switch_mixer);
  16928. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16929. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16930. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16931. msm_routing_put_quat_mi2s_switch_mixer);
  16932. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16933. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16934. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16935. msm_routing_put_quin_mi2s_switch_mixer);
  16936. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16937. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16938. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16939. msm_routing_put_hfp_switch_mixer);
  16940. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16941. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16942. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16943. msm_routing_put_hfp_switch_mixer);
  16944. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16945. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16946. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16947. msm_routing_put_hfp_switch_mixer);
  16948. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16949. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16950. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16951. msm_routing_put_hfp_switch_mixer);
  16952. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16953. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16954. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16955. msm_routing_put_usb_switch_mixer);
  16956. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16957. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16958. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16959. msm_routing_a2dp_switch_mixer_put);
  16960. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  16961. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16962. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  16963. msm_routing_sco_switch_mixer_put);
  16964. static const struct soc_enum lsm_port_enum =
  16965. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16966. static const char * const lsm_func_text[] = {
  16967. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16968. };
  16969. static const struct soc_enum lsm_func_enum =
  16970. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16971. static const struct snd_kcontrol_new lsm_controls[] = {
  16972. /* kcontrol of lsm_function */
  16973. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16974. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16975. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16976. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16977. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16978. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16979. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16980. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16981. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16982. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16983. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16984. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16985. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16986. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16987. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16988. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16989. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16990. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16991. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16992. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16993. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16994. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16995. /* kcontrol of lsm_port */
  16996. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16997. msm_routing_lsm_port_get,
  16998. msm_routing_lsm_port_put),
  16999. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  17000. msm_routing_lsm_port_get,
  17001. msm_routing_lsm_port_put),
  17002. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  17003. msm_routing_lsm_port_get,
  17004. msm_routing_lsm_port_put),
  17005. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  17006. msm_routing_lsm_port_get,
  17007. msm_routing_lsm_port_put),
  17008. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  17009. msm_routing_lsm_port_get,
  17010. msm_routing_lsm_port_put),
  17011. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  17012. msm_routing_lsm_port_get,
  17013. msm_routing_lsm_port_put),
  17014. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  17015. msm_routing_lsm_port_get,
  17016. msm_routing_lsm_port_put),
  17017. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  17018. msm_routing_lsm_port_get,
  17019. msm_routing_lsm_port_put),
  17020. };
  17021. static const char * const aanc_slim_0_rx_text[] = {
  17022. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  17023. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  17024. };
  17025. static const struct soc_enum aanc_slim_0_rx_enum =
  17026. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  17027. aanc_slim_0_rx_text);
  17028. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  17029. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  17030. msm_routing_slim_0_rx_aanc_mux_get,
  17031. msm_routing_slim_0_rx_aanc_mux_put)
  17032. };
  17033. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  17034. struct snd_ctl_elem_value *ucontrol)
  17035. {
  17036. ucontrol->value.integer.value[0] = aanc_level;
  17037. return 0;
  17038. }
  17039. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  17040. struct snd_ctl_elem_value *ucontrol)
  17041. {
  17042. int ret = 0;
  17043. mutex_lock(&routing_lock);
  17044. aanc_level = ucontrol->value.integer.value[0];
  17045. pr_debug("%s: value: %ld\n",
  17046. __func__, ucontrol->value.integer.value[0]);
  17047. ret = afe_set_aanc_noise_level(aanc_level);
  17048. mutex_unlock(&routing_lock);
  17049. return ret;
  17050. }
  17051. static const struct snd_kcontrol_new aanc_noise_level[] = {
  17052. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  17053. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  17054. };
  17055. static int msm_routing_get_stereo_to_custom_stereo_control(
  17056. struct snd_kcontrol *kcontrol,
  17057. struct snd_ctl_elem_value *ucontrol)
  17058. {
  17059. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  17060. return 0;
  17061. }
  17062. static int msm_routing_put_stereo_to_custom_stereo_control(
  17063. struct snd_kcontrol *kcontrol,
  17064. struct snd_ctl_elem_value *ucontrol)
  17065. {
  17066. int flag = 0, i = 0, rc = 0, idx = 0;
  17067. int be_index = 0, port_id, topo_id;
  17068. unsigned int session_id = 0;
  17069. uint16_t op_FL_ip_FL_weight = 0;
  17070. uint16_t op_FL_ip_FR_weight = 0;
  17071. uint16_t op_FR_ip_FL_weight = 0;
  17072. uint16_t op_FR_ip_FR_weight = 0;
  17073. flag = ucontrol->value.integer.value[0];
  17074. pr_debug("%s E flag %d\n", __func__, flag);
  17075. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  17076. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  17077. __func__, is_custom_stereo_on, flag);
  17078. return 0;
  17079. }
  17080. is_custom_stereo_on = flag ? true : false;
  17081. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  17082. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  17083. port_id = msm_bedais[be_index].port_id;
  17084. if (!msm_bedais[be_index].active)
  17085. continue;
  17086. if ((port_id != SLIMBUS_0_RX) &&
  17087. (port_id != RT_PROXY_PORT_001_RX) &&
  17088. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  17089. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  17090. continue;
  17091. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  17092. MSM_FRONTEND_DAI_MM_SIZE) {
  17093. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  17094. LEGACY_PCM_MODE)
  17095. goto skip_send_custom_stereo;
  17096. session_id =
  17097. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  17098. if (is_custom_stereo_on) {
  17099. op_FL_ip_FL_weight =
  17100. Q14_GAIN_ZERO_POINT_FIVE;
  17101. op_FL_ip_FR_weight =
  17102. Q14_GAIN_ZERO_POINT_FIVE;
  17103. op_FR_ip_FL_weight =
  17104. Q14_GAIN_ZERO_POINT_FIVE;
  17105. op_FR_ip_FR_weight =
  17106. Q14_GAIN_ZERO_POINT_FIVE;
  17107. } else {
  17108. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  17109. op_FL_ip_FR_weight = 0;
  17110. op_FR_ip_FL_weight = 0;
  17111. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  17112. }
  17113. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  17114. unsigned long copp =
  17115. session_copp_map[i]
  17116. [SESSION_TYPE_RX][be_index];
  17117. if (!test_bit(idx, &copp))
  17118. goto skip_send_custom_stereo;
  17119. topo_id = adm_get_topology_for_port_copp_idx(
  17120. msm_bedais[be_index].port_id, idx);
  17121. if (topo_id < 0)
  17122. pr_debug("%s:Err:custom stereo topo %d",
  17123. __func__, topo_id);
  17124. pr_debug("idx %d\n", idx);
  17125. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  17126. rc = msm_ds2_dap_set_custom_stereo_onoff
  17127. (msm_bedais[be_index].port_id,
  17128. idx, is_custom_stereo_on);
  17129. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  17130. rc = dolby_dap_set_custom_stereo_onoff(
  17131. msm_bedais[be_index].port_id,
  17132. idx, is_custom_stereo_on);
  17133. else
  17134. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  17135. (msm_bedais[be_index].port_id,
  17136. idx, session_id,
  17137. op_FL_ip_FL_weight,
  17138. op_FL_ip_FR_weight,
  17139. op_FR_ip_FL_weight,
  17140. op_FR_ip_FR_weight);
  17141. if (rc < 0)
  17142. skip_send_custom_stereo:
  17143. pr_err("%s: err setting custom stereo\n",
  17144. __func__);
  17145. }
  17146. }
  17147. }
  17148. return 0;
  17149. }
  17150. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  17151. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  17152. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  17153. msm_routing_put_stereo_to_custom_stereo_control),
  17154. };
  17155. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  17156. struct snd_ctl_elem_value *ucontrol)
  17157. {
  17158. return 0;
  17159. }
  17160. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  17161. struct snd_ctl_elem_value *ucontrol)
  17162. {
  17163. int i = 0, j;
  17164. int num_app_types = ucontrol->value.integer.value[i++];
  17165. pr_debug("%s\n", __func__);
  17166. memset(app_type_cfg, 0, MAX_APP_TYPES*
  17167. sizeof(struct msm_pcm_routing_app_type_data));
  17168. if (num_app_types > MAX_APP_TYPES) {
  17169. pr_err("%s: number of app types exceed the max supported\n",
  17170. __func__);
  17171. return -EINVAL;
  17172. }
  17173. for (j = 0; j < num_app_types; j++) {
  17174. app_type_cfg[j].app_type =
  17175. ucontrol->value.integer.value[i++];
  17176. app_type_cfg[j].sample_rate =
  17177. ucontrol->value.integer.value[i++];
  17178. app_type_cfg[j].bit_width =
  17179. ucontrol->value.integer.value[i++];
  17180. }
  17181. return 0;
  17182. }
  17183. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  17184. struct snd_ctl_elem_value *ucontrol)
  17185. {
  17186. int j, fe_id, be_id, port_type;
  17187. int ret = 0;
  17188. unsigned long copp;
  17189. struct msm_pcm_routing_bdai_data *bedai;
  17190. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  17191. SESSION_TYPE_RX;
  17192. int app_type = ucontrol->value.integer.value[1];
  17193. int gain = (ucontrol->value.integer.value[2] +
  17194. ucontrol->value.integer.value[3])/2;
  17195. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  17196. MSM_AFE_PORT_TYPE_TX;
  17197. mutex_lock(&routing_lock);
  17198. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  17199. if (is_be_dai_extproc(be_id))
  17200. continue;
  17201. bedai = &msm_bedais[be_id];
  17202. if (afe_get_port_type(bedai->port_id) != port_type)
  17203. continue;
  17204. if (!bedai->active)
  17205. continue;
  17206. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  17207. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  17208. continue;
  17209. if (app_type !=
  17210. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  17211. continue;
  17212. copp = session_copp_map[fe_id][dir][be_id];
  17213. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  17214. if (!test_bit(j, &copp))
  17215. continue;
  17216. ret |= adm_set_volume(bedai->port_id, j, gain);
  17217. }
  17218. }
  17219. }
  17220. mutex_unlock(&routing_lock);
  17221. return ret ? -EINVAL : 0;
  17222. }
  17223. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  17224. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  17225. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  17226. msm_routing_put_app_type_cfg_control),
  17227. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  17228. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  17229. };
  17230. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  17231. struct snd_ctl_elem_value *ucontrol)
  17232. {
  17233. int copp_idx, fe_id, be_id, port_type;
  17234. int ret = 0;
  17235. unsigned long copp;
  17236. struct msm_pcm_routing_bdai_data *bedai;
  17237. u8 *packed_params = NULL;
  17238. struct param_hdr_v3 param_hdr;
  17239. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  17240. sizeof(uint32_t));
  17241. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  17242. SESSION_TYPE_RX;
  17243. int app_type = ucontrol->value.integer.value[1];
  17244. int module_id = ucontrol->value.integer.value[2];
  17245. int instance_id = ucontrol->value.integer.value[3];
  17246. int param_id = ucontrol->value.integer.value[4];
  17247. int param_value = ucontrol->value.integer.value[5];
  17248. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  17249. MSM_AFE_PORT_TYPE_TX;
  17250. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  17251. __func__, app_type, module_id,
  17252. instance_id, param_id, param_value);
  17253. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  17254. if (!packed_params)
  17255. return -ENOMEM;
  17256. memset(&param_hdr, 0, sizeof(param_hdr));
  17257. param_hdr.module_id = module_id;
  17258. param_hdr.instance_id = instance_id;
  17259. param_hdr.param_id = param_id;
  17260. param_hdr.param_size = sizeof(uint32_t);
  17261. packed_param_size = 0;
  17262. mutex_lock(&routing_lock);
  17263. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  17264. if (is_be_dai_extproc(be_id))
  17265. continue;
  17266. bedai = &msm_bedais[be_id];
  17267. if (afe_get_port_type(bedai->port_id) != port_type)
  17268. continue;
  17269. if (!bedai->active)
  17270. continue;
  17271. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  17272. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  17273. continue;
  17274. if (app_type !=
  17275. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  17276. continue;
  17277. copp = session_copp_map[fe_id][dir][be_id];
  17278. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  17279. copp_idx++) {
  17280. if (!test_bit(copp_idx, &copp))
  17281. continue;
  17282. ret = q6common_pack_pp_params(packed_params,
  17283. &param_hdr,
  17284. (u8 *) &param_value,
  17285. &packed_param_size);
  17286. if (ret) {
  17287. pr_err("%s: Failed to pack params, error %d\n",
  17288. __func__, ret);
  17289. goto done;
  17290. }
  17291. ret = adm_set_pp_params(bedai->port_id,
  17292. copp_idx, NULL,
  17293. packed_params,
  17294. packed_param_size);
  17295. if (ret) {
  17296. pr_err("%s: Setting param failed with err=%d\n",
  17297. __func__, ret);
  17298. ret = -EINVAL;
  17299. goto done;
  17300. }
  17301. }
  17302. }
  17303. }
  17304. done:
  17305. mutex_unlock(&routing_lock);
  17306. kfree(packed_params);
  17307. return ret;
  17308. }
  17309. static const struct snd_kcontrol_new module_cfg_controls[] = {
  17310. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  17311. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  17312. };
  17313. static int msm_routing_get_lsm_app_type_cfg_control(
  17314. struct snd_kcontrol *kcontrol,
  17315. struct snd_ctl_elem_value *ucontrol)
  17316. {
  17317. int shift = ((struct soc_multi_mixer_control *)
  17318. kcontrol->private_value)->shift;
  17319. int i = 0, j = 0;
  17320. ucontrol->value.integer.value[i] = num_app_cfg_types;
  17321. for (j = 0; j < num_app_cfg_types; ++j) {
  17322. ucontrol->value.integer.value[++i] =
  17323. lsm_app_type_cfg[j].app_type;
  17324. ucontrol->value.integer.value[++i] =
  17325. lsm_app_type_cfg[j].sample_rate;
  17326. ucontrol->value.integer.value[++i] =
  17327. lsm_app_type_cfg[j].bit_width;
  17328. if (shift == 1)
  17329. ucontrol->value.integer.value[++i] =
  17330. lsm_app_type_cfg[j].num_out_channels;
  17331. }
  17332. return 0;
  17333. }
  17334. static int msm_routing_put_lsm_app_type_cfg_control(
  17335. struct snd_kcontrol *kcontrol,
  17336. struct snd_ctl_elem_value *ucontrol)
  17337. {
  17338. int shift = ((struct soc_multi_mixer_control *)
  17339. kcontrol->private_value)->shift;
  17340. int i = 0, j;
  17341. num_app_cfg_types = ucontrol->value.integer.value[i++];
  17342. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  17343. sizeof(struct msm_pcm_routing_app_type_data));
  17344. if (num_app_cfg_types > MAX_APP_TYPES) {
  17345. pr_err("%s: number of app types exceed the max supported\n",
  17346. __func__);
  17347. return -EINVAL;
  17348. }
  17349. for (j = 0; j < num_app_cfg_types; j++) {
  17350. lsm_app_type_cfg[j].app_type =
  17351. ucontrol->value.integer.value[i++];
  17352. lsm_app_type_cfg[j].sample_rate =
  17353. ucontrol->value.integer.value[i++];
  17354. lsm_app_type_cfg[j].bit_width =
  17355. ucontrol->value.integer.value[i++];
  17356. /* Shift of 1 indicates this is V2 mixer control */
  17357. if (shift == 1)
  17358. lsm_app_type_cfg[j].num_out_channels =
  17359. ucontrol->value.integer.value[i++];
  17360. }
  17361. return 0;
  17362. }
  17363. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  17364. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  17365. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  17366. msm_routing_put_lsm_app_type_cfg_control),
  17367. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  17368. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  17369. msm_routing_put_lsm_app_type_cfg_control),
  17370. };
  17371. static int msm_routing_get_use_ds1_or_ds2_control(
  17372. struct snd_kcontrol *kcontrol,
  17373. struct snd_ctl_elem_value *ucontrol)
  17374. {
  17375. ucontrol->value.integer.value[0] = is_ds2_on;
  17376. return 0;
  17377. }
  17378. static int msm_routing_put_use_ds1_or_ds2_control(
  17379. struct snd_kcontrol *kcontrol,
  17380. struct snd_ctl_elem_value *ucontrol)
  17381. {
  17382. is_ds2_on = ucontrol->value.integer.value[0];
  17383. return 0;
  17384. }
  17385. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  17386. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  17387. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  17388. msm_routing_put_use_ds1_or_ds2_control),
  17389. };
  17390. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  17391. struct snd_ctl_elem_value *ucontrol) {
  17392. int rc = 0;
  17393. int be_idx = 0;
  17394. char *param_value;
  17395. int *update_param_value;
  17396. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  17397. struct param_hdr_v3 param_hdr;
  17398. param_value = kzalloc(param_size, GFP_KERNEL);
  17399. if (!param_value)
  17400. return -ENOMEM;
  17401. memset(&param_hdr, 0, sizeof(param_hdr));
  17402. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  17403. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  17404. break;
  17405. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  17406. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  17407. param_hdr.instance_id = INSTANCE_ID_0;
  17408. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  17409. param_hdr.param_size = param_size;
  17410. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  17411. NULL, &param_hdr, (u8 *) param_value);
  17412. if (rc) {
  17413. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  17414. kfree(param_value);
  17415. return -EINVAL;
  17416. }
  17417. update_param_value = (int *)param_value;
  17418. ucontrol->value.integer.value[0] = update_param_value[0];
  17419. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  17420. __func__, update_param_value[0]);
  17421. }
  17422. kfree(param_value);
  17423. return 0;
  17424. }
  17425. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  17426. struct snd_ctl_elem_value *ucontrol)
  17427. {
  17428. voc_session_id = ucontrol->value.integer.value[0];
  17429. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  17430. return 0;
  17431. }
  17432. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  17433. struct snd_ctl_elem_value *ucontrol)
  17434. {
  17435. ucontrol->value.integer.value[0] = voc_session_id;
  17436. return 0;
  17437. }
  17438. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  17439. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  17440. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  17441. msm_voc_session_id_put),
  17442. };
  17443. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  17444. struct snd_ctl_elem_info *uinfo)
  17445. {
  17446. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17447. uinfo->count = sizeof(struct sound_focus_param);
  17448. return 0;
  17449. }
  17450. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  17451. struct snd_ctl_elem_value *ucontrol)
  17452. {
  17453. int ret = 0;
  17454. struct sound_focus_param soundFocusData;
  17455. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  17456. sizeof(struct sound_focus_param));
  17457. ret = voc_set_sound_focus(soundFocusData);
  17458. if (ret) {
  17459. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  17460. __func__, ret);
  17461. ret = -EINVAL;
  17462. }
  17463. return ret;
  17464. }
  17465. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  17466. struct snd_ctl_elem_value *ucontrol)
  17467. {
  17468. int ret = 0;
  17469. struct sound_focus_param soundFocusData;
  17470. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  17471. ret = voc_get_sound_focus(&soundFocusData);
  17472. if (ret) {
  17473. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  17474. __func__, ret);
  17475. ret = -EINVAL;
  17476. goto done;
  17477. }
  17478. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  17479. sizeof(struct sound_focus_param));
  17480. done:
  17481. return ret;
  17482. }
  17483. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  17484. struct snd_ctl_elem_info *uinfo)
  17485. {
  17486. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17487. uinfo->count = sizeof(struct source_tracking_param);
  17488. return 0;
  17489. }
  17490. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  17491. struct snd_ctl_elem_value *ucontrol)
  17492. {
  17493. int ret = 0;
  17494. struct source_tracking_param sourceTrackingData;
  17495. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  17496. ret = voc_get_source_tracking(&sourceTrackingData);
  17497. if (ret) {
  17498. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  17499. __func__, ret);
  17500. ret = -EINVAL;
  17501. goto done;
  17502. }
  17503. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17504. sizeof(struct source_tracking_param));
  17505. done:
  17506. return ret;
  17507. }
  17508. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  17509. int *copp_idx)
  17510. {
  17511. int i, idx, be_idx;
  17512. int ret = 0;
  17513. unsigned long copp;
  17514. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  17515. ret = q6audio_validate_port(port_id);
  17516. if (ret < 0) {
  17517. pr_err("%s: port validation failed id 0x%x ret %d\n",
  17518. __func__, port_id, ret);
  17519. ret = -EINVAL;
  17520. goto done;
  17521. }
  17522. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  17523. if (msm_bedais[be_idx].port_id == port_id)
  17524. break;
  17525. }
  17526. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  17527. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  17528. ret = -EINVAL;
  17529. goto done;
  17530. }
  17531. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  17532. MSM_FRONTEND_DAI_MAX) {
  17533. if (!(is_mm_lsm_fe_id(i) &&
  17534. route_check_fe_id_adm_support(i)))
  17535. continue;
  17536. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  17537. copp = session_copp_map[i]
  17538. [session_type][be_idx];
  17539. if (test_bit(idx, &copp))
  17540. break;
  17541. }
  17542. if (idx >= MAX_COPPS_PER_PORT)
  17543. continue;
  17544. else
  17545. break;
  17546. }
  17547. if (i >= MSM_FRONTEND_DAI_MAX) {
  17548. pr_debug("%s: Invalid FE, exiting\n", __func__);
  17549. ret = -EINVAL;
  17550. goto done;
  17551. }
  17552. *copp_idx = idx;
  17553. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  17554. done:
  17555. return ret;
  17556. }
  17557. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  17558. const char *prefix, int *port_id)
  17559. {
  17560. int ret = 0;
  17561. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  17562. /*
  17563. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  17564. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  17565. * and compare the string with the backend name to derive the port id.
  17566. */
  17567. if (!strcmp(kcontrol->id.name + strlen(prefix),
  17568. "SLIMBUS_0")) {
  17569. *port_id = SLIMBUS_0_TX;
  17570. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17571. "TERT_MI2S")) {
  17572. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  17573. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17574. "INT3_MI2S")) {
  17575. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  17576. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17577. "VA_CDC_DMA_TX_0")) {
  17578. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  17579. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17580. "TX_CDC_DMA_TX_3")) {
  17581. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  17582. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17583. "QUIN_TDM_TX_0")) {
  17584. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  17585. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17586. "PRIMARY_TDM")) {
  17587. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  17588. } else {
  17589. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  17590. __func__, kcontrol->id.name);
  17591. ret = -EINVAL;
  17592. goto done;
  17593. }
  17594. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  17595. __func__, kcontrol->id.name, *port_id);
  17596. done:
  17597. return ret;
  17598. }
  17599. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  17600. struct snd_ctl_elem_value *ucontrol)
  17601. {
  17602. int ret = 0;
  17603. struct sound_focus_param soundFocusData;
  17604. int port_id, copp_idx;
  17605. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17606. "Sound Focus Audio Tx ", &port_id);
  17607. if (ret != 0) {
  17608. pr_err("%s: Error in deriving port id, err=%d\n",
  17609. __func__, ret);
  17610. ret = -EINVAL;
  17611. goto done;
  17612. }
  17613. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17614. &copp_idx);
  17615. if (ret) {
  17616. pr_err("%s: Could not get copp idx for port_id=%d\n",
  17617. __func__, port_id);
  17618. ret = -EINVAL;
  17619. goto done;
  17620. }
  17621. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  17622. sizeof(struct sound_focus_param));
  17623. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  17624. if (ret) {
  17625. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  17626. __func__, ret);
  17627. ret = -EINVAL;
  17628. goto done;
  17629. }
  17630. done:
  17631. return ret;
  17632. }
  17633. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  17634. struct snd_ctl_elem_value *ucontrol)
  17635. {
  17636. int ret = 0;
  17637. struct sound_focus_param soundFocusData;
  17638. int port_id, copp_idx;
  17639. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17640. "Sound Focus Audio Tx ", &port_id);
  17641. if (ret) {
  17642. pr_err("%s: Error in deriving port id, err=%d\n",
  17643. __func__, ret);
  17644. ret = -EINVAL;
  17645. goto done;
  17646. }
  17647. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17648. &copp_idx);
  17649. if (ret) {
  17650. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17651. __func__, port_id);
  17652. ret = -EINVAL;
  17653. goto done;
  17654. }
  17655. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  17656. if (ret) {
  17657. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  17658. __func__, ret);
  17659. ret = -EINVAL;
  17660. goto done;
  17661. }
  17662. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  17663. sizeof(struct sound_focus_param));
  17664. done:
  17665. return ret;
  17666. }
  17667. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  17668. struct snd_ctl_elem_value *ucontrol)
  17669. {
  17670. int ret = 0;
  17671. struct source_tracking_param sourceTrackingData;
  17672. int port_id, copp_idx;
  17673. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17674. "Source Tracking Audio Tx ", &port_id);
  17675. if (ret) {
  17676. pr_err("%s: Error in deriving port id, err=%d\n",
  17677. __func__, ret);
  17678. ret = -EINVAL;
  17679. goto done;
  17680. }
  17681. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17682. &copp_idx);
  17683. if (ret) {
  17684. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17685. __func__, port_id);
  17686. ret = -EINVAL;
  17687. goto done;
  17688. }
  17689. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  17690. if (ret) {
  17691. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  17692. __func__, ret);
  17693. ret = -EINVAL;
  17694. goto done;
  17695. }
  17696. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17697. sizeof(struct source_tracking_param));
  17698. done:
  17699. return ret;
  17700. }
  17701. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  17702. struct snd_ctl_elem_info *uinfo)
  17703. {
  17704. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17705. uinfo->count = sizeof(struct doa_tracking_mon_param);
  17706. return 0;
  17707. }
  17708. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  17709. struct snd_ctl_elem_value *ucontrol)
  17710. {
  17711. int ret = 0;
  17712. struct doa_tracking_mon_param doa_tracking_data;
  17713. int port_id, copp_idx;
  17714. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  17715. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17716. "Doa Tracking Monitor Listen ", &port_id);
  17717. if (ret) {
  17718. pr_err("%s: Error in deriving port id, err=%d\n",
  17719. __func__, ret);
  17720. ret = -EINVAL;
  17721. goto done;
  17722. }
  17723. /*
  17724. * If copp id exists for given port id, query adm to get doa data.
  17725. * Else query afe for doa tracking params.
  17726. * This is to support in cases where LSM directly connects to
  17727. * AFE for FFNS.
  17728. */
  17729. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17730. &copp_idx);
  17731. if (!ret)
  17732. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  17733. &doa_tracking_data);
  17734. else
  17735. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  17736. if (ret) {
  17737. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  17738. __func__, ret);
  17739. ret = -EINVAL;
  17740. goto done;
  17741. }
  17742. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  17743. sizeof(struct doa_tracking_mon_param));
  17744. done:
  17745. return ret;
  17746. }
  17747. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  17748. {
  17749. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17751. .name = "Sound Focus Voice Tx SLIMBUS_0",
  17752. .info = msm_sound_focus_info,
  17753. .get = msm_voice_sound_focus_get,
  17754. .put = msm_voice_sound_focus_put,
  17755. },
  17756. {
  17757. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17758. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17759. .name = "Source Tracking Voice Tx SLIMBUS_0",
  17760. .info = msm_source_tracking_info,
  17761. .get = msm_voice_source_tracking_get,
  17762. },
  17763. {
  17764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17766. .name = "Sound Focus Audio Tx SLIMBUS_0",
  17767. .info = msm_sound_focus_info,
  17768. .get = msm_audio_sound_focus_get,
  17769. .put = msm_audio_sound_focus_put,
  17770. },
  17771. {
  17772. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17773. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17774. .name = "Source Tracking Audio Tx SLIMBUS_0",
  17775. .info = msm_source_tracking_info,
  17776. .get = msm_audio_source_tracking_get,
  17777. },
  17778. {
  17779. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17780. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17781. .name = "Sound Focus Voice Tx TERT_MI2S",
  17782. .info = msm_sound_focus_info,
  17783. .get = msm_voice_sound_focus_get,
  17784. .put = msm_voice_sound_focus_put,
  17785. },
  17786. {
  17787. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17788. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17789. .name = "Source Tracking Voice Tx TERT_MI2S",
  17790. .info = msm_source_tracking_info,
  17791. .get = msm_voice_source_tracking_get,
  17792. },
  17793. {
  17794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17796. .name = "Sound Focus Audio Tx TERT_MI2S",
  17797. .info = msm_sound_focus_info,
  17798. .get = msm_audio_sound_focus_get,
  17799. .put = msm_audio_sound_focus_put,
  17800. },
  17801. {
  17802. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17804. .name = "Source Tracking Audio Tx TERT_MI2S",
  17805. .info = msm_source_tracking_info,
  17806. .get = msm_audio_source_tracking_get,
  17807. },
  17808. {
  17809. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17810. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17811. .name = "Sound Focus Voice Tx INT3_MI2S",
  17812. .info = msm_sound_focus_info,
  17813. .get = msm_voice_sound_focus_get,
  17814. .put = msm_voice_sound_focus_put,
  17815. },
  17816. {
  17817. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17818. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17819. .name = "Source Tracking Voice Tx INT3_MI2S",
  17820. .info = msm_source_tracking_info,
  17821. .get = msm_voice_source_tracking_get,
  17822. },
  17823. {
  17824. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17826. .name = "Sound Focus Audio Tx INT3_MI2S",
  17827. .info = msm_sound_focus_info,
  17828. .get = msm_audio_sound_focus_get,
  17829. .put = msm_audio_sound_focus_put,
  17830. },
  17831. {
  17832. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17834. .name = "Source Tracking Audio Tx INT3_MI2S",
  17835. .info = msm_source_tracking_info,
  17836. .get = msm_audio_source_tracking_get,
  17837. },
  17838. {
  17839. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17841. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17842. .info = msm_sound_focus_info,
  17843. .get = msm_voice_sound_focus_get,
  17844. .put = msm_voice_sound_focus_put,
  17845. },
  17846. {
  17847. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17848. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17849. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17850. .info = msm_source_tracking_info,
  17851. .get = msm_voice_source_tracking_get,
  17852. },
  17853. {
  17854. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17856. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17857. .info = msm_sound_focus_info,
  17858. .get = msm_audio_sound_focus_get,
  17859. .put = msm_audio_sound_focus_put,
  17860. },
  17861. {
  17862. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17864. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17865. .info = msm_source_tracking_info,
  17866. .get = msm_audio_source_tracking_get,
  17867. },
  17868. {
  17869. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17871. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17872. .info = msm_sound_focus_info,
  17873. .get = msm_voice_sound_focus_get,
  17874. .put = msm_voice_sound_focus_put,
  17875. },
  17876. {
  17877. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17879. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17880. .info = msm_source_tracking_info,
  17881. .get = msm_voice_source_tracking_get,
  17882. },
  17883. {
  17884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17886. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17887. .info = msm_sound_focus_info,
  17888. .get = msm_audio_sound_focus_get,
  17889. .put = msm_audio_sound_focus_put,
  17890. },
  17891. {
  17892. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17894. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17895. .info = msm_source_tracking_info,
  17896. .get = msm_audio_source_tracking_get,
  17897. },
  17898. {
  17899. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17901. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17902. .info = msm_sound_focus_info,
  17903. .get = msm_voice_sound_focus_get,
  17904. .put = msm_voice_sound_focus_put,
  17905. },
  17906. {
  17907. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17909. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17910. .info = msm_source_tracking_info,
  17911. .get = msm_voice_source_tracking_get,
  17912. },
  17913. {
  17914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17916. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17917. .info = msm_sound_focus_info,
  17918. .get = msm_audio_sound_focus_get,
  17919. .put = msm_audio_sound_focus_put,
  17920. },
  17921. {
  17922. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17924. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17925. .info = msm_source_tracking_info,
  17926. .get = msm_audio_source_tracking_get,
  17927. },
  17928. {
  17929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17931. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  17932. .info = msm_sound_focus_info,
  17933. .get = msm_audio_sound_focus_get,
  17934. .put = msm_audio_sound_focus_put,
  17935. },
  17936. {
  17937. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17939. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  17940. .info = msm_source_tracking_info,
  17941. .get = msm_audio_source_tracking_get,
  17942. },
  17943. {
  17944. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17946. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  17947. .info = msm_doa_tracking_mon_info,
  17948. .get = msm_doa_tracking_mon_get,
  17949. },
  17950. };
  17951. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17952. struct snd_ctl_elem_value *ucontrol)
  17953. {
  17954. int ret = 0;
  17955. int item;
  17956. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17957. pr_debug("%s item is %d\n", __func__,
  17958. ucontrol->value.enumerated.item[0]);
  17959. mutex_lock(&routing_lock);
  17960. item = ucontrol->value.enumerated.item[0];
  17961. if (item < e->items) {
  17962. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17963. __func__, e->shift_l, e->values[item]);
  17964. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17965. e->values[item] < MSM_BACKEND_DAI_MAX)
  17966. /* Enable feedback TX path */
  17967. ret = afe_spk_prot_feed_back_cfg(
  17968. msm_bedais[e->values[item]].port_id,
  17969. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17970. else {
  17971. pr_debug("%s values are out of range item %d\n",
  17972. __func__, e->values[item]);
  17973. /* Disable feedback TX path */
  17974. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17975. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17976. else
  17977. ret = -EINVAL;
  17978. }
  17979. } else {
  17980. pr_err("%s item value is out of range item\n", __func__);
  17981. ret = -EINVAL;
  17982. }
  17983. mutex_unlock(&routing_lock);
  17984. return ret;
  17985. }
  17986. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17987. struct snd_ctl_elem_value *ucontrol)
  17988. {
  17989. int ret = 0;
  17990. int item;
  17991. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17992. pr_debug("%s item is %d\n", __func__,
  17993. ucontrol->value.enumerated.item[0]);
  17994. mutex_lock(&routing_lock);
  17995. item = ucontrol->value.enumerated.item[0];
  17996. if (item < e->items) {
  17997. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17998. __func__, e->shift_l, e->values[item]);
  17999. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  18000. e->values[item] < MSM_BACKEND_DAI_MAX)
  18001. /* Enable feedback TX path */
  18002. ret = afe_spk_prot_feed_back_cfg(
  18003. msm_bedais[e->values[item]].port_id,
  18004. msm_bedais[e->shift_l].port_id,
  18005. 1, 1, 1);
  18006. else {
  18007. pr_debug("%s values are out of range item %d\n",
  18008. __func__, e->values[item]);
  18009. /* Disable feedback TX path */
  18010. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  18011. ret = afe_spk_prot_feed_back_cfg(0,
  18012. 0, 0, 0, 0);
  18013. else
  18014. ret = -EINVAL;
  18015. }
  18016. } else {
  18017. pr_err("%s item value is out of range item\n", __func__);
  18018. ret = -EINVAL;
  18019. }
  18020. mutex_unlock(&routing_lock);
  18021. return ret;
  18022. }
  18023. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  18024. struct snd_ctl_elem_value *ucontrol)
  18025. {
  18026. pr_debug("%s\n", __func__);
  18027. return 0;
  18028. }
  18029. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  18030. struct snd_ctl_elem_value *ucontrol)
  18031. {
  18032. pr_debug("%s\n", __func__);
  18033. ucontrol->value.enumerated.item[0] = 0;
  18034. return 0;
  18035. }
  18036. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  18037. "ZERO", "SLIM4_TX"
  18038. };
  18039. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  18040. "ZERO", "SLIM4_TX"
  18041. };
  18042. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  18043. "ZERO", "WSA_CDC_DMA_TX_0"
  18044. };
  18045. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  18046. "ZERO", "WSA_CDC_DMA_TX_0"
  18047. };
  18048. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  18049. "ZERO", "SENARY_TX"
  18050. };
  18051. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  18052. "ZERO", "INT5_MI2S_TX"
  18053. };
  18054. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  18055. "ZERO", "INT5_MI2S_TX"
  18056. };
  18057. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  18058. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  18059. };
  18060. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  18061. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  18062. };
  18063. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  18064. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  18065. };
  18066. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  18067. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  18068. };
  18069. static const int mi2s_rx_vi_fb_tx_value[] = {
  18070. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  18071. };
  18072. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  18073. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  18074. };
  18075. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  18076. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  18077. };
  18078. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  18079. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  18080. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  18081. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  18082. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  18083. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  18084. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  18085. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  18086. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  18087. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  18088. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  18089. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  18090. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  18091. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  18092. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  18093. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  18094. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  18095. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  18096. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  18097. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  18098. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  18099. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  18100. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  18101. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  18102. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  18103. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  18104. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  18105. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  18106. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  18107. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  18108. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  18109. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  18110. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  18111. spkr_prot_put_vi_lch_port);
  18112. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  18113. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  18114. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  18115. spkr_prot_put_vi_rch_port);
  18116. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  18117. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  18118. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  18119. spkr_prot_put_vi_lch_port);
  18120. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  18121. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  18122. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  18123. spkr_prot_put_vi_rch_port);
  18124. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  18125. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  18126. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  18127. spkr_prot_put_vi_lch_port);
  18128. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  18129. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  18130. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  18131. spkr_prot_put_vi_lch_port);
  18132. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  18133. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  18134. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  18135. spkr_prot_put_vi_rch_port);
  18136. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  18137. /* Frontend AIF */
  18138. /* Widget name equals to Front-End DAI name<Need confirmation>,
  18139. * Stream name must contains substring of front-end dai name
  18140. */
  18141. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  18142. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  18143. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  18144. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  18145. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  18146. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  18147. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  18148. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  18149. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  18150. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  18151. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  18152. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  18153. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  18154. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  18155. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  18156. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  18157. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  18158. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  18159. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  18160. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  18161. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  18162. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  18163. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  18164. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  18165. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  18166. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  18167. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  18168. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  18169. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  18170. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  18171. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  18172. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  18173. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  18174. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  18175. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  18176. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  18177. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  18178. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  18179. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  18180. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  18181. "VoiceMMode1 Playback", 0, 0, 0, 0),
  18182. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  18183. "VoiceMMode1 Capture", 0, 0, 0, 0),
  18184. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  18185. "VoiceMMode2 Playback", 0, 0, 0, 0),
  18186. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  18187. "VoiceMMode2 Capture", 0, 0, 0, 0),
  18188. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  18189. 0, 0, 0, 0),
  18190. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  18191. 0, 0, 0, 0),
  18192. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  18193. 0, 0, 0, 0),
  18194. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  18195. 0, 0, 0, 0),
  18196. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  18197. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  18198. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  18199. 0, 0, 0, 0),
  18200. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  18201. 0, 0, 0, 0),
  18202. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  18203. 0, 0, 0, 0),
  18204. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  18205. 0, 0, 0, 0),
  18206. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  18207. 0, 0, 0, 0),
  18208. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  18209. 0, 0, 0, 0),
  18210. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  18211. 0, 0, 0, 0),
  18212. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  18213. 0, 0, 0, 0),
  18214. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  18215. 0, 0, 0, 0),
  18216. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  18217. 0, 0, 0, 0),
  18218. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  18219. 0, 0, 0, 0),
  18220. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  18221. 0, 0, 0, 0),
  18222. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  18223. 0, 0, 0, 0),
  18224. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  18225. 0, 0, 0, 0),
  18226. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  18227. 0, 0, 0, 0),
  18228. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  18229. 0, 0, 0, 0),
  18230. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  18231. 0, 0, 0, 0),
  18232. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  18233. 0, 0, 0, 0),
  18234. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  18235. 0, 0, 0, 0),
  18236. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  18237. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  18238. 0, 0, 0, 0),
  18239. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  18240. "INT0 MI2S_RX Hostless Playback",
  18241. 0, 0, 0, 0),
  18242. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  18243. "INT4 MI2S_RX Hostless Playback",
  18244. 0, 0, 0, 0),
  18245. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  18246. "Primary MI2S_RX Hostless Playback",
  18247. 0, 0, 0, 0),
  18248. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  18249. "Secondary MI2S_RX Hostless Playback",
  18250. 0, 0, 0, 0),
  18251. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  18252. "Tertiary MI2S_RX Hostless Playback",
  18253. 0, 0, 0, 0),
  18254. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  18255. "Quaternary MI2S_RX Hostless Playback",
  18256. 0, 0, 0, 0),
  18257. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  18258. "Quinary MI2S_RX Hostless Playback",
  18259. 0, 0, 0, 0),
  18260. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  18261. 0, 0, 0, 0),
  18262. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  18263. 0, 0, 0, 0),
  18264. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  18265. 0, 0, 0, 0),
  18266. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  18267. 0, 0, 0, 0),
  18268. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  18269. 0, 0, 0, 0),
  18270. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  18271. "INT3 MI2S_TX Hostless Capture",
  18272. 0, 0, 0, 0),
  18273. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  18274. "Tertiary MI2S_TX Hostless Capture",
  18275. 0, 0, 0, 0),
  18276. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  18277. "Secondary MI2S_TX Hostless Capture",
  18278. 0, 0, 0, 0),
  18279. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  18280. "Primary MI2S_TX Hostless Capture",
  18281. 0, 0, 0, 0),
  18282. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  18283. 0, 0, 0, 0),
  18284. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  18285. 0, 0, 0, 0),
  18286. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  18287. "Quaternary MI2S_TX Hostless Capture",
  18288. 0, 0, 0, 0),
  18289. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  18290. "Quinary MI2S_TX Hostless Capture",
  18291. 0, 0, 0, 0),
  18292. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  18293. "Primary TDM0 Hostless Playback",
  18294. 0, 0, 0, 0),
  18295. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  18296. "Primary TDM0 Hostless Capture",
  18297. 0, 0, 0, 0),
  18298. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  18299. "Primary TDM1 Hostless Playback",
  18300. 0, 0, 0, 0),
  18301. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  18302. "Primary TDM1 Hostless Capture",
  18303. 0, 0, 0, 0),
  18304. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  18305. "Primary TDM2 Hostless Playback",
  18306. 0, 0, 0, 0),
  18307. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  18308. "Primary TDM2 Hostless Capture",
  18309. 0, 0, 0, 0),
  18310. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  18311. "Primary TDM3 Hostless Playback",
  18312. 0, 0, 0, 0),
  18313. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  18314. "Primary TDM3 Hostless Capture",
  18315. 0, 0, 0, 0),
  18316. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  18317. "Primary TDM4 Hostless Playback",
  18318. 0, 0, 0, 0),
  18319. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  18320. "Primary TDM4 Hostless Capture",
  18321. 0, 0, 0, 0),
  18322. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  18323. "Primary TDM5 Hostless Playback",
  18324. 0, 0, 0, 0),
  18325. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  18326. "Primary TDM5 Hostless Capture",
  18327. 0, 0, 0, 0),
  18328. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  18329. "Primary TDM6 Hostless Playback",
  18330. 0, 0, 0, 0),
  18331. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  18332. "Primary TDM6 Hostless Capture",
  18333. 0, 0, 0, 0),
  18334. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  18335. "Primary TDM7 Hostless Playback",
  18336. 0, 0, 0, 0),
  18337. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  18338. "Primary TDM7 Hostless Capture",
  18339. 0, 0, 0, 0),
  18340. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  18341. "Secondary TDM0 Hostless Playback",
  18342. 0, 0, 0, 0),
  18343. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  18344. "Secondary TDM0 Hostless Capture",
  18345. 0, 0, 0, 0),
  18346. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  18347. "Secondary TDM1 Hostless Playback",
  18348. 0, 0, 0, 0),
  18349. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  18350. "Secondary TDM1 Hostless Capture",
  18351. 0, 0, 0, 0),
  18352. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  18353. "Secondary TDM2 Hostless Playback",
  18354. 0, 0, 0, 0),
  18355. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  18356. "Secondary TDM2 Hostless Capture",
  18357. 0, 0, 0, 0),
  18358. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  18359. "Secondary TDM3 Hostless Playback",
  18360. 0, 0, 0, 0),
  18361. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  18362. "Secondary TDM3 Hostless Capture",
  18363. 0, 0, 0, 0),
  18364. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  18365. "Secondary TDM4 Hostless Playback",
  18366. 0, 0, 0, 0),
  18367. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  18368. "Secondary TDM4 Hostless Capture",
  18369. 0, 0, 0, 0),
  18370. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  18371. "Secondary TDM5 Hostless Playback",
  18372. 0, 0, 0, 0),
  18373. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  18374. "Secondary TDM5 Hostless Capture",
  18375. 0, 0, 0, 0),
  18376. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  18377. "Secondary TDM6 Hostless Playback",
  18378. 0, 0, 0, 0),
  18379. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  18380. "Secondary TDM6 Hostless Capture",
  18381. 0, 0, 0, 0),
  18382. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  18383. "Secondary TDM7 Hostless Playback",
  18384. 0, 0, 0, 0),
  18385. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  18386. "Secondary TDM7 Hostless Capture",
  18387. 0, 0, 0, 0),
  18388. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  18389. "Tertiary TDM0 Hostless Playback",
  18390. 0, 0, 0, 0),
  18391. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  18392. "Tertiary TDM0 Hostless Capture",
  18393. 0, 0, 0, 0),
  18394. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  18395. "Tertiary TDM1 Hostless Playback",
  18396. 0, 0, 0, 0),
  18397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  18398. "Tertiary TDM1 Hostless Capture",
  18399. 0, 0, 0, 0),
  18400. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  18401. "Tertiary TDM2 Hostless Playback",
  18402. 0, 0, 0, 0),
  18403. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  18404. "Tertiary TDM2 Hostless Capture",
  18405. 0, 0, 0, 0),
  18406. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  18407. "Tertiary TDM3 Hostless Playback",
  18408. 0, 0, 0, 0),
  18409. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  18410. "Tertiary TDM3 Hostless Capture",
  18411. 0, 0, 0, 0),
  18412. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  18413. "Tertiary TDM4 Hostless Playback",
  18414. 0, 0, 0, 0),
  18415. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  18416. "Tertiary TDM4 Hostless Capture",
  18417. 0, 0, 0, 0),
  18418. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  18419. "Tertiary TDM5 Hostless Playback",
  18420. 0, 0, 0, 0),
  18421. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  18422. "Tertiary TDM5 Hostless Capture",
  18423. 0, 0, 0, 0),
  18424. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  18425. "Tertiary TDM6 Hostless Playback",
  18426. 0, 0, 0, 0),
  18427. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  18428. "Tertiary TDM6 Hostless Capture",
  18429. 0, 0, 0, 0),
  18430. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  18431. "Tertiary TDM7 Hostless Playback",
  18432. 0, 0, 0, 0),
  18433. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  18434. "Tertiary TDM7 Hostless Capture",
  18435. 0, 0, 0, 0),
  18436. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  18437. "Quaternary TDM0 Hostless Playback",
  18438. 0, 0, 0, 0),
  18439. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  18440. "Quaternary TDM0 Hostless Capture",
  18441. 0, 0, 0, 0),
  18442. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  18443. "Quaternary TDM1 Hostless Playback",
  18444. 0, 0, 0, 0),
  18445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  18446. "Quaternary TDM1 Hostless Capture",
  18447. 0, 0, 0, 0),
  18448. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  18449. "Quaternary TDM2 Hostless Playback",
  18450. 0, 0, 0, 0),
  18451. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  18452. "Quaternary TDM2 Hostless Capture",
  18453. 0, 0, 0, 0),
  18454. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  18455. "Quaternary TDM3 Hostless Playback",
  18456. 0, 0, 0, 0),
  18457. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  18458. "Quaternary TDM3 Hostless Capture",
  18459. 0, 0, 0, 0),
  18460. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  18461. "Quaternary TDM4 Hostless Playback",
  18462. 0, 0, 0, 0),
  18463. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  18464. "Quaternary TDM4 Hostless Capture",
  18465. 0, 0, 0, 0),
  18466. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  18467. "Quaternary TDM5 Hostless Playback",
  18468. 0, 0, 0, 0),
  18469. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  18470. "Quaternary TDM5 Hostless Capture",
  18471. 0, 0, 0, 0),
  18472. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  18473. "Quaternary TDM6 Hostless Playback",
  18474. 0, 0, 0, 0),
  18475. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  18476. "Quaternary TDM6 Hostless Capture",
  18477. 0, 0, 0, 0),
  18478. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  18479. "Quaternary TDM7 Hostless Playback",
  18480. 0, 0, 0, 0),
  18481. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  18482. "Quaternary TDM7 Hostless Capture",
  18483. 0, 0, 0, 0),
  18484. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  18485. "Quinary TDM0 Hostless Playback",
  18486. 0, 0, 0, 0),
  18487. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  18488. "Quinary TDM0 Hostless Capture",
  18489. 0, 0, 0, 0),
  18490. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  18491. "Quinary TDM1 Hostless Playback",
  18492. 0, 0, 0, 0),
  18493. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  18494. "Quinary TDM1 Hostless Capture",
  18495. 0, 0, 0, 0),
  18496. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  18497. "Quinary TDM2 Hostless Playback",
  18498. 0, 0, 0, 0),
  18499. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  18500. "Quinary TDM2 Hostless Capture",
  18501. 0, 0, 0, 0),
  18502. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  18503. "Quinary TDM3 Hostless Playback",
  18504. 0, 0, 0, 0),
  18505. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  18506. "Quinary TDM3 Hostless Capture",
  18507. 0, 0, 0, 0),
  18508. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  18509. "Quinary TDM4 Hostless Playback",
  18510. 0, 0, 0, 0),
  18511. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  18512. "Quinary TDM4 Hostless Capture",
  18513. 0, 0, 0, 0),
  18514. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  18515. "Quinary TDM5 Hostless Playback",
  18516. 0, 0, 0, 0),
  18517. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  18518. "Quinary TDM5 Hostless Capture",
  18519. 0, 0, 0, 0),
  18520. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  18521. "Quinary TDM6 Hostless Playback",
  18522. 0, 0, 0, 0),
  18523. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  18524. "Quinary TDM6 Hostless Capture",
  18525. 0, 0, 0, 0),
  18526. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  18527. "Quinary TDM7 Hostless Playback",
  18528. 0, 0, 0, 0),
  18529. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  18530. "Quinary TDM7 Hostless Capture",
  18531. 0, 0, 0, 0),
  18532. /* LSM */
  18533. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  18534. 0, 0, 0, 0),
  18535. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  18536. 0, 0, 0, 0),
  18537. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  18538. 0, 0, 0, 0),
  18539. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  18540. 0, 0, 0, 0),
  18541. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  18542. 0, 0, 0, 0),
  18543. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  18544. 0, 0, 0, 0),
  18545. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  18546. 0, 0, 0, 0),
  18547. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  18548. 0, 0, 0, 0),
  18549. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  18550. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  18551. /* Backend AIF */
  18552. /* Stream name equals to backend dai link stream name */
  18553. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  18554. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  18555. 0, 0, 0, 0),
  18556. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  18557. 0, 0, 0, 0),
  18558. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  18559. 0, 0, 0, 0),
  18560. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  18561. 0, 0, 0, 0),
  18562. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  18563. 0, 0, 0, 0),
  18564. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  18565. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  18566. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  18567. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  18568. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  18569. 0, 0, 0, 0),
  18570. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  18571. 0, 0, 0, 0),
  18572. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  18573. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  18574. 0, 0, 0, 0),
  18575. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  18576. 0, 0, 0, 0),
  18577. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  18578. 0, 0, 0, 0),
  18579. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  18580. "Secondary MI2S Playback SD1",
  18581. 0, 0, 0, 0),
  18582. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  18583. 0, 0, 0, 0),
  18584. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  18585. 0, 0, 0, 0),
  18586. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  18587. 0, 0, 0, 0),
  18588. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  18589. 0, 0, 0, 0),
  18590. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  18591. 0, 0, 0, 0),
  18592. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  18593. 0, 0, 0, 0),
  18594. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  18595. 0, 0, 0, 0),
  18596. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  18597. 0, 0, 0, 0),
  18598. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  18599. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  18600. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  18601. 0, 0, 0, 0),
  18602. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  18603. 0, 0, 0, 0),
  18604. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  18605. 0, 0, 0, 0),
  18606. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  18607. 0, 0, 0, 0),
  18608. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  18609. 0, 0, 0, 0),
  18610. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  18611. 0, 0, 0, 0),
  18612. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  18613. 0, 0, 0, 0),
  18614. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  18615. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  18616. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  18617. 0, 0, 0, 0),
  18618. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  18619. 0, 0, 0, 0),
  18620. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  18621. 0, 0, 0, 0),
  18622. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  18623. 0, 0, 0, 0),
  18624. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  18625. 0, 0, 0, 0),
  18626. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  18627. 0, 0, 0, 0),
  18628. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  18629. 0, 0, 0, 0),
  18630. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  18631. 0, 0, 0, 0),
  18632. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  18633. 0, 0, 0, 0),
  18634. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  18635. 0, 0, 0, 0),
  18636. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  18637. 0, 0, 0, 0),
  18638. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  18639. 0, 0, 0, 0),
  18640. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  18641. 0, 0, 0, 0),
  18642. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  18643. 0, 0, 0, 0),
  18644. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  18645. 0, 0, 0, 0),
  18646. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  18647. 0, 0, 0, 0),
  18648. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  18649. 0, 0, 0, 0),
  18650. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  18651. 0, 0, 0, 0),
  18652. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  18653. 0, 0, 0, 0),
  18654. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  18655. 0, 0, 0, 0),
  18656. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  18657. 0, 0, 0, 0),
  18658. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  18659. 0, 0, 0, 0),
  18660. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  18661. 0, 0, 0, 0),
  18662. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  18663. 0, 0, 0, 0),
  18664. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  18665. 0, 0, 0, 0),
  18666. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  18667. 0, 0, 0, 0),
  18668. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  18669. 0, 0, 0, 0),
  18670. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  18671. 0, 0, 0, 0),
  18672. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  18673. 0, 0, 0, 0),
  18674. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  18675. 0, 0, 0, 0),
  18676. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  18677. 0, 0, 0, 0),
  18678. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  18679. 0, 0, 0, 0),
  18680. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  18681. 0, 0, 0, 0),
  18682. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  18683. 0, 0, 0, 0),
  18684. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  18685. 0, 0, 0, 0),
  18686. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  18687. 0, 0, 0, 0),
  18688. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  18689. 0, 0, 0, 0),
  18690. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  18691. 0, 0, 0, 0),
  18692. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  18693. 0, 0, 0, 0),
  18694. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  18695. 0, 0, 0, 0),
  18696. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  18697. 0, 0, 0, 0),
  18698. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  18699. 0, 0, 0, 0),
  18700. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  18701. 0, 0, 0, 0),
  18702. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  18703. 0, 0, 0, 0),
  18704. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  18705. 0, 0, 0, 0),
  18706. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  18707. 0, 0, 0, 0),
  18708. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  18709. 0, 0, 0, 0),
  18710. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  18711. 0, 0, 0, 0),
  18712. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  18713. 0, 0, 0, 0),
  18714. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  18715. 0, 0, 0, 0),
  18716. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  18717. 0, 0, 0, 0),
  18718. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  18719. 0, 0, 0, 0),
  18720. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  18721. 0, 0, 0, 0),
  18722. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  18723. 0, 0, 0, 0),
  18724. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  18725. 0, 0, 0, 0),
  18726. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  18727. 0, 0, 0, 0),
  18728. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  18729. 0, 0, 0, 0),
  18730. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  18731. 0, 0, 0, 0),
  18732. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  18733. 0, 0, 0, 0),
  18734. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  18735. 0, 0, 0, 0),
  18736. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  18737. 0, 0, 0, 0),
  18738. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  18739. 0, 0, 0, 0),
  18740. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  18741. 0, 0, 0, 0),
  18742. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  18743. 0, 0, 0, 0),
  18744. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  18745. 0, 0, 0, 0),
  18746. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  18747. 0, 0, 0, 0),
  18748. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  18749. 0, 0, 0, 0),
  18750. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  18751. 0, 0, 0, 0),
  18752. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  18753. 0, 0, 0, 0),
  18754. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  18755. 0, 0, 0, 0),
  18756. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  18757. 0, 0, 0, 0),
  18758. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  18759. 0, 0, 0, 0),
  18760. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  18761. 0, 0, 0, 0),
  18762. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  18763. 0, 0, 0, 0),
  18764. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  18765. 0, 0, 0, 0),
  18766. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  18767. 0, 0, 0, 0),
  18768. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  18769. 0, 0, 0, 0),
  18770. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  18771. 0, 0, 0, 0),
  18772. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  18773. 0, 0, 0, 0),
  18774. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  18775. 0, 0, 0, 0),
  18776. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  18777. 0, 0, 0, 0),
  18778. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  18779. 0, 0, 0, 0),
  18780. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  18781. 0, 0, 0, 0),
  18782. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  18783. 0, 0, 0, 0),
  18784. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  18785. 0, 0, 0, 0),
  18786. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  18787. 0, 0, 0, 0),
  18788. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  18789. 0, 0, 0, 0),
  18790. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  18791. 0, 0, 0, 0),
  18792. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  18793. 0, 0, 0, 0),
  18794. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  18795. 0, 0, 0, 0),
  18796. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  18797. 0, 0, 0, 0),
  18798. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  18799. 0, 0, 0, 0),
  18800. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  18801. 0, 0, 0, 0),
  18802. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  18803. 0, 0, 0, 0),
  18804. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  18805. 0, 0, 0, 0),
  18806. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  18807. 0, 0, 0, 0),
  18808. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  18809. 0, 0, 0, 0),
  18810. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  18811. 0, 0, 0, 0),
  18812. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  18813. 0, 0, 0, 0),
  18814. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  18815. 0, 0, 0, 0),
  18816. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  18817. 0, 0, 0, 0),
  18818. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  18819. 0, 0, 0, 0),
  18820. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18821. 0, 0, 0, 0),
  18822. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18823. 0, 0, 0, 0),
  18824. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18825. 0, 0, 0, 0),
  18826. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18827. 0, 0, 0, 0),
  18828. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18829. 0, 0, 0, 0),
  18830. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18831. 0, 0, 0, 0),
  18832. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18833. 0, 0, 0, 0),
  18834. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18835. 0, 0, 0, 0),
  18836. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18837. 0, 0, 0, 0),
  18838. /* incall */
  18839. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18840. 0, 0, 0, 0),
  18841. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18842. 0, 0, 0, 0),
  18843. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18844. 0, 0, 0, 0),
  18845. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18846. 0, 0, 0, 0),
  18847. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18848. 0, 0, 0, 0),
  18849. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18850. 0, 0, 0, 0),
  18851. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18852. 0, 0, 0, 0),
  18853. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18854. 0, 0, 0, 0),
  18855. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18856. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18857. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18858. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18859. 0, 0, 0, 0),
  18860. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18861. 0, 0, 0, 0),
  18862. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18863. 0, 0, 0, 0),
  18864. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18865. 0, 0, 0, 0),
  18866. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18867. 0, 0, 0, 0),
  18868. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18869. 0, 0, 0, 0),
  18870. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18871. 0, 0, 0, 0),
  18872. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18873. 0, 0, 0, 0),
  18874. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18875. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18876. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18877. 0, 0, 0, 0),
  18878. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18879. 0, 0, 0, 0),
  18880. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18881. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18882. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18883. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18884. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18885. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18886. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18887. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18888. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18889. /* In- call recording */
  18890. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18891. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18892. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  18893. 0, 0, 0, 0),
  18894. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18895. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18896. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18897. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18898. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18899. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18900. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18901. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18902. /* Switch Definitions */
  18903. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18904. &slim_fm_switch_mixer_controls),
  18905. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18906. &slim1_fm_switch_mixer_controls),
  18907. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18908. &slim3_fm_switch_mixer_controls),
  18909. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18910. &slim4_fm_switch_mixer_controls),
  18911. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18912. &slim6_fm_switch_mixer_controls),
  18913. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18914. &pcm_rx_switch_mixer_controls),
  18915. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18916. &int0_mi2s_rx_switch_mixer_controls),
  18917. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18918. &int4_mi2s_rx_switch_mixer_controls),
  18919. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18920. &pri_mi2s_rx_switch_mixer_controls),
  18921. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18922. &sec_mi2s_rx_switch_mixer_controls),
  18923. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18924. &tert_mi2s_rx_switch_mixer_controls),
  18925. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18926. &quat_mi2s_rx_switch_mixer_controls),
  18927. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18928. &quin_mi2s_rx_switch_mixer_controls),
  18929. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  18930. &sco_slim7_switch_mixer_controls),
  18931. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18932. &hfp_pri_aux_switch_mixer_controls),
  18933. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18934. &hfp_aux_switch_mixer_controls),
  18935. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18936. &hfp_int_switch_mixer_controls),
  18937. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18938. &hfp_slim7_switch_mixer_controls),
  18939. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18940. &usb_switch_mixer_controls),
  18941. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18942. &a2dp_slim7_switch_mixer_controls),
  18943. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18944. &cdc_dma_wsa_switch_mixer_controls),
  18945. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18946. &cdc_dma_rx_switch_mixer_controls),
  18947. /* Mixer definitions */
  18948. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18949. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18950. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18951. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18952. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18953. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18954. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18955. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18956. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18957. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18958. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18959. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18960. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18961. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18962. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18963. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18964. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18965. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18966. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18967. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18968. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18969. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18970. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18971. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18972. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18973. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18974. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18975. quaternary_mi2s_rx_mixer_controls,
  18976. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18977. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18978. tertiary_mi2s_rx_mixer_controls,
  18979. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18980. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18981. secondary_mi2s_rx_mixer_controls,
  18982. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18983. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18984. secondary_mi2s_rx2_mixer_controls,
  18985. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18986. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18987. primary_mi2s_rx_mixer_controls,
  18988. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18989. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18990. int0_mi2s_rx_mixer_controls,
  18991. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18992. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18993. int4_mi2s_rx_mixer_controls,
  18994. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18995. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18996. quinary_mi2s_rx_mixer_controls,
  18997. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18998. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18999. pri_tdm_rx_0_mixer_controls,
  19000. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  19001. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19002. pri_tdm_rx_1_mixer_controls,
  19003. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  19004. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19005. pri_tdm_rx_2_mixer_controls,
  19006. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  19007. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19008. pri_tdm_rx_3_mixer_controls,
  19009. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  19010. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19011. pri_tdm_tx_0_mixer_controls,
  19012. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  19013. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19014. sec_tdm_rx_0_mixer_controls,
  19015. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  19016. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19017. sec_tdm_rx_1_mixer_controls,
  19018. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  19019. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19020. sec_tdm_rx_2_mixer_controls,
  19021. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  19022. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19023. sec_tdm_rx_3_mixer_controls,
  19024. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  19025. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19026. sec_tdm_tx_0_mixer_controls,
  19027. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  19028. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19029. tert_tdm_rx_0_mixer_controls,
  19030. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  19031. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19032. tert_tdm_tx_0_mixer_controls,
  19033. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  19034. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19035. tert_tdm_rx_1_mixer_controls,
  19036. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  19037. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19038. tert_tdm_rx_2_mixer_controls,
  19039. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  19040. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19041. tert_tdm_rx_3_mixer_controls,
  19042. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  19043. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19044. tert_tdm_rx_4_mixer_controls,
  19045. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  19046. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19047. quat_tdm_rx_0_mixer_controls,
  19048. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  19049. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19050. quat_tdm_tx_0_mixer_controls,
  19051. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  19052. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19053. quat_tdm_rx_1_mixer_controls,
  19054. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  19055. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19056. quat_tdm_rx_2_mixer_controls,
  19057. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  19058. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19059. quat_tdm_rx_3_mixer_controls,
  19060. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  19061. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19062. quin_tdm_rx_0_mixer_controls,
  19063. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  19064. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19065. quin_tdm_tx_0_mixer_controls,
  19066. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  19067. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19068. quin_tdm_rx_1_mixer_controls,
  19069. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  19070. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19071. quin_tdm_rx_2_mixer_controls,
  19072. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  19073. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19074. quin_tdm_rx_3_mixer_controls,
  19075. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  19076. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19077. wsa_cdc_dma_rx_0_mixer_controls,
  19078. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  19079. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19080. wsa_cdc_dma_rx_1_mixer_controls,
  19081. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  19082. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19083. rx_cdc_dma_rx_0_mixer_controls,
  19084. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  19085. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19086. rx_cdc_dma_rx_1_mixer_controls,
  19087. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  19088. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19089. rx_cdc_dma_rx_2_mixer_controls,
  19090. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  19091. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19092. rx_cdc_dma_rx_3_mixer_controls,
  19093. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  19094. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19095. rx_cdc_dma_rx_4_mixer_controls,
  19096. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  19097. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19098. rx_cdc_dma_rx_5_mixer_controls,
  19099. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  19100. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19101. rx_cdc_dma_rx_6_mixer_controls,
  19102. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  19103. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19104. rx_cdc_dma_rx_7_mixer_controls,
  19105. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  19106. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  19107. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  19108. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  19109. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  19110. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  19111. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  19112. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  19113. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  19114. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  19115. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  19116. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  19117. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  19118. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  19119. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  19120. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  19121. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  19122. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  19123. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  19124. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  19125. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  19126. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  19127. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  19128. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  19129. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  19130. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  19131. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  19132. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  19133. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  19134. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  19135. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  19136. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  19137. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  19138. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  19139. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  19140. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  19141. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  19142. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19143. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  19144. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19145. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  19146. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19147. tert_auxpcm_rx_mixer_controls,
  19148. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  19149. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19150. quat_auxpcm_rx_mixer_controls,
  19151. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  19152. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19153. quin_auxpcm_rx_mixer_controls,
  19154. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  19155. /* incall */
  19156. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  19157. incall_music_delivery_mixer_controls,
  19158. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  19159. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  19160. incall_music2_delivery_mixer_controls,
  19161. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  19162. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19163. slimbus_4_rx_mixer_controls,
  19164. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  19165. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19166. slimbus_6_rx_mixer_controls,
  19167. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  19168. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19169. usb_audio_rx_mixer_controls,
  19170. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  19171. /* Voice Mixer */
  19172. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  19173. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  19174. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  19175. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  19176. SND_SOC_NOPM, 0, 0,
  19177. sec_i2s_rx_voice_mixer_controls,
  19178. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  19179. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  19180. SND_SOC_NOPM, 0, 0,
  19181. sec_mi2s_rx_voice_mixer_controls,
  19182. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  19183. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  19184. SND_SOC_NOPM, 0, 0,
  19185. slimbus_rx_voice_mixer_controls,
  19186. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  19187. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  19188. SND_SOC_NOPM, 0, 0,
  19189. bt_sco_rx_voice_mixer_controls,
  19190. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  19191. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  19192. SND_SOC_NOPM, 0, 0,
  19193. afe_pcm_rx_voice_mixer_controls,
  19194. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  19195. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  19196. SND_SOC_NOPM, 0, 0,
  19197. aux_pcm_rx_voice_mixer_controls,
  19198. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  19199. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  19200. SND_SOC_NOPM, 0, 0,
  19201. sec_aux_pcm_rx_voice_mixer_controls,
  19202. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  19203. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  19204. SND_SOC_NOPM, 0, 0,
  19205. tert_aux_pcm_rx_voice_mixer_controls,
  19206. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  19207. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  19208. SND_SOC_NOPM, 0, 0,
  19209. quat_aux_pcm_rx_voice_mixer_controls,
  19210. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  19211. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  19212. SND_SOC_NOPM, 0, 0,
  19213. quin_aux_pcm_rx_voice_mixer_controls,
  19214. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  19215. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  19216. SND_SOC_NOPM, 0, 0,
  19217. hdmi_rx_voice_mixer_controls,
  19218. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  19219. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  19220. SND_SOC_NOPM, 0, 0,
  19221. mi2s_rx_voice_mixer_controls,
  19222. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  19223. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  19224. SND_SOC_NOPM, 0, 0,
  19225. pri_mi2s_rx_voice_mixer_controls,
  19226. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  19227. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  19228. SND_SOC_NOPM, 0, 0,
  19229. int0_mi2s_rx_voice_mixer_controls,
  19230. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  19231. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  19232. SND_SOC_NOPM, 0, 0,
  19233. int4_mi2s_rx_voice_mixer_controls,
  19234. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  19235. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  19236. SND_SOC_NOPM, 0, 0,
  19237. tert_mi2s_rx_voice_mixer_controls,
  19238. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  19239. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  19240. SND_SOC_NOPM, 0, 0,
  19241. quat_mi2s_rx_voice_mixer_controls,
  19242. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  19243. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  19244. SND_SOC_NOPM, 0, 0,
  19245. quin_mi2s_rx_voice_mixer_controls,
  19246. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  19247. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  19248. SND_SOC_NOPM, 0, 0,
  19249. pri_tdm_rx_0_voice_mixer_controls,
  19250. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  19251. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  19252. SND_SOC_NOPM, 0, 0,
  19253. pri_tdm_rx_1_voice_mixer_controls,
  19254. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  19255. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  19256. SND_SOC_NOPM, 0, 0,
  19257. pri_tdm_rx_2_voice_mixer_controls,
  19258. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  19259. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  19260. SND_SOC_NOPM, 0, 0,
  19261. pri_tdm_rx_3_voice_mixer_controls,
  19262. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  19263. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  19264. SND_SOC_NOPM, 0, 0,
  19265. quat_tdm_rx_2_voice_mixer_controls,
  19266. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  19267. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  19268. SND_SOC_NOPM, 0, 0,
  19269. wsa_cdc_dma_rx_0_voice_mixer_controls,
  19270. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  19271. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  19272. SND_SOC_NOPM, 0, 0,
  19273. rx_cdc_dma_rx_0_voice_mixer_controls,
  19274. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  19275. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  19276. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  19277. ARRAY_SIZE(tx_voip_mixer_controls)),
  19278. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  19279. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  19280. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  19281. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  19282. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  19283. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  19284. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19285. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  19286. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19287. int_bt_a2dp_rx_mixer_controls,
  19288. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  19289. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19290. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  19291. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19292. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  19293. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19294. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  19295. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19296. tx_voice2_stub_mixer_controls,
  19297. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  19298. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19299. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  19300. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  19301. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  19302. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  19303. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  19304. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19305. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  19306. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  19307. SND_SOC_NOPM, 0, 0,
  19308. slimbus_6_rx_voice_mixer_controls,
  19309. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  19310. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19311. slimbus_7_rx_voice_mixer_controls,
  19312. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  19313. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19314. slimbus_8_rx_voice_mixer_controls,
  19315. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  19316. /* port mixer */
  19317. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  19318. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  19319. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  19320. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  19321. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  19322. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  19323. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  19324. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  19325. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  19326. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  19327. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  19328. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  19329. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  19330. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  19331. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  19332. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  19333. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  19334. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  19335. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19336. sbus_1_rx_port_mixer_controls,
  19337. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  19338. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19339. bt_sco_rx_port_mixer_controls,
  19340. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  19341. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  19342. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  19343. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  19344. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  19345. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  19346. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  19347. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  19348. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  19349. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  19350. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  19351. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  19352. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  19353. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  19354. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  19355. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  19356. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  19357. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  19358. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  19359. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  19360. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  19361. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  19362. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19363. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  19364. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19365. primary_mi2s_rx_port_mixer_controls,
  19366. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  19367. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19368. sec_mi2s_rx_port_mixer_controls,
  19369. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  19370. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19371. tert_mi2s_rx_port_mixer_controls,
  19372. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  19373. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19374. quat_mi2s_rx_port_mixer_controls,
  19375. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  19376. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19377. quin_mi2s_rx_port_mixer_controls,
  19378. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  19379. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19380. pri_tdm_rx_0_port_mixer_controls,
  19381. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  19382. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19383. pri_tdm_rx_1_port_mixer_controls,
  19384. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  19385. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19386. pri_tdm_rx_2_port_mixer_controls,
  19387. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  19388. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19389. pri_tdm_rx_3_port_mixer_controls,
  19390. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  19391. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19392. sec_tdm_rx_0_port_mixer_controls,
  19393. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  19394. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19395. sec_tdm_rx_1_port_mixer_controls,
  19396. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  19397. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19398. sec_tdm_rx_2_port_mixer_controls,
  19399. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  19400. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19401. sec_tdm_rx_3_port_mixer_controls,
  19402. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  19403. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  19404. sec_tdm_rx_7_port_mixer_controls,
  19405. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  19406. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19407. tert_tdm_rx_0_port_mixer_controls,
  19408. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  19409. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19410. tert_tdm_rx_1_port_mixer_controls,
  19411. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  19412. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19413. tert_tdm_rx_2_port_mixer_controls,
  19414. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  19415. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19416. tert_tdm_rx_3_port_mixer_controls,
  19417. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  19418. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19419. quat_tdm_rx_0_port_mixer_controls,
  19420. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  19421. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19422. quat_tdm_rx_1_port_mixer_controls,
  19423. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  19424. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19425. quat_tdm_rx_2_port_mixer_controls,
  19426. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  19427. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19428. quat_tdm_rx_3_port_mixer_controls,
  19429. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  19430. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  19431. quat_tdm_rx_7_port_mixer_controls,
  19432. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  19433. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19434. quin_tdm_rx_0_port_mixer_controls,
  19435. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  19436. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19437. quin_tdm_rx_1_port_mixer_controls,
  19438. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  19439. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19440. quin_tdm_rx_2_port_mixer_controls,
  19441. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  19442. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19443. quin_tdm_rx_3_port_mixer_controls,
  19444. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  19445. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19446. int0_mi2s_rx_port_mixer_controls,
  19447. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  19448. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19449. int4_mi2s_rx_port_mixer_controls,
  19450. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  19451. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19452. wsa_cdc_dma_rx_0_port_mixer_controls,
  19453. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  19454. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19455. rx_cdc_dma_rx_0_port_mixer_controls,
  19456. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  19457. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  19458. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  19459. ARRAY_SIZE(tx_qchat_mixer_controls)),
  19460. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  19461. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  19462. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  19463. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  19464. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  19465. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  19466. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  19467. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  19468. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  19469. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  19470. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  19471. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  19472. /* lsm mixer definitions */
  19473. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  19474. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  19475. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  19476. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  19477. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  19478. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  19479. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  19480. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  19481. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  19482. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  19483. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  19484. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  19485. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  19486. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  19487. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  19488. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  19489. /* Virtual Pins to force backends ON atm */
  19490. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  19491. SND_SOC_DAPM_INPUT("BE_IN"),
  19492. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  19493. &slim0_rx_vi_fb_lch_mux),
  19494. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  19495. &slim0_rx_vi_fb_rch_mux),
  19496. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  19497. &wsa_rx_0_vi_fb_lch_mux),
  19498. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  19499. &wsa_rx_0_vi_fb_rch_mux),
  19500. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  19501. &mi2s_rx_vi_fb_mux),
  19502. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  19503. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  19504. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  19505. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  19506. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  19507. &voc_ext_ec_mux),
  19508. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  19509. &ext_ec_ref_mux_ul1),
  19510. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  19511. &ext_ec_ref_mux_ul2),
  19512. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  19513. &ext_ec_ref_mux_ul3),
  19514. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  19515. &ext_ec_ref_mux_ul4),
  19516. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  19517. &ext_ec_ref_mux_ul5),
  19518. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  19519. &ext_ec_ref_mux_ul6),
  19520. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  19521. &ext_ec_ref_mux_ul8),
  19522. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  19523. &ext_ec_ref_mux_ul9),
  19524. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  19525. &ext_ec_ref_mux_ul10),
  19526. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  19527. &ext_ec_ref_mux_ul16),
  19528. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  19529. &ext_ec_ref_mux_ul17),
  19530. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  19531. &ext_ec_ref_mux_ul18),
  19532. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  19533. &ext_ec_ref_mux_ul19),
  19534. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  19535. &ext_ec_ref_mux_ul28),
  19536. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  19537. &ext_ec_ref_mux_ul29),
  19538. };
  19539. static const struct snd_soc_dapm_route intercon[] = {
  19540. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19541. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19542. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19543. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19544. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19545. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19546. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19547. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19548. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19549. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19550. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19551. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19552. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19553. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19554. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19555. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19556. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19557. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  19558. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19559. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19560. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19561. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19562. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19563. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19564. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19565. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19566. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19567. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19568. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19569. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19570. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19571. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19572. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19573. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19574. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19575. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  19576. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19577. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19578. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19579. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19580. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19581. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19582. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19583. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19584. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19585. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19586. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19587. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19588. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19589. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19590. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19591. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19592. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19593. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  19594. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19595. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19596. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19597. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19598. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19599. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19600. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19601. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19602. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19603. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19604. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19605. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19606. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19607. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19608. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19609. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19610. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19611. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  19612. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19613. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19614. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19615. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19616. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19617. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19618. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19619. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19620. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19621. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19622. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19623. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19624. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19625. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19626. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19627. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19628. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19629. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  19630. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19631. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19632. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19633. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19634. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19635. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19636. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19637. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19638. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19639. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19640. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19641. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19642. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19643. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19644. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19645. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19646. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19647. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  19648. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19649. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19650. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19651. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19652. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19653. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19654. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19655. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19656. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19657. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19658. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19659. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19660. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19661. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19662. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19663. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19664. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19665. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  19666. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19667. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19668. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19669. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19670. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19671. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19672. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19673. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19674. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19675. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19676. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19677. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19678. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19679. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19680. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19681. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19682. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19683. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  19684. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19685. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19686. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19687. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19688. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19689. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19690. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19691. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19692. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19693. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19694. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19695. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19696. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19697. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19698. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19699. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19700. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19701. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  19702. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19703. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19704. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19705. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19706. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19707. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19708. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19709. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19710. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19711. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19712. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19713. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19714. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19715. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19716. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19717. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19718. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19719. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  19720. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19721. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19722. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19723. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19724. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19725. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19726. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19727. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19728. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19729. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19730. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19731. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19732. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19733. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19734. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19735. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19736. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19737. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  19738. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19739. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19740. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19741. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19742. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19743. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19744. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19745. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19746. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19747. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19748. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19749. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19750. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19751. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19752. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19753. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19754. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19755. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  19756. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19757. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19758. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19759. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19760. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19761. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19762. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19763. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19764. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19765. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19766. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19767. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19768. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19769. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19770. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19771. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19772. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19773. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  19774. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19775. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19776. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19777. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19778. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19779. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19780. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19781. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19782. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19783. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19784. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19785. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19786. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19787. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19788. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19789. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19790. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19791. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  19792. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19793. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19794. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19795. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19796. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19797. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19798. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19799. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19800. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19801. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19802. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19803. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19804. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19805. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19806. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19807. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19808. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19809. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  19810. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  19811. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  19812. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  19813. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  19814. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  19815. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  19816. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  19817. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  19818. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  19819. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  19820. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  19821. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  19822. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  19823. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  19824. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  19825. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  19826. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  19827. {"HDMI", NULL, "HDMI Mixer"},
  19828. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  19829. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  19830. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  19831. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  19832. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  19833. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  19834. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  19835. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  19836. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  19837. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  19838. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  19839. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  19840. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  19841. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  19842. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19843. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19844. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19845. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19846. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19847. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19848. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19849. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19850. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19851. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19852. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19853. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19854. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19855. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19856. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19857. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19858. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19859. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19860. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19861. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19862. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19863. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19864. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19865. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19866. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19867. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19868. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19869. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19870. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19871. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19872. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19873. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19874. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19875. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19876. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19877. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19878. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19879. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19880. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19881. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19882. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19883. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19884. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19885. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19886. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19887. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19888. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19889. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19890. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19891. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19892. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19893. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19894. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19895. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19896. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19897. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19898. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19899. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19900. /* incall */
  19901. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19902. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19903. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19904. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19905. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19906. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19907. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19908. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19909. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19910. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19911. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19912. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19913. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19914. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19915. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19916. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19917. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19918. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19919. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19920. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19921. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19922. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19923. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19924. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19925. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19926. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19927. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19928. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19929. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19930. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19931. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19932. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19933. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19934. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19935. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19936. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19937. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19938. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19939. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19940. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19941. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19942. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19943. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19944. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19945. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19946. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19947. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19948. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19949. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19950. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19951. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19952. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19953. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19954. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19955. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19956. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19957. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19958. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19959. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19960. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19961. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19962. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19963. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19964. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19965. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19966. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19967. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19968. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19969. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19970. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19971. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19972. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19973. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19974. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19975. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19976. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19977. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19978. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19979. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19980. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19981. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19982. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19983. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19984. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19985. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19986. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19987. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19988. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19989. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19990. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19991. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19992. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19993. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19994. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19995. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19996. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19997. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19998. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19999. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20000. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20001. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20002. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20003. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20004. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20005. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20006. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20007. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20008. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20009. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20010. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20011. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20012. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20013. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20014. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20015. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20016. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20017. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20018. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20019. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20020. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20021. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20022. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20023. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20024. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20025. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20026. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20027. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20028. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20029. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20030. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20031. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20032. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20033. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20034. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20035. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20036. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20037. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20038. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20039. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20040. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20041. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20042. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20043. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20044. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20045. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20046. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20047. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20048. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20049. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20050. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20051. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20052. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20053. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20054. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20055. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20056. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20057. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20058. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20059. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20060. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20061. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20062. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20063. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20064. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20065. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20066. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20067. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20068. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20069. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20070. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20071. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20072. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20073. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20074. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20075. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20076. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  20077. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  20078. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20079. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20080. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20081. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20082. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20083. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20084. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20085. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20086. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20087. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20088. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20089. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20090. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20091. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20092. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20093. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  20094. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  20095. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20096. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20097. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20098. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20099. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20100. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20101. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20102. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20103. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20104. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20105. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20106. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20107. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20108. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20109. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  20110. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  20111. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20112. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20113. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20114. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20115. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20116. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20117. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20118. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20119. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20120. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20121. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20122. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20123. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20124. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20125. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  20126. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  20127. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20128. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  20129. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20130. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20131. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20132. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20133. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20134. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20135. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20136. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20137. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20138. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20139. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20140. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20141. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20142. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20143. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20144. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20145. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20146. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  20147. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  20148. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20149. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20150. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20151. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20152. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20153. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20154. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20155. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20156. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20157. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20158. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20159. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20160. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20161. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20162. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20163. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  20164. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20165. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20166. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20167. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20168. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20169. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20170. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20171. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20172. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20173. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20174. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20175. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20176. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20177. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20178. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20179. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  20180. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20181. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20182. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20183. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20184. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20185. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20186. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20187. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20188. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20189. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20190. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20191. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20192. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20193. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20194. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20195. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20196. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20197. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  20198. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20199. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20200. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20201. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20202. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20203. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20204. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20205. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20206. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20207. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20208. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20209. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20210. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20211. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20212. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20213. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20214. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20215. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  20216. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20217. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20218. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20219. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20220. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20221. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20222. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20223. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20224. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20225. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20226. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20227. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20228. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20229. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20230. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20231. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20232. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20233. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  20234. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20235. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20236. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20237. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20238. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20239. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20240. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20241. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20242. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20243. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20244. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20245. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20246. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20247. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20248. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20249. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20250. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20251. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  20252. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20253. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20254. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20255. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20256. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20257. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20258. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20259. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20260. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20261. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20262. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20263. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20264. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20265. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20266. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20267. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20268. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20269. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  20270. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20271. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20272. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20273. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20274. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20275. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20276. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20277. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20278. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20279. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20280. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20281. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20282. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20283. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20284. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20285. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20286. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  20287. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20288. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20289. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20290. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20291. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20292. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20293. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20294. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20295. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20296. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20297. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20298. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20299. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20300. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20301. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20302. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20303. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20304. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  20305. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20306. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20307. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20308. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20309. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20310. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20311. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20312. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20313. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20314. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20315. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20316. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20317. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20318. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20319. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20320. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20321. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20322. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  20323. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20324. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20325. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20326. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20327. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20328. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20329. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20330. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20331. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20332. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20333. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20334. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20335. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20336. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20337. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20338. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20339. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20340. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  20341. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20342. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20343. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20344. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20345. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20346. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20347. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20348. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20349. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20350. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20351. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20352. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20353. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20354. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20355. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20356. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20357. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20358. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  20359. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20360. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20361. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20362. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20363. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20364. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20365. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20366. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20367. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20368. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20369. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20370. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20371. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20372. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20373. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20374. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20375. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  20376. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20377. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20378. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20379. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20380. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20381. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20382. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20383. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20384. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20385. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20386. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20387. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20388. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20389. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20390. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20391. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20392. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20393. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  20394. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20395. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20396. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20397. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20398. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20399. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20400. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20401. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20402. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20403. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20404. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20405. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20406. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20407. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20408. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20409. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20410. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  20411. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20412. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20413. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20414. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20415. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20416. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20417. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20418. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20419. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20420. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20421. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20422. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20423. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20424. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20425. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20426. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20427. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20428. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  20429. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20430. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20431. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20432. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20433. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20434. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20435. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20436. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20437. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20438. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20439. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20440. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20441. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20442. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20443. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20444. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20445. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20446. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  20447. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20448. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20449. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20450. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20451. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20452. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20453. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20454. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20455. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20456. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20457. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20458. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20459. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20460. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20461. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20462. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20463. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20464. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  20465. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20466. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20467. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20468. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20469. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20470. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20471. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20472. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20473. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20474. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20475. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20476. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20477. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20478. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20479. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20480. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20481. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20482. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  20483. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20484. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20485. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20486. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20487. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20488. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20489. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20490. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20491. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20492. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20493. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20494. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20495. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20496. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20497. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20498. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20499. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20500. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20501. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  20502. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20503. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20504. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20505. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20506. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20507. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20508. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20509. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20510. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20511. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20512. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20513. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20514. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20515. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20516. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20517. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20518. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  20519. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20520. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20521. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20522. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20523. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20524. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20525. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20526. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20527. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20528. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20529. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20530. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20531. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20532. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20533. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20534. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20535. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20536. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20537. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  20538. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20539. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20540. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20541. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20542. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20543. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20544. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20545. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20546. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20547. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20548. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20549. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20550. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20551. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20552. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20553. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20554. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20555. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20556. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  20557. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20558. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20559. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20560. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20561. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20562. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20563. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20564. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20565. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20566. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20567. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20568. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20569. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20570. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20571. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20572. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20573. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20574. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20575. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  20576. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20577. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20578. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20579. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20580. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20581. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20582. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20583. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20584. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20585. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20586. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20587. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20588. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20589. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20590. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20591. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20592. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20593. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20594. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  20595. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20596. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20597. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20598. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20599. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20600. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20601. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20602. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20603. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20604. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20605. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20606. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20607. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20608. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20609. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20610. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20611. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  20612. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20613. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20614. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20615. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20616. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20617. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20618. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20619. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20620. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20621. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20622. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20623. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20624. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20625. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20626. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20627. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20628. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20629. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20630. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  20631. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20632. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20633. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20634. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20635. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20636. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20637. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20638. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20639. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20640. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20641. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20642. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20643. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20644. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20645. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20646. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20647. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20648. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20649. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  20650. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20651. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20652. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20653. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20654. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20655. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20656. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20657. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20658. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20659. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20660. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20661. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20662. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20663. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20664. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20665. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20666. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20667. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20668. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  20669. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  20670. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  20671. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  20672. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  20673. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  20674. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  20675. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  20676. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20677. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20678. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20679. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20680. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20681. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20682. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20683. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20684. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20685. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20686. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20687. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20688. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20689. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20690. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20691. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20692. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20693. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20694. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20695. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20696. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20697. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20698. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20699. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20700. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20701. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20702. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20703. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20704. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20705. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20706. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20707. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20708. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20709. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  20710. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  20711. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20712. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20713. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20714. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20715. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20716. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20717. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20718. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20719. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20720. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20721. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20722. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20723. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20724. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20725. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20726. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20727. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20728. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20729. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20730. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20731. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20732. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20733. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20734. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20735. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20736. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20737. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20738. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20739. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20740. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20741. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20742. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20743. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20744. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20745. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20746. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20747. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20748. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20749. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20750. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20751. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20752. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20753. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20754. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20755. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20756. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20757. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20758. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20759. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20760. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20761. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20762. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20763. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20764. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20765. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20766. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20767. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20768. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20769. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20770. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20771. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20772. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20773. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20774. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20775. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20776. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20777. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20778. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20779. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20780. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20781. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20782. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20783. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20784. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20785. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20786. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20787. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20788. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20789. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20790. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20791. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20792. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20793. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20794. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20795. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20796. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20797. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20798. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20799. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20800. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20801. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20802. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20803. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20804. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20805. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20806. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20807. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20808. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20809. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20810. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20811. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20812. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20813. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20814. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20815. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20816. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20817. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20818. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20819. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20820. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20821. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20822. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20823. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20824. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20825. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20826. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20827. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20828. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20829. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20830. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20831. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20832. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20833. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20834. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20835. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20836. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20837. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20838. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20839. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20840. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20841. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20842. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20843. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20844. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20845. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20846. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20847. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20848. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20849. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20850. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20851. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20852. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20853. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20854. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20855. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20856. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20857. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20858. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20859. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20860. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20861. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20862. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20863. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20864. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20865. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20866. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20867. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20868. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20869. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20870. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20871. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20872. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20873. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20874. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20875. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20876. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20877. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20878. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20879. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20880. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20881. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20882. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20883. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20884. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20885. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20886. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20887. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20888. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20889. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20890. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20891. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20892. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20893. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20894. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20895. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20896. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20897. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20898. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20899. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20900. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20901. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20902. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20903. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20904. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20905. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20906. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20907. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20908. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20909. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20910. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20911. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20912. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20913. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20914. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20915. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20916. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20917. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20918. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20919. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20920. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20921. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20922. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20923. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20924. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20925. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20926. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20927. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20928. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20929. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20930. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20931. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20932. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20933. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20934. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20935. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20936. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20937. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20938. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20939. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20940. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20941. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20942. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20943. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20944. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20945. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20946. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20947. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20948. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20949. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20950. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20951. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20952. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20953. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20954. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20955. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20956. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20957. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20958. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20959. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20960. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20961. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20962. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20963. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20964. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20965. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20966. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20967. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20968. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20969. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20970. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20971. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20972. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20973. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20974. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20975. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20976. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20977. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20978. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20979. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20980. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20981. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20982. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20983. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20984. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20985. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20986. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20987. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20988. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20989. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20990. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20991. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20992. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20993. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20994. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20995. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20996. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20997. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20998. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20999. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21000. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21001. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21002. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21003. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  21004. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  21005. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21006. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21007. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21008. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21009. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21010. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21011. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21012. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21013. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21014. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  21015. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  21016. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21017. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21018. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21019. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21020. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21021. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21022. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21023. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21024. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21025. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21026. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21027. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21028. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21029. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21030. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21031. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21032. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21033. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21034. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21035. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21036. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21037. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21038. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21039. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21040. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21041. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21042. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21043. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21044. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21045. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21046. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21047. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21048. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21049. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21050. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21051. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21052. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21053. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21054. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21055. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21056. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21057. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21058. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  21059. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  21060. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21061. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21062. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21063. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21064. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21065. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21066. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21067. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21068. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21069. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  21070. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  21071. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21072. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21073. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21074. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21075. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21076. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21077. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21078. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21079. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21080. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21081. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21082. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21083. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21084. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21085. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21086. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21087. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21088. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21089. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21090. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21091. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21092. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21093. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21094. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21095. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  21096. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  21097. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21098. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21099. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21100. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21101. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21102. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21103. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21104. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21105. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21106. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  21107. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  21108. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21109. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21110. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21111. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  21112. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21113. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21114. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21115. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21116. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21117. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21118. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21119. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  21120. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  21121. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21122. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21123. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21124. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21125. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21126. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21127. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21128. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21129. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21130. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21131. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21132. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21133. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21134. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21135. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21136. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21137. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21138. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21139. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21140. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21141. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21142. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21143. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21144. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21145. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21146. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21147. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  21148. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  21149. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21150. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21151. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21152. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21153. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21154. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21155. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21156. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21157. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21158. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  21159. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  21160. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21161. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21162. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21163. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21164. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21165. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21166. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21167. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21168. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21169. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21170. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21171. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21172. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21173. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21174. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21175. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21176. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21177. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21178. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21179. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21180. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21181. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21182. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21183. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21184. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21185. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21186. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21187. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21188. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21189. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  21190. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  21191. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  21192. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21193. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  21194. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  21195. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  21196. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21197. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21198. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21199. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21200. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21201. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21202. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21203. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21204. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21205. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21206. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21207. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21208. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21209. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21210. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21211. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21212. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  21213. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  21214. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21215. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21216. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21217. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21218. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21219. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21220. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21221. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21222. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21223. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21224. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21225. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21226. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21227. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21228. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21229. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21230. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  21231. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  21232. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21233. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21234. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21235. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21236. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21237. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21238. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21239. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21240. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21241. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21242. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21243. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21244. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21245. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21246. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21247. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21248. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  21249. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21250. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21251. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21252. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21253. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21254. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21255. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21256. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21257. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21258. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21259. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21260. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21261. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21262. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21263. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21264. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21265. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  21266. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21267. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21268. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21269. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21270. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21271. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21272. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21273. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21274. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21275. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21276. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21277. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21278. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21279. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21280. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21281. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21282. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21283. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21284. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21285. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21286. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21287. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21288. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21289. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21290. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21291. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21292. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21293. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21294. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21295. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21296. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21297. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21298. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21299. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21300. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21301. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  21302. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21303. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  21304. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  21305. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  21306. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  21307. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  21308. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  21309. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  21310. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  21311. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  21312. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  21313. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  21314. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  21315. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  21316. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  21317. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  21318. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  21319. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  21320. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21321. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21322. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21323. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21324. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21325. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21326. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21327. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21328. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21329. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21330. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21331. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21332. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21333. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21334. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21335. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21336. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  21337. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  21338. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21339. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21340. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21341. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21342. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21343. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21344. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21345. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21346. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21347. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21348. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21349. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21350. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21351. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21352. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21353. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21354. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  21355. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  21356. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21357. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21358. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21359. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21360. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21361. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21362. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21363. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21364. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21365. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21366. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21367. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21368. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21369. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21370. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21371. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21372. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  21373. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21374. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21375. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21376. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21377. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21378. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21379. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21380. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21381. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21382. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21383. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21384. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21385. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21386. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21387. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21388. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21389. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  21390. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21391. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21392. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21393. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21394. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21395. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21396. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21397. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21398. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21399. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21400. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21401. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21402. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21403. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21404. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21405. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21406. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  21407. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21408. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21409. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21410. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21411. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21412. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  21413. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21414. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21415. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21416. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  21417. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21418. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21419. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21420. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21421. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21422. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21423. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21424. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  21425. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21426. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21427. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21428. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21429. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21430. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  21431. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21432. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21433. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21434. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21435. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21436. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  21437. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21438. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21439. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21440. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21441. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21442. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  21443. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21444. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21445. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21446. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21447. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21448. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  21449. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  21450. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21451. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21452. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21453. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21454. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  21455. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21456. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21457. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21458. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21459. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21460. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  21461. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21462. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21463. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21464. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21465. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21466. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  21467. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21468. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21469. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21470. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21471. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21472. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  21473. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21474. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21475. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21476. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21477. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21478. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  21479. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21480. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21481. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21482. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21483. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21484. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  21485. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21486. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21487. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21488. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21489. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21490. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  21491. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21492. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21493. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21494. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21495. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21496. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  21497. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21498. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21499. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21500. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21501. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21502. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  21503. {"HDMI", NULL, "HDMI_DL_HL"},
  21504. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21505. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21506. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21507. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21508. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21509. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21510. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21511. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  21512. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21513. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21514. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21515. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21516. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21517. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21518. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21519. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  21520. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21521. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21522. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21523. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21524. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21525. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  21526. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21527. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21528. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21529. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21530. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21531. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  21532. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21533. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21534. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21535. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21536. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21537. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21538. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21539. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  21540. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21541. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21542. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21543. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21544. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21545. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21546. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  21547. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21548. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21549. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21550. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21551. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21552. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21553. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  21554. {"PRI_TDM_RX_0_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  21555. {"PRI_TDM_RX_0_Voice Mixer", "Voice2", "VOICE2_DL"},
  21556. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  21557. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE", "VoLTE_DL"},
  21558. {"PRI_TDM_RX_0_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  21559. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  21560. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21561. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21562. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21563. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21564. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21565. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21566. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  21567. {"PRI_TDM_RX_1_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  21568. {"PRI_TDM_RX_1_Voice Mixer", "Voice2", "VOICE2_DL"},
  21569. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  21570. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE", "VoLTE_DL"},
  21571. {"PRI_TDM_RX_1_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  21572. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  21573. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21574. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21575. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21576. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21577. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21578. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21579. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  21580. {"PRI_TDM_RX_2_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  21581. {"PRI_TDM_RX_2_Voice Mixer", "Voice2", "VOICE2_DL"},
  21582. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  21583. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE", "VoLTE_DL"},
  21584. {"PRI_TDM_RX_2_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  21585. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  21586. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21587. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21588. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21589. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21590. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21591. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21592. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  21593. {"PRI_TDM_RX_3_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  21594. {"PRI_TDM_RX_3_Voice Mixer", "Voice2", "VOICE2_DL"},
  21595. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  21596. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE", "VoLTE_DL"},
  21597. {"PRI_TDM_RX_3_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  21598. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  21599. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  21600. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  21601. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21602. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21603. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21604. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21605. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  21606. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21607. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  21608. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21609. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21610. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  21611. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21612. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21613. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  21614. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21615. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21616. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21617. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21618. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21619. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21620. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  21621. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  21622. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  21623. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  21624. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21625. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21626. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21627. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21628. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21629. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21630. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  21631. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  21632. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  21633. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21634. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  21635. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21636. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21637. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21638. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21639. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21640. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21641. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21642. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21643. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21644. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21645. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21646. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21647. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21648. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21649. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21650. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21651. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21652. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21653. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21654. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21655. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21656. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21657. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21658. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21659. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21660. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21661. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21662. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21663. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21664. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21665. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21666. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21667. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21668. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21669. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21670. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  21671. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  21672. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  21673. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21674. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  21675. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21676. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21677. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21678. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21679. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21680. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21681. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21682. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21683. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21684. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21685. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21686. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21687. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21688. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21689. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21690. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21691. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21692. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21693. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21694. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21695. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21696. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21697. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21698. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21699. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21700. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21701. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21702. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21703. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21704. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21705. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21706. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21707. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21708. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21709. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  21710. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  21711. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  21712. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  21713. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  21714. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  21715. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  21716. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  21717. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  21718. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  21719. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  21720. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  21721. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  21722. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  21723. {"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
  21724. {"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
  21725. {"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
  21726. {"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
  21727. {"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
  21728. {"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
  21729. {"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
  21730. {"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
  21731. {"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
  21732. {"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
  21733. {"Voice_Tx Mixer", "PRI_TDM_TX_3_Voice", "PRI_TDM_TX_3"},
  21734. {"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
  21735. {"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
  21736. {"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
  21737. {"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
  21738. {"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
  21739. {"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
  21740. {"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
  21741. {"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
  21742. {"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
  21743. {"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
  21744. {"Voice2_Tx Mixer", "PRI_TDM_TX_3_Voice2", "PRI_TDM_TX_3"},
  21745. {"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
  21746. {"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
  21747. {"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
  21748. {"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
  21749. {"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
  21750. {"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
  21751. {"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
  21752. {"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
  21753. {"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
  21754. {"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
  21755. {"VoLTE_Tx Mixer", "PRI_TDM_TX_3_VoLTE", "PRI_TDM_TX_3"},
  21756. {"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
  21757. {"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
  21758. {"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
  21759. {"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
  21760. {"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
  21761. {"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
  21762. {"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
  21763. {"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
  21764. {"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
  21765. {"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
  21766. {"VoWLAN_Tx Mixer", "PRI_TDM_TX_3_VoWLAN", "PRI_TDM_TX_3"},
  21767. {"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
  21768. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  21769. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  21770. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  21771. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  21772. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  21773. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  21774. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  21775. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  21776. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  21777. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  21778. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  21779. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  21780. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  21781. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  21782. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  21783. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  21784. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  21785. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  21786. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  21787. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  21788. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  21789. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  21790. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  21791. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  21792. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  21793. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  21794. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  21795. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  21796. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  21797. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  21798. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  21799. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  21800. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  21801. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  21802. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  21803. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  21804. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  21805. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  21806. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  21807. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  21808. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  21809. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  21810. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  21811. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  21812. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  21813. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  21814. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  21815. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  21816. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  21817. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  21818. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  21819. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  21820. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  21821. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  21822. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  21823. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  21824. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  21825. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  21826. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  21827. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  21828. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  21829. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  21830. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  21831. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  21832. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  21833. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  21834. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  21835. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  21836. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  21837. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  21838. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  21839. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  21840. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  21841. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  21842. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  21843. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  21844. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  21845. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  21846. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  21847. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  21848. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  21849. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  21850. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  21851. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  21852. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  21853. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  21854. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  21855. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  21856. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  21857. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  21858. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  21859. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  21860. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  21861. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  21862. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21863. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21864. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21865. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21866. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21867. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21868. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21869. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21870. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21871. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21872. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21873. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21874. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21875. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  21876. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21877. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21878. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21879. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21880. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21881. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21882. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21883. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21884. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21885. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21886. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21887. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21888. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21889. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  21890. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21891. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21892. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21893. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21894. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21895. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21896. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21897. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21898. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21899. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21900. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21901. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21902. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21903. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  21904. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21905. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21906. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21907. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21908. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21909. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21910. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21911. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21912. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21913. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21914. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21915. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21916. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21917. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  21918. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21919. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21920. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21921. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21922. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21923. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21924. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21925. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21926. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21927. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21928. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21929. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21930. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21931. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  21932. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21933. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21934. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21935. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21936. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21937. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21938. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21939. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21940. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21941. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21942. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21943. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  21944. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21945. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21946. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21947. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21948. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21949. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21950. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21951. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21952. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21953. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21954. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21955. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  21956. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21957. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21958. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21959. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21960. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21961. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21962. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21963. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21964. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21965. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21966. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21967. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  21968. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  21969. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  21970. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  21971. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  21972. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  21973. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  21974. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  21975. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  21976. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  21977. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  21978. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  21979. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  21980. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  21981. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  21982. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  21983. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  21984. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  21985. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  21986. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  21987. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  21988. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  21989. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  21990. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  21991. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  21992. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  21993. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  21994. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  21995. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21996. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  21997. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  21998. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  21999. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  22000. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  22001. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  22002. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  22003. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  22004. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  22005. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  22006. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  22007. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  22008. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  22009. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  22010. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  22011. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  22012. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  22013. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  22014. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  22015. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  22016. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  22017. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  22018. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  22019. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  22020. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  22021. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  22022. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  22023. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  22024. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  22025. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  22026. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  22027. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  22028. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  22029. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  22030. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  22031. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  22032. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  22033. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  22034. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  22035. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  22036. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  22037. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  22038. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  22039. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  22040. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  22041. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  22042. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  22043. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  22044. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  22045. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  22046. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  22047. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  22048. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  22049. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  22050. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  22051. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  22052. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  22053. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  22054. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  22055. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  22056. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  22057. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  22058. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  22059. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  22060. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  22061. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  22062. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  22063. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  22064. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  22065. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  22066. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  22067. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  22068. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  22069. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  22070. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  22071. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  22072. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  22073. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  22074. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  22075. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  22076. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22077. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22078. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22079. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22080. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22081. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22082. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22083. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22084. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22085. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22086. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22087. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22088. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22089. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22090. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22091. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22092. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22093. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22094. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22095. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22096. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  22097. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22098. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22099. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22100. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22101. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22102. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22103. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22104. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22105. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22106. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22107. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22108. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22109. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22110. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22111. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22112. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22113. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22114. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22115. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22116. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22117. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  22118. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22119. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22120. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22121. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22122. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22123. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22124. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22125. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22126. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22127. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22128. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22129. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22130. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22131. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22132. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22133. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22134. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22135. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22136. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22137. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22138. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  22139. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22140. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22141. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22142. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22143. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22144. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22145. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22146. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22147. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22148. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22149. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22150. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22151. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22152. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22153. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22154. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22155. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22156. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22157. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22158. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22159. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  22160. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22161. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22162. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22163. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22164. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22165. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22166. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22167. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22168. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22169. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22170. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22171. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22172. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22173. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22174. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22175. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22176. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22177. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22178. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22179. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22180. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  22181. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22182. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22183. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22184. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22185. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22186. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22187. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22188. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22189. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22190. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22191. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22192. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22193. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22194. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22195. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22196. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22197. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22198. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22199. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22200. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22201. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  22202. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22203. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22204. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22205. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22206. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22207. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22208. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22209. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22210. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22211. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22212. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22213. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22214. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22215. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22216. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22217. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22218. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22219. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22220. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22221. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22222. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  22223. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22224. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22225. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22226. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22227. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22228. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22229. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22230. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22231. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22232. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22233. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22234. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22235. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22236. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22237. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22238. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22239. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22240. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22241. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22242. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22243. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  22244. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  22245. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  22246. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22247. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22248. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22249. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22250. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22251. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22252. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22253. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22254. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22255. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22256. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22257. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22258. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22259. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22260. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22261. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22262. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22263. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22264. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22265. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22266. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  22267. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22268. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22269. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22270. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22271. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22272. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22273. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22274. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22275. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22276. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22277. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22278. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22279. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22280. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22281. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22282. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22283. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22284. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22285. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22286. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22287. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  22288. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22289. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22290. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22291. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22292. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22293. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22294. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22295. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22296. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22297. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22298. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22299. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22300. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22301. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22302. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22303. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22304. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22305. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22306. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22307. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22308. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  22309. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22310. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22311. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22312. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22313. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22314. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22315. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22316. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22317. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22318. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22319. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22320. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22321. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22322. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22323. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22324. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22325. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22326. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22327. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22328. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22329. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  22330. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22331. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22332. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22333. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22334. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22335. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22336. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22337. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22338. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22339. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22340. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22341. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22342. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22343. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22344. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22345. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22346. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22347. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22348. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22349. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22350. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  22351. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22352. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22353. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22354. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22355. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22356. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22357. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22358. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22359. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22360. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22361. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22362. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22363. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22364. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22365. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22366. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22367. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22368. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22369. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22370. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22371. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  22372. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22373. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22374. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22375. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22376. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22377. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22378. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22379. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22380. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22381. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22382. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22383. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22384. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22385. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22386. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22387. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22388. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22389. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22390. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22391. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22392. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  22393. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22394. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22395. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22396. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22397. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22398. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22399. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22400. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22401. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22402. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22403. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22404. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22405. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22406. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22407. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22408. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22409. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22410. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22411. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22412. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22413. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  22414. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  22415. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  22416. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22417. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22418. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22419. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22420. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22421. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22422. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22423. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22424. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22425. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22426. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22427. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22428. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22429. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22430. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22431. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22432. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22433. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22434. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22435. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22436. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  22437. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22438. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22439. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22440. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22441. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22442. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22443. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22444. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22445. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22446. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22447. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22448. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22449. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22450. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22451. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22452. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22453. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22454. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22455. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22456. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22457. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  22458. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22459. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22460. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22461. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22462. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22463. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22464. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22465. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22466. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22467. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22468. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22469. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22470. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22471. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22472. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22473. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22474. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22475. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22476. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22477. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22478. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  22479. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22480. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22481. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22482. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22483. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22484. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22485. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22486. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22487. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22488. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22489. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22490. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22491. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22492. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22493. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22494. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22495. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22496. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22497. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22498. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22499. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  22500. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22501. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22502. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22503. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22504. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22505. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22506. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22507. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22508. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22509. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22510. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22511. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  22512. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22513. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22514. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22515. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22516. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22517. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22518. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22519. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22520. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22521. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22522. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22523. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  22524. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22525. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22526. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22527. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22528. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  22529. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22530. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22531. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22532. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  22533. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22534. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22535. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22536. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22537. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22538. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22539. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22540. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22541. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22542. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22543. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22544. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22545. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22546. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22547. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22548. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22549. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22550. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22551. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  22552. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22553. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22554. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  22555. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  22556. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  22557. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  22558. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  22559. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  22560. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22561. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22562. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22563. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22564. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22565. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22566. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  22567. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22568. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22569. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22570. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22571. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  22572. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22573. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22574. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22575. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  22576. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22577. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22578. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22579. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  22580. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22581. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22582. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22583. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  22584. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22585. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22586. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22587. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22588. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22589. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22590. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22591. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22592. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22593. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  22594. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22595. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22596. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22597. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22598. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22599. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22600. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22601. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22602. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22603. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  22604. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22605. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22606. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22607. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22608. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22609. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22610. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22611. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22612. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22613. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22614. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22615. {"VoLTE Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22616. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  22617. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22618. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22619. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22620. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22621. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22622. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22623. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22624. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22625. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22626. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22627. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22628. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22629. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  22630. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22631. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22632. {"STUB_RX", NULL, "STUB_RX Mixer"},
  22633. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22634. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22635. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  22636. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22637. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22638. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  22639. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  22640. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  22641. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  22642. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22643. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22644. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  22645. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  22646. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  22647. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  22648. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22649. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22650. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  22651. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22652. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22653. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22654. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  22655. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22656. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22657. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  22658. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  22659. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22660. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  22661. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  22662. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  22663. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  22664. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22665. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22666. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22667. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22668. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22669. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22670. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22671. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22672. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22673. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22674. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22675. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22676. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22677. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  22678. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22679. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  22680. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22681. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  22682. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  22683. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  22684. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22685. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  22686. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22687. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22688. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  22689. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22690. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22691. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22692. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22693. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22694. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22695. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22696. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22697. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22698. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22699. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  22700. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22701. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22702. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22703. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22704. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22705. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22706. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22707. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22708. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22709. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  22710. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22711. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22712. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22713. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22714. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22715. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22716. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22717. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  22718. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22719. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22720. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22721. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22722. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22723. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22724. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22725. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22726. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22727. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  22728. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22729. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22730. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22731. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22732. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22733. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22734. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22735. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  22736. /* Backend Enablement */
  22737. {"BE_OUT", NULL, "PRI_I2S_RX"},
  22738. {"BE_OUT", NULL, "SEC_I2S_RX"},
  22739. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  22740. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  22741. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  22742. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22743. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  22744. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  22745. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  22746. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  22747. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  22748. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  22749. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  22750. {"BE_OUT", NULL, "HDMI"},
  22751. {"BE_OUT", NULL, "DISPLAY_PORT"},
  22752. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  22753. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  22754. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  22755. {"BE_OUT", NULL, "MI2S_RX"},
  22756. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  22757. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  22758. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  22759. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  22760. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  22761. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  22762. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  22763. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  22764. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  22765. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  22766. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  22767. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  22768. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  22769. {"BE_OUT", NULL, "INT_FM_RX"},
  22770. {"BE_OUT", NULL, "PCM_RX"},
  22771. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22772. {"BE_OUT", NULL, "AUX_PCM_RX"},
  22773. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  22774. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  22775. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  22776. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  22777. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  22778. {"BE_OUT", NULL, "INT_FM_RX"},
  22779. {"BE_OUT", NULL, "PCM_RX"},
  22780. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22781. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  22782. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  22783. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  22784. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  22785. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  22786. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  22787. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  22788. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  22789. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  22790. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  22791. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  22792. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  22793. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  22794. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  22795. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  22796. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  22797. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  22798. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  22799. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  22800. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  22801. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  22802. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  22803. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  22804. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  22805. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  22806. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  22807. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  22808. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  22809. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  22810. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  22811. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  22812. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  22813. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  22814. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  22815. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  22816. {"PRI_I2S_TX", NULL, "BE_IN"},
  22817. {"MI2S_TX", NULL, "BE_IN"},
  22818. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  22819. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  22820. {"PRI_MI2S_TX", NULL, "BE_IN"},
  22821. {"TERT_MI2S_TX", NULL, "BE_IN"},
  22822. {"INT0_MI2S_TX", NULL, "BE_IN"},
  22823. {"INT2_MI2S_TX", NULL, "BE_IN"},
  22824. {"INT3_MI2S_TX", NULL, "BE_IN"},
  22825. {"INT4_MI2S_TX", NULL, "BE_IN"},
  22826. {"INT5_MI2S_TX", NULL, "BE_IN"},
  22827. {"SEC_MI2S_TX", NULL, "BE_IN"},
  22828. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  22829. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  22830. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  22831. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  22832. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  22833. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  22834. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  22835. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  22836. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  22837. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  22838. {"USB_AUDIO_TX", NULL, "BE_IN" },
  22839. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  22840. {"INT_FM_TX", NULL, "BE_IN"},
  22841. {"PCM_TX", NULL, "BE_IN"},
  22842. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22843. {"BE_OUT", NULL, "STUB_RX"},
  22844. {"STUB_TX", NULL, "BE_IN"},
  22845. {"STUB_1_TX", NULL, "BE_IN"},
  22846. {"BE_OUT", NULL, "AUX_PCM_RX"},
  22847. {"AUX_PCM_TX", NULL, "BE_IN"},
  22848. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  22849. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  22850. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  22851. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  22852. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  22853. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  22854. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  22855. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  22856. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22857. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22858. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  22859. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  22860. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  22861. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  22862. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  22863. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  22864. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  22865. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  22866. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  22867. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  22868. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  22869. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  22870. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  22871. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  22872. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  22873. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  22874. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  22875. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  22876. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  22877. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  22878. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  22879. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  22880. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  22881. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  22882. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  22883. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  22884. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  22885. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  22886. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  22887. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  22888. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  22889. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  22890. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  22891. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22892. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22893. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  22894. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22895. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22896. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  22897. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  22898. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  22899. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  22900. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  22901. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  22902. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  22903. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  22904. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  22905. };
  22906. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  22907. struct snd_pcm_hw_params *params)
  22908. {
  22909. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22910. unsigned int be_id = rtd->dai_link->id;
  22911. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22912. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22913. return -EINVAL;
  22914. }
  22915. mutex_lock(&routing_lock);
  22916. msm_bedais[be_id].sample_rate = params_rate(params);
  22917. msm_bedais[be_id].channel = params_channels(params);
  22918. msm_bedais[be_id].format = params_format(params);
  22919. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  22920. __func__, msm_bedais[be_id].sample_rate,
  22921. msm_bedais[be_id].format, be_id);
  22922. mutex_unlock(&routing_lock);
  22923. return 0;
  22924. }
  22925. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  22926. {
  22927. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22928. unsigned int be_id = rtd->dai_link->id;
  22929. int i, session_type, path_type, topology;
  22930. struct msm_pcm_routing_bdai_data *bedai;
  22931. struct msm_pcm_routing_fdai_data *fdai;
  22932. pr_debug("%s: substream->pcm->id:%s\n",
  22933. __func__, substream->pcm->id);
  22934. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22935. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22936. return -EINVAL;
  22937. }
  22938. bedai = &msm_bedais[be_id];
  22939. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  22940. 0 : 1);
  22941. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22942. path_type = ADM_PATH_PLAYBACK;
  22943. else
  22944. path_type = ADM_PATH_LIVE_REC;
  22945. mutex_lock(&routing_lock);
  22946. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22947. if (!is_mm_lsm_fe_id(i))
  22948. continue;
  22949. fdai = &fe_dai_map[i][session_type];
  22950. if (fdai->strm_id != INVALID_SESSION) {
  22951. int idx;
  22952. int port_id;
  22953. unsigned long copp =
  22954. session_copp_map[i][session_type][be_id];
  22955. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  22956. if (test_bit(idx, &copp))
  22957. break;
  22958. if (idx >= MAX_COPPS_PER_PORT) {
  22959. pr_debug("%s: copp idx is invalid, exiting\n",
  22960. __func__);
  22961. continue;
  22962. }
  22963. fdai->be_srate = bedai->sample_rate;
  22964. port_id = get_port_id(bedai->port_id);
  22965. topology = adm_get_topology_for_port_copp_idx(port_id,
  22966. idx);
  22967. msm_routing_unload_topology(topology);
  22968. adm_close(port_id, fdai->perf_mode, idx);
  22969. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  22970. __func__, copp, i, session_type, be_id,
  22971. topology);
  22972. clear_bit(idx,
  22973. &session_copp_map[i][session_type][be_id]);
  22974. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22975. (fdai->passthr_mode == LEGACY_PCM))
  22976. msm_pcm_routing_deinit_pp(port_id,
  22977. topology);
  22978. }
  22979. }
  22980. bedai->active = 0;
  22981. bedai->sample_rate = 0;
  22982. bedai->channel = 0;
  22983. mutex_unlock(&routing_lock);
  22984. return 0;
  22985. }
  22986. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  22987. {
  22988. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22989. unsigned int be_id = rtd->dai_link->id;
  22990. int i, path_type, topology;
  22991. int session_type = INVALID_SESSION;
  22992. struct msm_pcm_routing_bdai_data *bedai;
  22993. u32 channels, sample_rate;
  22994. uint16_t bits_per_sample = 16, voc_path_type;
  22995. struct msm_pcm_routing_fdai_data *fdai;
  22996. u32 session_id;
  22997. struct media_format_info voc_be_media_format;
  22998. bool is_lsm;
  22999. pr_debug("%s: substream->pcm->id:%s\n",
  23000. __func__, substream->pcm->id);
  23001. if (be_id >= MSM_BACKEND_DAI_MAX) {
  23002. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  23003. return -EINVAL;
  23004. }
  23005. bedai = &msm_bedais[be_id];
  23006. mutex_lock(&routing_lock);
  23007. if (bedai->active == 1)
  23008. goto done; /* Ignore prepare if back-end already active */
  23009. /* AFE port is not active at this point. However, still
  23010. * go ahead setting active flag under the notion that
  23011. * QDSP6 is able to handle ADM starting before AFE port
  23012. * is started.
  23013. */
  23014. bedai->active = 1;
  23015. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  23016. if (!(is_mm_lsm_fe_id(i) &&
  23017. route_check_fe_id_adm_support(i)))
  23018. continue;
  23019. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  23020. SESSION_TYPE_RX : SESSION_TYPE_TX;
  23021. fdai = &fe_dai_map[i][session_type];
  23022. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  23023. if (fdai->passthr_mode != LEGACY_PCM)
  23024. path_type = ADM_PATH_COMPRESSED_RX;
  23025. else
  23026. path_type = ADM_PATH_PLAYBACK;
  23027. } else {
  23028. if ((fdai->passthr_mode != LEGACY_PCM) &&
  23029. (fdai->passthr_mode != LISTEN))
  23030. path_type = ADM_PATH_COMPRESSED_TX;
  23031. else
  23032. path_type = ADM_PATH_LIVE_REC;
  23033. }
  23034. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  23035. (i <= MSM_FRONTEND_DAI_LSM8);
  23036. if (fdai->strm_id != INVALID_SESSION) {
  23037. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  23038. int port_id = get_port_id(bedai->port_id);
  23039. if (session_type == SESSION_TYPE_TX &&
  23040. fdai->be_srate &&
  23041. (fdai->be_srate != bedai->sample_rate)) {
  23042. pr_debug("%s: flush strm %d diff BE rates\n",
  23043. __func__,
  23044. fdai->strm_id);
  23045. if (fdai->event_info.event_func)
  23046. fdai->event_info.event_func(
  23047. MSM_PCM_RT_EVT_BUF_RECFG,
  23048. fdai->event_info.priv_data);
  23049. fdai->be_srate = 0; /* might not need it */
  23050. }
  23051. bits_per_sample = msm_routing_get_bit_width(
  23052. bedai->format);
  23053. app_type =
  23054. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  23055. if (app_type && is_lsm) {
  23056. app_type_idx =
  23057. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  23058. sample_rate =
  23059. fe_dai_app_type_cfg[i][session_type][be_id]
  23060. .sample_rate;
  23061. bits_per_sample =
  23062. lsm_app_type_cfg[app_type_idx].bit_width;
  23063. } else if (app_type) {
  23064. app_type_idx =
  23065. msm_pcm_routing_get_app_type_idx(app_type);
  23066. sample_rate =
  23067. fe_dai_app_type_cfg[i][session_type]
  23068. [be_id].sample_rate;
  23069. bits_per_sample =
  23070. app_type_cfg[app_type_idx].bit_width;
  23071. } else
  23072. sample_rate = bedai->sample_rate;
  23073. /*
  23074. * check if ADM needs to be configured with different
  23075. * channel mapping than backend
  23076. */
  23077. if (!bedai->adm_override_ch)
  23078. channels = bedai->channel;
  23079. else
  23080. channels = bedai->adm_override_ch;
  23081. acdb_dev_id =
  23082. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  23083. topology = msm_routing_get_adm_topology(i, session_type,
  23084. be_id);
  23085. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  23086. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  23087. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  23088. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  23089. copp_idx = adm_open(port_id, path_type,
  23090. sample_rate, channels, topology,
  23091. fdai->perf_mode, bits_per_sample,
  23092. app_type, acdb_dev_id,
  23093. session_type);
  23094. if ((copp_idx < 0) ||
  23095. (copp_idx >= MAX_COPPS_PER_PORT)) {
  23096. pr_err("%s: adm open failed\n", __func__);
  23097. mutex_unlock(&routing_lock);
  23098. return -EINVAL;
  23099. }
  23100. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  23101. __func__, i, session_type, be_id);
  23102. set_bit(copp_idx,
  23103. &session_copp_map[i][session_type][be_id]);
  23104. if (msm_is_resample_needed(
  23105. sample_rate,
  23106. bedai->sample_rate))
  23107. adm_copp_mfc_cfg(port_id, copp_idx,
  23108. bedai->sample_rate);
  23109. msm_pcm_routing_build_matrix(i, session_type, path_type,
  23110. fdai->perf_mode, fdai->passthr_mode);
  23111. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  23112. (fdai->passthr_mode == LEGACY_PCM))
  23113. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  23114. topology, channels);
  23115. }
  23116. }
  23117. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  23118. session_id = msm_pcm_routing_get_voc_sessionid(i);
  23119. if (session_id) {
  23120. pr_debug("%s voice session_id: 0x%x\n", __func__,
  23121. session_id);
  23122. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  23123. voc_path_type = RX_PATH;
  23124. else
  23125. voc_path_type = TX_PATH;
  23126. voc_set_route_flag(session_id, voc_path_type, 1);
  23127. memset(&voc_be_media_format, 0,
  23128. sizeof(struct media_format_info));
  23129. voc_be_media_format.port_id = bedai->port_id;
  23130. voc_be_media_format.num_channels = bedai->channel;
  23131. voc_be_media_format.sample_rate = bedai->sample_rate;
  23132. voc_be_media_format.bits_per_sample = bedai->format;
  23133. /* Defaulting this to 1 for voice call usecases */
  23134. voc_be_media_format.channel_mapping[0] = 1;
  23135. voc_set_device_config(session_id, voc_path_type,
  23136. &voc_be_media_format);
  23137. if (voc_get_route_flag(session_id, RX_PATH) &&
  23138. voc_get_route_flag(session_id, TX_PATH))
  23139. voc_enable_device(session_id);
  23140. }
  23141. }
  23142. /* Check if backend is an external ec ref port and set as needed */
  23143. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  23144. memset(&voc_be_media_format, 0,
  23145. sizeof(struct media_format_info));
  23146. /* Get format info for ec ref port from msm_bedais[] */
  23147. voc_be_media_format.port_id = bedai->port_id;
  23148. voc_be_media_format.num_channels = bedai->channel;
  23149. voc_be_media_format.bits_per_sample = bedai->format;
  23150. voc_be_media_format.sample_rate = bedai->sample_rate;
  23151. /* Defaulting this to 1 for voice call usecases */
  23152. voc_be_media_format.channel_mapping[0] = 1;
  23153. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  23154. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  23155. __func__, voc_be_media_format.port_id,
  23156. voc_be_media_format.num_channels,
  23157. voc_be_media_format.bits_per_sample,
  23158. voc_be_media_format.sample_rate);
  23159. }
  23160. done:
  23161. mutex_unlock(&routing_lock);
  23162. return 0;
  23163. }
  23164. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  23165. int fe_id)
  23166. {
  23167. int index, topo_id, be_idx;
  23168. unsigned long pp_config = 0;
  23169. bool mute_on;
  23170. int latency, session_type;
  23171. bool compr_passthr_mode = true;
  23172. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  23173. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  23174. pr_err("%s: Device pp params on invalid port %d\n",
  23175. __func__, port_id);
  23176. return -EINVAL;
  23177. }
  23178. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  23179. if (port_id == msm_bedais[be_idx].port_id)
  23180. break;
  23181. }
  23182. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  23183. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  23184. return -EINVAL;
  23185. }
  23186. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  23187. if (msm_bedais_pp_params[index].port_id == port_id)
  23188. break;
  23189. }
  23190. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  23191. pr_err("%s: Invalid backend pp params index %d\n",
  23192. __func__, index);
  23193. return -EINVAL;
  23194. }
  23195. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  23196. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  23197. pr_err("%s: Invalid passthrough topology 0x%x\n",
  23198. __func__, topo_id);
  23199. return -EINVAL;
  23200. }
  23201. session_type =
  23202. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  23203. SESSION_TYPE_RX : SESSION_TYPE_TX;
  23204. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  23205. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  23206. compr_passthr_mode = false;
  23207. pp_config = msm_bedais_pp_params[index].pp_params_config;
  23208. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  23209. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  23210. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  23211. mute_on = msm_bedais_pp_params[index].mute_on;
  23212. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  23213. adm_send_compressed_device_mute(port_id,
  23214. copp_idx,
  23215. mute_on);
  23216. }
  23217. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  23218. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  23219. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  23220. &pp_config);
  23221. latency = msm_bedais_pp_params[index].latency;
  23222. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  23223. adm_send_compressed_device_latency(port_id,
  23224. copp_idx,
  23225. latency);
  23226. }
  23227. return 0;
  23228. }
  23229. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  23230. {
  23231. uint32_t topology = NULL_COPP_TOPOLOGY;
  23232. void *cal_info = NULL;
  23233. uint32_t size = 0;
  23234. /* Retrieve cal_info size from cal data*/
  23235. if (data_size < sizeof(struct audio_cal_type_basic) +
  23236. sizeof(struct audio_cal_info_adm_top)) {
  23237. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  23238. goto done;
  23239. }
  23240. size = data_size - sizeof(struct audio_cal_type_basic);
  23241. cal_info = kzalloc(size, GFP_KERNEL);
  23242. if (!cal_info)
  23243. goto done;
  23244. memcpy(cal_info,
  23245. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  23246. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  23247. kfree(cal_info);
  23248. cal_info = NULL;
  23249. done:
  23250. pr_debug("%s: Using topology %d\n", __func__, topology);
  23251. return topology;
  23252. }
  23253. static void msm_routing_load_topology(size_t data_size, void *data)
  23254. {
  23255. uint32_t topology_id;
  23256. int ret = -EINVAL;
  23257. topology_id = msm_routing_get_topology(data_size, data);
  23258. if (topology_id != NULL_COPP_TOPOLOGY)
  23259. ret = q6core_load_unload_topo_modules(topology_id,
  23260. CORE_LOAD_TOPOLOGY);
  23261. if (ret < 0)
  23262. pr_debug("%s %d load topology failed\n",
  23263. __func__, topology_id);
  23264. }
  23265. static void msm_routing_unload_topology(uint32_t topology_id)
  23266. {
  23267. int ret = -EINVAL;
  23268. if (topology_id != NULL_COPP_TOPOLOGY)
  23269. ret = q6core_load_unload_topo_modules(topology_id,
  23270. CORE_UNLOAD_TOPOLOGY);
  23271. if (ret < 0)
  23272. pr_debug("%s %d unload topology failed\n",
  23273. __func__, topology_id);
  23274. }
  23275. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  23276. struct snd_ctl_elem_value *ucontrol)
  23277. {
  23278. int pp_id = ucontrol->value.integer.value[0];
  23279. int port_id = 0;
  23280. int index, be_idx, i, topo_id, idx;
  23281. bool mute;
  23282. int latency, session_type;
  23283. bool compr_passthr_mode = true;
  23284. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  23285. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  23286. port_id = msm_bedais[be_idx].port_id;
  23287. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  23288. break;
  23289. }
  23290. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  23291. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  23292. return -EINVAL;
  23293. }
  23294. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  23295. if (msm_bedais_pp_params[index].port_id == port_id)
  23296. break;
  23297. }
  23298. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  23299. pr_err("%s: Invalid pp params backend index %d\n",
  23300. __func__, index);
  23301. return -EINVAL;
  23302. }
  23303. session_type =
  23304. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  23305. SESSION_TYPE_RX : SESSION_TYPE_TX;
  23306. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  23307. MSM_FRONTEND_DAI_MM_SIZE) {
  23308. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  23309. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  23310. compr_passthr_mode = false;
  23311. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  23312. unsigned long copp =
  23313. session_copp_map[i]
  23314. [SESSION_TYPE_RX][be_idx];
  23315. if (!test_bit(idx, &copp))
  23316. continue;
  23317. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  23318. idx);
  23319. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  23320. continue;
  23321. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  23322. __func__, port_id, copp, msm_bedais[be_idx].active,
  23323. fe_dai_map[i][session_type].passthr_mode);
  23324. switch (pp_id) {
  23325. case ADM_PP_PARAM_MUTE_ID:
  23326. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  23327. mute = ucontrol->value.integer.value[1] ? true : false;
  23328. msm_bedais_pp_params[index].mute_on = mute;
  23329. set_bit(ADM_PP_PARAM_MUTE_BIT,
  23330. &msm_bedais_pp_params[index].pp_params_config);
  23331. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  23332. adm_send_compressed_device_mute(port_id,
  23333. idx, mute);
  23334. break;
  23335. case ADM_PP_PARAM_LATENCY_ID:
  23336. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  23337. msm_bedais_pp_params[index].latency =
  23338. ucontrol->value.integer.value[1];
  23339. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  23340. &msm_bedais_pp_params[index].pp_params_config);
  23341. latency = msm_bedais_pp_params[index].latency =
  23342. ucontrol->value.integer.value[1];
  23343. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  23344. adm_send_compressed_device_latency(port_id,
  23345. idx, latency);
  23346. break;
  23347. default:
  23348. pr_info("%s, device pp param %d not supported\n",
  23349. __func__, pp_id);
  23350. break;
  23351. }
  23352. }
  23353. }
  23354. return 0;
  23355. }
  23356. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  23357. struct snd_ctl_elem_value *ucontrol)
  23358. {
  23359. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  23360. return 0;
  23361. }
  23362. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  23363. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  23364. 0, 3, msm_routing_get_device_pp_params_mixer,
  23365. msm_routing_put_device_pp_params_mixer),
  23366. };
  23367. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  23368. struct snd_ctl_elem_value *ucontrol)
  23369. {
  23370. ucontrol->value.integer.value[0] =
  23371. core_get_license_status(ASM_MEDIA_FMT_APTX);
  23372. pr_debug("%s: status %ld\n", __func__,
  23373. ucontrol->value.integer.value[0]);
  23374. return 0;
  23375. }
  23376. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  23377. struct snd_ctl_elem_value *ucontrol)
  23378. {
  23379. int32_t status = 0;
  23380. status = core_set_license(ucontrol->value.integer.value[0],
  23381. APTX_CLASSIC_DEC_LICENSE_ID);
  23382. pr_debug("%s: status %d\n", __func__, status);
  23383. return status;
  23384. }
  23385. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  23386. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  23387. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  23388. msm_aptx_dec_license_control_put),
  23389. };
  23390. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  23391. struct snd_ctl_elem_info *uinfo)
  23392. {
  23393. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  23394. uinfo->count = sizeof(be_dai_name_table);
  23395. return 0;
  23396. }
  23397. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  23398. unsigned int __user *bytes,
  23399. unsigned int size)
  23400. {
  23401. int i;
  23402. int ret = 0;
  23403. if (size < sizeof(be_dai_name_table)) {
  23404. pr_err("%s: invalid size %d requested, returning\n",
  23405. __func__, size);
  23406. ret = -EINVAL;
  23407. goto done;
  23408. }
  23409. /*
  23410. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  23411. * needed when adding new backends
  23412. */
  23413. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  23414. be_dai_name_table[i].be_id = i;
  23415. strlcpy(be_dai_name_table[i].be_name,
  23416. msm_bedais[i].name,
  23417. LPASS_BE_NAME_MAX_LENGTH);
  23418. }
  23419. ret = copy_to_user(bytes, &be_dai_name_table,
  23420. sizeof(be_dai_name_table));
  23421. if (ret) {
  23422. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  23423. ret = -EFAULT;
  23424. }
  23425. done:
  23426. return ret;
  23427. }
  23428. static const struct snd_kcontrol_new
  23429. msm_routing_be_dai_name_table_mixer_controls[] = {
  23430. {
  23431. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  23432. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  23433. .info = msm_routing_be_dai_name_table_info,
  23434. .name = "Backend DAI Name Table",
  23435. .tlv.c = snd_soc_bytes_tlv_callback,
  23436. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  23437. .max = sizeof(be_dai_name_table),
  23438. .get = msm_routing_be_dai_name_table_tlv_get,
  23439. }
  23440. },
  23441. };
  23442. static int msm_routing_stereo_channel_reverse_control_get(
  23443. struct snd_kcontrol *kcontrol,
  23444. struct snd_ctl_elem_value *ucontrol)
  23445. {
  23446. ucontrol->value.integer.value[0] = swap_ch;
  23447. pr_debug("%s: Swap channel value: %ld\n", __func__,
  23448. ucontrol->value.integer.value[0]);
  23449. return 0;
  23450. }
  23451. static int msm_routing_stereo_channel_reverse_control_put(
  23452. struct snd_kcontrol *kcontrol,
  23453. struct snd_ctl_elem_value *ucontrol)
  23454. {
  23455. int i, idx, be_index, port_id;
  23456. int ret = 0;
  23457. unsigned long copp;
  23458. pr_debug("%s Swap channel value:%ld\n", __func__,
  23459. ucontrol->value.integer.value[0]);
  23460. swap_ch = ucontrol->value.integer.value[0];
  23461. mutex_lock(&routing_lock);
  23462. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  23463. port_id = msm_bedais[be_index].port_id;
  23464. if (!msm_bedais[be_index].active)
  23465. continue;
  23466. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  23467. MSM_FRONTEND_DAI_MM_SIZE) {
  23468. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  23469. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  23470. if (!test_bit(idx, &copp))
  23471. continue;
  23472. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  23473. __func__, port_id, idx);
  23474. ret = adm_swap_speaker_channels(
  23475. port_id, idx,
  23476. msm_bedais[be_index].sample_rate,
  23477. swap_ch);
  23478. if (ret) {
  23479. pr_err("%s:Swap_channel failed, err=%d\n",
  23480. __func__, ret);
  23481. goto done;
  23482. }
  23483. }
  23484. }
  23485. }
  23486. done:
  23487. mutex_unlock(&routing_lock);
  23488. return ret;
  23489. }
  23490. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  23491. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  23492. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  23493. msm_routing_stereo_channel_reverse_control_put),
  23494. };
  23495. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  23496. struct snd_ctl_elem_info *uinfo)
  23497. {
  23498. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  23499. uinfo->count = 1;
  23500. return 0;
  23501. }
  23502. static int msm_routing_instance_id_support_put(
  23503. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  23504. {
  23505. bool supported = ucontrol->value.integer.value[0] ? true : false;
  23506. q6common_update_instance_id_support(supported);
  23507. return 0;
  23508. }
  23509. static int msm_routing_instance_id_support_get(
  23510. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  23511. {
  23512. bool supported = false;
  23513. supported = q6common_is_instance_id_supported();
  23514. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  23515. return 0;
  23516. }
  23517. static const struct snd_kcontrol_new
  23518. msm_routing_feature_support_mixer_controls[] = {
  23519. {
  23520. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  23521. SNDRV_CTL_ELEM_ACCESS_WRITE,
  23522. .info = msm_routing_instance_id_support_info,
  23523. .name = "Instance ID Support",
  23524. .put = msm_routing_instance_id_support_put,
  23525. .get = msm_routing_instance_id_support_get,
  23526. },
  23527. };
  23528. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  23529. .hw_params = msm_pcm_routing_hw_params,
  23530. .close = msm_pcm_routing_close,
  23531. .prepare = msm_pcm_routing_prepare,
  23532. };
  23533. /* Not used but frame seems to require it */
  23534. static int msm_routing_probe(struct snd_soc_component *component)
  23535. {
  23536. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  23537. ARRAY_SIZE(msm_qdsp6_widgets));
  23538. snd_soc_dapm_add_routes(&component->dapm, intercon,
  23539. ARRAY_SIZE(intercon));
  23540. snd_soc_dapm_new_widgets(component->dapm.card);
  23541. snd_soc_add_component_controls(component, lsm_controls,
  23542. ARRAY_SIZE(lsm_controls));
  23543. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  23544. ARRAY_SIZE(aanc_slim_0_rx_mux));
  23545. snd_soc_add_component_controls(component, aanc_noise_level,
  23546. ARRAY_SIZE(aanc_noise_level));
  23547. snd_soc_add_component_controls(component, msm_voc_session_controls,
  23548. ARRAY_SIZE(msm_voc_session_controls));
  23549. snd_soc_add_component_controls(component, app_type_cfg_controls,
  23550. ARRAY_SIZE(app_type_cfg_controls));
  23551. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  23552. ARRAY_SIZE(lsm_app_type_cfg_controls));
  23553. snd_soc_add_component_controls(component, module_cfg_controls,
  23554. ARRAY_SIZE(module_cfg_controls));
  23555. snd_soc_add_component_controls(component,
  23556. stereo_to_custom_stereo_controls,
  23557. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  23558. snd_soc_add_component_controls(component, ec_ref_param_controls,
  23559. ARRAY_SIZE(ec_ref_param_controls));
  23560. snd_soc_add_component_controls(component, channel_mixer_controls,
  23561. ARRAY_SIZE(channel_mixer_controls));
  23562. msm_qti_pp_add_controls(component);
  23563. msm_dts_srs_tm_add_controls(component);
  23564. msm_dolby_dap_add_controls(component);
  23565. snd_soc_add_component_controls(component,
  23566. use_ds1_or_ds2_controls,
  23567. ARRAY_SIZE(use_ds1_or_ds2_controls));
  23568. snd_soc_add_component_controls(component,
  23569. device_pp_params_mixer_controls,
  23570. ARRAY_SIZE(device_pp_params_mixer_controls));
  23571. snd_soc_add_component_controls(component,
  23572. msm_routing_be_dai_name_table_mixer_controls,
  23573. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  23574. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  23575. ARRAY_SIZE(msm_source_tracking_controls));
  23576. snd_soc_add_component_controls(component, adm_channel_config_controls,
  23577. ARRAY_SIZE(adm_channel_config_controls));
  23578. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  23579. ARRAY_SIZE(aptx_dec_license_controls));
  23580. snd_soc_add_component_controls(component,
  23581. stereo_channel_reverse_control,
  23582. ARRAY_SIZE(stereo_channel_reverse_control));
  23583. snd_soc_add_component_controls(
  23584. component, msm_routing_feature_support_mixer_controls,
  23585. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  23586. return 0;
  23587. }
  23588. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  23589. {
  23590. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  23591. }
  23592. void msm_routing_pcm_free(struct snd_pcm *pcm)
  23593. {
  23594. msm_pcm_routing_hwdep_free(pcm);
  23595. }
  23596. static struct snd_soc_component_driver msm_soc_routing_component = {
  23597. .name = DRV_NAME,
  23598. .ops = &msm_routing_pcm_ops,
  23599. .probe = msm_routing_probe,
  23600. .pcm_new = msm_routing_pcm_new,
  23601. .pcm_free = msm_routing_pcm_free,
  23602. };
  23603. static int msm_routing_pcm_probe(struct platform_device *pdev)
  23604. {
  23605. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  23606. return snd_soc_register_component(&pdev->dev,
  23607. &msm_soc_routing_component,
  23608. NULL, 0);
  23609. }
  23610. static int msm_routing_pcm_remove(struct platform_device *pdev)
  23611. {
  23612. snd_soc_unregister_component(&pdev->dev);
  23613. return 0;
  23614. }
  23615. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  23616. {.compatible = "qcom,msm-pcm-routing"},
  23617. {}
  23618. };
  23619. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  23620. static struct platform_driver msm_routing_pcm_driver = {
  23621. .driver = {
  23622. .name = "msm-pcm-routing",
  23623. .owner = THIS_MODULE,
  23624. .of_match_table = msm_pcm_routing_dt_match,
  23625. .suppress_bind_attrs = true,
  23626. },
  23627. .probe = msm_routing_pcm_probe,
  23628. .remove = msm_routing_pcm_remove,
  23629. };
  23630. int msm_routing_check_backend_enabled(int fedai_id)
  23631. {
  23632. int i;
  23633. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  23634. /* bad ID assigned in machine driver */
  23635. pr_err("%s: bad MM ID\n", __func__);
  23636. return 0;
  23637. }
  23638. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  23639. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  23640. return msm_bedais[i].active;
  23641. }
  23642. return 0;
  23643. }
  23644. static int get_cal_type_index(int32_t cal_type)
  23645. {
  23646. int ret = -EINVAL;
  23647. switch (cal_type) {
  23648. case ADM_TOPOLOGY_CAL_TYPE:
  23649. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  23650. break;
  23651. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  23652. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  23653. break;
  23654. default:
  23655. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  23656. }
  23657. return ret;
  23658. }
  23659. static int msm_routing_set_cal(int32_t cal_type,
  23660. size_t data_size, void *data)
  23661. {
  23662. int ret = 0;
  23663. int cal_index;
  23664. pr_debug("%s\n", __func__);
  23665. cal_index = get_cal_type_index(cal_type);
  23666. if (cal_index < 0) {
  23667. pr_err("%s: Could not get cal index %d\n",
  23668. __func__, cal_index);
  23669. ret = -EINVAL;
  23670. goto done;
  23671. }
  23672. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  23673. if (ret < 0) {
  23674. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  23675. __func__, ret, cal_type);
  23676. ret = -EINVAL;
  23677. goto done;
  23678. }
  23679. /* Pre-load if it is ADM topology */
  23680. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  23681. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  23682. msm_routing_load_topology(data_size, data);
  23683. }
  23684. done:
  23685. return ret;
  23686. }
  23687. static void msm_routing_delete_cal_data(void)
  23688. {
  23689. pr_debug("%s\n", __func__);
  23690. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  23691. }
  23692. static int msm_routing_init_cal_data(void)
  23693. {
  23694. int ret = 0;
  23695. struct cal_type_info cal_type_info[] = {
  23696. {{ADM_TOPOLOGY_CAL_TYPE,
  23697. {NULL, NULL, NULL,
  23698. msm_routing_set_cal, NULL, NULL} },
  23699. {NULL, NULL, cal_utils_match_buf_num} },
  23700. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  23701. {NULL, NULL, NULL,
  23702. msm_routing_set_cal, NULL, NULL} },
  23703. {NULL, NULL, cal_utils_match_buf_num} },
  23704. };
  23705. pr_debug("%s\n", __func__);
  23706. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  23707. &cal_type_info[0]);
  23708. if (ret < 0) {
  23709. pr_err("%s: could not create cal type!\n",
  23710. __func__);
  23711. ret = -EINVAL;
  23712. goto err;
  23713. }
  23714. return ret;
  23715. err:
  23716. msm_routing_delete_cal_data();
  23717. return ret;
  23718. }
  23719. int __init msm_soc_routing_platform_init(void)
  23720. {
  23721. mutex_init(&routing_lock);
  23722. if (msm_routing_init_cal_data())
  23723. pr_err("%s: could not init cal data!\n", __func__);
  23724. afe_set_routing_callback(
  23725. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  23726. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23727. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  23728. return platform_driver_register(&msm_routing_pcm_driver);
  23729. }
  23730. void msm_soc_routing_platform_exit(void)
  23731. {
  23732. msm_routing_delete_cal_data();
  23733. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23734. mutex_destroy(&routing_lock);
  23735. platform_driver_unregister(&msm_routing_pcm_driver);
  23736. }
  23737. MODULE_DESCRIPTION("MSM routing platform driver");
  23738. MODULE_LICENSE("GPL v2");